Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Game: Difference between revisions

Template page
No edit summary
No edit summary
Line 3: Line 3:
{{#cargo_declare:_table=games|title=String|developer=List (,) of Page|publisher=List (,) of Page|artwork=List (,) of File|platform=List (,) of Page}}
{{#cargo_declare:_table=games|title=String|developer=List (,) of Page|publisher=List (,) of Page|artwork=List (,) of File|platform=List (,) of Page}}
</noinclude>
</noinclude>
<includeonly>{{#cargo_store:_table=games}}<infobox>
<includeonly>{{#cargo_store:_table=games}}<table class="infobox-table citizen-table-nowrap floatright">
<title source="title"><default>{{PAGENAME}}</default></title>
<tr id="infobox-table-img-bg">
<image source="artwork"/>
<td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{artwork|}}}|[[File:{{{artwork}}}|400px]]|[[File:Placeholderv2.png|400px]]}}</td>
<data source="developer">
</tr>
<label>Developer</label><format>{{#arraymap:{{{developer}}}|,|x|[[x]]}}</format>
<tr>
</data>
<th width="100%" colspan="3" class="infobox-table-name"><b>{{{title}}}</b></th>
<data source="publisher"><label>Publisher</label><format>{{#arraymap:{{{publisher}}}|,|x|[[x]]}}</format></data>
</tr>
<data source="platform"><label>Platforms</label><format>{{#arraymap:{{{platform}}}|,|x|[[x]]}}</format>
{{#if:{{{developer|}}}|<tr>
</data>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Developer(s)<noinclude></noinclude></td>
</infobox>[[Category:Games]]</includeonly>
<td width="60%">{{#arraymap:{{{developer}}}|,|x|[[x]]}}</td>
</tr>}}
{{#if:{{{publisher|}}}|<tr>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Publisher(s)<noinclude></noinclude></td>
<td width="60%">{{#arraymap:{{{publisher}}}|,|x|[[x]]}}</td>
</tr>}}
{{#if:{{{platform|}}}|<tr>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Platform(s)<noinclude></noinclude></td>
<td width="60%">{{#arraymap:{{{platform}}}|,|x|[[x]]}}</td>
</tr>}}
</table>[[Category:Games]]</includeonly>

Revision as of 21:53, 26 October 2025

This is the "Game" template.

It should be called in the following format:

{{Game
|title=
|developer=
|publisher=
|artwork=
|platform=
}}

Edit the page to see the template text.

This template defines the table "games". View table.