Template:Game: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (35 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)| | {{#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| | {{#cargo_declare:_table=games|title=String|developer=List (,) of Page|publisher=List (,) of Page|image=List (,) of File|platform=List (,) of Page}} | ||
</noinclude><includeonly>{{#cargo_store:_table=games}} | </noinclude> | ||
<includeonly>{{#cargo_store:_table=games}}<table class="infobox-table citizen-table-nowrap floatright"> | |||
<infobox> | <tr id="infobox-table-img-bg"> | ||
< | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:AlbumArt_Placeholder.jpg|400px]]}}</td> | ||
< | </tr> | ||
< | <tr> | ||
< | <th width="100%" colspan="3" class="infobox-table-name"><b>''{{{title}}}''</b></th> | ||
</ | </tr> | ||
{{#if:{{{developer|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Developer(s)<noinclude></noinclude></td> | |||
<td width="60%">{{#arraymap:{{{developer}}}|,|x|[[x]]}}</td> | |||
[[Category:Games]] | </tr>}} | ||
</includeonly> | {{#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>{{{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.