Template:Game: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (8 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> | </noinclude> | ||
<includeonly>{{#cargo_store:_table=games}}<table class="infobox-table citizen-table-nowrap floatright"> | <includeonly>{{#cargo_store:_table=games}}<table class="infobox-table citizen-table-nowrap floatright"> | ||
<tr id="infobox-table-img-bg"> | <tr id="infobox-table-img-bg"> | ||
<td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{ | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:AlbumArt_Placeholder.jpg|400px]]}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th width="100%" colspan="3" class="infobox-table-name"><b>{{{title}}}</b></th> | <th width="100%" colspan="3" class="infobox-table-name"><b>''{{{title}}}''</b></th> | ||
</tr> | </tr> | ||
{{#if:{{{developer|}}}|<tr> | {{#if:{{{developer|}}}|<tr> | ||
| Line 22: | Line 22: | ||
<td width="60%">{{#arraymap:{{{platform}}}|,|x|[[x]]}}</td> | <td width="60%">{{#arraymap:{{{platform}}}|,|x|[[x]]}}</td> | ||
</tr>}} | </tr>}} | ||
</table>[[Category:Games]] {{DISPLAYTITLE:''{{{title}}}}}<templatestyles src="Template:Game/styles.css" /></includeonly> | </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.