Template:Game: Difference between revisions
Template page
More actions
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"> | ||
< | <tr id="infobox-table-img-bg"> | ||
< | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{artwork|}}}|[[File:{{{artwork}}}|400px]]|[[File:Placeholderv2.png|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> | ||
</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.