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
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:title (label=Title)|developer (label=Developer)|publisher (label=Publisher)|artwork (label=Artwork)|system (label=System)}}
{{#template_params:title (label=Title)|developer (label=Developer)|publisher (label=Publisher)|image (label=Image)|platform (label=Platform)}}
{{#cargo_declare:_table=games|title=String|developer=List (,) of Page|publisher=List (,) of Page|artwork=List (,) of File|system=List (,) of Page}}
{{#cargo_declare:_table=games|title=String|developer=List (,) of Page|publisher=List (,) of Page|image=List (,) of File|platform=List (,) of Page}}
</noinclude>
</noinclude>
<includeonly>{{#cargo_store:_table=games}}
<includeonly>{{#cargo_store:_table=games}}<table class="infobox-table citizen-table-nowrap floatright">
 
<tr id="infobox-table-img-bg">
<infobox>
<td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:AlbumArt_Placeholder.jpg|400px]]}}</td>
<title source="title"><default>{{PAGENAME}}</default></title>
</tr>
<image source="artwork"/>
<tr>
<data source="developer">
<th width="100%" colspan="3" class="infobox-table-name"><b>''{{{title}}}''</b></th>
<label>Developer</label><format>{{#arraymap:{{{developer}}}|,|x|[[x]]}}</format>
</tr>
</data>
{{#if:{{{developer|}}}|<tr>
<data source="publisher"><label>Publisher</label><format>{{#arraymap:{{{publisher}}}|,|x|[[x]]}}</format>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Developer(s)<noinclude></noinclude></td>
<data source="system"><label>Systems</label><format>{{#arraymap:{{{system}}}|,|x|[[x]]}}</format>
<td width="60%">{{#arraymap:{{{developer}}}|,|x|[[x]]}}</td>
 
</tr>}}
</data>
{{#if:{{{publisher|}}}|<tr>
</infobox>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Publisher(s)<noinclude></noinclude></td>
 
<td width="60%">{{#arraymap:{{{publisher}}}|,|x|[[x]]}}</td>
 
</tr>}}
[[Category:Games]]
{{#if:{{{platform|}}}|<tr>
</includeonly>
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Platform(s)<noinclude></noinclude></td>
<td width="60%">{{#arraymap:{{{platform}}}|,|x|[[x]]}}</td>
</tr>}}
</table>{{{ReleaseDates|}}} {{{Contributors|}}} [[Category:{{FULLPAGENAME}}]] [[Category:Games]] {{DISPLAYTITLE:''{{{title}}}''}}<templatestyles src="Template:Game/styles.css" /></includeonly>

Latest revision as of 22:20, 28 October 2025

This is the "Game" template.

It should be called in the following format:

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

Edit the page to see the template text.

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