Template:Infobox game: Difference between revisions

From Pikmin Fanon
m (Cheepy-Cheepy moved page Template:Infobox Game to Template:Infobox game over redirect)
(Added an icon parameter.)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 30em; font-size: 82%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
{| class="infobox" align="right" style="width: 30em; font-size: 80%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
{{{!}} style = "min-width:100%;"
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}''
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon|}}}|40px|The icon used to represent this fanon game.]]
{{!}}} | ''{{{name|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{#if: {{{size|}}}|{{pipe}}{{{size}}}}}]]|}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Rating
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
| width = "70%" | {{{rating}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Genre
! width="40%" style="background: #eef;" {{!}} Rating
| width = "70%" | {{{genre}}}
{{!}} {{{rating|Unknown}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Platform(s)
! width="40%" style="background: #eef;" {{!}} Genre
| width = "70%" | {{{platforms}}}
{{!}} {{{genre|N/A}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Media
! width="40%" style="background: #eef;" {{!}} Platforms
| width = "70%" | {{{media}}}
{{!}} {{{platforms|Unknown}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Publisher
! width="40%" style="background: #eef;" {{!}} Media
| width = "70%" | {{{publisher}}}
{{!}} {{{media|N/A}}}
|-
|-
{{#if: {{{release dates|}}}|! width="30%" style="background: #e6e9ff;" {{pipe}} Release Dates
{{#if:{{{publisher|}}}|! width="40%" style="background: #eef;" {{!}} Publisher
{{pipe}} width = "70%" {{pipe}} {{{release dates}}}
{{!}} {{{publisher|Unknown}}}|}}
{{pipe}}-|}}
{{#if:{{{prequel|}}}|! width="30%" style="background: #e6e9ff;" {{Pipe}} Prequel
{{!}} {{{prequel|None}}}|}}
|-
|-
{{#if:{{{sequel|}}}|! width="30%" style="background: #e6e9ff;" {{Pipe}} Sequel
{{#if:{{{release dates|}}}|! width="40%" style="background: #eef;" {{!}} Release dates
{{!}} {{{sequel|None}}}|}}
{{!}} {{{release dates|None}}}|}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Creator
{{#if:{{{prequel|}}}|! width="40%" style="background: #eef;" {{!}} Prequel
| width = "70%" {{pipe}} {{{creator}}}
{{!}} {{{prequel|Unknown}}}|}}
|-
|-
{{#if: {{{collaborators|}}}|! width="30%" style="background: #e6e9ff;" {{pipe}} Collaborator(s)
{{#if:{{{sequel|}}}|! width="40%" style="background: #eef;" {{!}} Sequel
{{pipe}} width = "70%" {{pipe}} {{{collaborators}}}|}}
{{!}} {{{sequel|Unknown}}}|}}
|}<includeonly></includeonly><noinclude>
|-
[[Category:Infobox templates|{{PAGENAME}}]]
! width="40%" style="background: #eef;" {{!}} Creator
<noinclude>[[Category:Infobox templates]]
{{!}} {{{creator|Unknown}}}
|-
{{#if:{{{collaborators|}}}|! width="40%" style="background: #eef;" {{!}} Collaborators
{{!}} {{{collaborators|None}}}|}}
|-
|}{{#if:{{{nocat|}}}||<includeonly>[[Category:Fanon games]]</includeonly>}}<noinclude>
 
{{clear}}
{{clear}}
==Use==
 
<pre>{{infobox Game          *optional field
==Info==
*|image=image title including extension
This template is to be used at the top of game pages. It places an information box on the top-right corner of the page.
*|size=image size
 
|rating=ESRB rating
Pages with this template are automatically categorized in [[:Category:Fanon games]].
|genre=type of game
 
|platforms=what it plays on
==Parameters==
|media=What the game is on  [Example: disc, cartridge]
{| class = "wikitable"
|publisher=who distributes it
! Parameter || Mandatory || Default || Detailed description
*|release dates=when it would release   [Example: North America  12/21/2012]
|-
*|prequel=the game preceding it
! name
*|sequel=the game succeeding it
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the game is different from the title of the page, specify it here.
|creator=who made the game
|-
*|collaborators=who helped with the game
! image
}}
| No ||  || Image name, extension included.
</pre></noinclude>
|-
! size
| No ||  || Image size.
|-
! caption
| No ||  || Caption for the image, if needed.
|-
! icon
| No ||  || If the game has an icon, specify its image here, extension included.
|-
! rating
| '''Yes''' || Unknown || ESRB rating.
|-
! genre
| '''Yes''' || N/A || Game's genre.
|-
! platforms
| '''Yes''' || Unknown || Consoles the game is played on.
|-
! media
| '''Yes''' || N/A || The form the game is in. Examples are optical disc, cartridge, or digital download.
|-
! publisher
| No || Unknown || Who or what distributes the game.
|-
! release dates
| No || None || The game's release dates, if any.
|-
! prequel
| No || Unknown || The game's prequel.
|-
! sequel
| No || Unknown || The game's sequel.
|-
! creator
| '''Yes''' || Unknown || The game's creator.
|-
! collaborators
| No || None || Who helped develop the game.
|-
! nocat
| No || || Giving this a value like "y" makes the template not auto-categorize the game.
|}
 
==Skeleton==
<pre>{{infobox game
|name=
|image=
|size=
|caption=
|rating=
|genre=
|platforms=
|media=
|publisher=
|release dates=
|prequel=
|sequel=
|creator=
|collaborators=
|nocat=
}}</pre>
 
[[Category:Infobox templates]]</noinclude>

Revision as of 15:48, 10 October 2022

Infobox game
Rating Unknown
Genre N/A
Platforms Unknown
Media N/A
Creator Unknown

Info

This template is to be used at the top of game pages. It places an information box on the top-right corner of the page.

Pages with this template are automatically categorized in Category:Fanon games.

Parameters

Parameter Mandatory Default Detailed description
name No {{PAGENAME}} If the name of the game is different from the title of the page, specify it here.
image No Image name, extension included.
size No Image size.
caption No Caption for the image, if needed.
icon No If the game has an icon, specify its image here, extension included.
rating Yes Unknown ESRB rating.
genre Yes N/A Game's genre.
platforms Yes Unknown Consoles the game is played on.
media Yes N/A The form the game is in. Examples are optical disc, cartridge, or digital download.
publisher No Unknown Who or what distributes the game.
release dates No None The game's release dates, if any.
prequel No Unknown The game's prequel.
sequel No Unknown The game's sequel.
creator Yes Unknown The game's creator.
collaborators No None Who helped develop the game.
nocat No Giving this a value like "y" makes the template not auto-categorize the game.

Skeleton

{{infobox game
|name=
|image=
|size=
|caption=
|rating=
|genre=
|platforms=
|media=
|publisher=
|release dates=
|prequel=
|sequel=
|creator=
|collaborators=
|nocat=
}}