Difference between revisions of "Template:Game"

From Hyperdimension Neptunia Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
<div class="infobox-title">{{{title1|{{PAGENAME}}}}}</div>
 
<div class="infobox-title">{{{title1|{{PAGENAME}}}}}</div>
 
{{#if:{{{image1|}}}|<div class="infobox-image">[[File:{{{image1}}}|300px]]</div>}}
 
{{#if:{{{image1|}}}|<div class="infobox-image">[[File:{{{image1}}}|300px]]</div>}}
<table>{{#if:{{{successor&platform|}}}|<tr>
+
<table>{{#if:{{{predecessor|}}}{{{successor|}}}{{{platform|}}}{{{release_date(s)|}}}{{{order_in_series|}}}|<tr><td class="infobox-subtitle">Timeline</td></tr>}}
     <th>Timeline</th>
+
{{#if:{{{predecessor|}}}|<tr>
 +
     <th>Predecessor</th>
 
     <td>{{{predecessor}}}</td>
 
     <td>{{{predecessor}}}</td>
 +
</tr>}}
 +
{{#if:{{{successor|}}}|<tr>
 +
    <th>Successor</th>
 
     <td>{{{successor}}}</td>
 
     <td>{{{successor}}}</td>
 +
</tr>}}
 +
{{#if:{{{platform|}}}|<tr>
 +
    <th>Platform</th>
 
     <td>{{{platform}}}</td>
 
     <td>{{{platform}}}</td>
 +
</tr>}}
 +
{{#if:{{{release_date(s)|}}}|<tr>
 +
    <th>Release Date(s)</th>
 
     <td>{{{release_date(s)}}}</td>
 
     <td>{{{release_date(s)}}}</td>
 +
</tr>}}
 +
{{#if:{{{order_in_series|}}}|<tr>
 +
    <th>Order in Series</th>
 
     <td>{{{order_in_series}}}</td>
 
     <td>{{{order_in_series}}}</td>
</tr>}}{{#if:({{{genre}}} or {{{companies}}} or {{{ratings}}} or {{{hdn_wiki_score}}})|<tr>
+
</tr>}}
     <th>Game Info</th>
+
{{#if:{{{genre|}}}{{{companies|}}}{{{ratings|}}}{{{hdn_wiki_score|}}}|<tr><td class="infobox-subtitle">Game Info</td></tr>}}
 +
{{#if:{{{genre|}}}|<tr>
 +
     <th>Genre</th>
 
     <td>{{{genre}}}</td>
 
     <td>{{{genre}}}</td>
 +
</tr>}}
 +
{{#if:{{{companies|}}}|<tr>
 +
    <th>Companies</th>
 
     <td>{{{companies}}}</td>
 
     <td>{{{companies}}}</td>
 +
</tr>}}
 +
{{#if:{{{ratings|}}}|<tr>
 +
    <th>Ratings</th>
 
     <td>{{{ratings}}}</td>
 
     <td>{{{ratings}}}</td>
 +
</tr>}}
 +
{{#if:{{{hdn_wikia_score|}}}|<tr>
 +
    <th>HDN Wikia Score</th>
 
     <td>{{{hdn_wikia_score}}}</td>
 
     <td>{{{hdn_wikia_score}}}</td>
</tr>}}</table>
+
</tr>}}
 +
</table>
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>

Revision as of 10:05, 2 April 2021

Game

Example usage:

{{Game
|title1=Example
|image1=Example
|caption1=Example
|predecessor=Example
|successor=Example
|platform=Example
|release_date(s)=Example
|order_in_series=Example
|genre=Example
|companies=Example
|ratings=Example
|hdn_wikia_score=Example
}}