Difference between revisions of "Template:Game"

From Hyperdimension Neptunia Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image1|}}}|
+
<div class="infobox-title">{{{title1|{{PAGENAME}}}}}</div>
<div class="infobox-image">[[File:{{{image1}}}|300px]]</div>}}
+
{{#if:{{{image1|}}}|<div class="infobox-image"><figure>[[File:{{{image1}}}|300px]]{{#if:{{{caption1|}}}|<figcaption class="infobox-caption">{{{caption1}}}</figcaption>}}</figure></div>}}
<table>{{#if:{{{(predecessor or successor or platform or release_date(s) or order_in_series)|}}}|<tr>
+
<table>{{#if:{{{predecessor|}}}{{{successor|}}}{{{platform|}}}{{{release_date(s)|}}}{{{order_in_series|}}}|<tr><td class="infobox-subtitle" colspan="2">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_wikia_score)|}}}|<tr>
+
</tr>}}
     <th>Game Info</th>
+
{{#if:{{{genre|}}}{{{companies|}}}{{{ratings|}}}{{{hdn_wiki_score|}}}|<tr><td class="infobox-subtitle" colspan="2">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>
Line 34: Line 59:
 
}}
 
}}
 
</pre>
 
</pre>
</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 07:43, 7 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
}}