|
|
Line 1: |
Line 1: |
| <!-- START OF ACTUAL INFO BOX --> | | <includeonly> |
| {| cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa; float: right; margin: 20px; margin-top: 0; max-width: 300px;" align="center"
| | <infobox> |
| |-
| | <title source="name"> |
| ! style="background: green; color: white;" |'''{{{name|''{{PAGENAME}}''}}}'''
| | <default>{{PAGENAME}}</default> |
| |-
| | </title> |
| | {{#if:{{{Image|{{{Picture|none.png}}}}}}|[[File:{{{Image|{{{Picture|none.png}}}}}}{{!}}300px{{!}}center]]|}}
| | <image source="Picture"> |
| {{#if:{{{Quote|}}}|{{{Quote|}}}}}
| | <caption source="Quote"/> |
| <!-- END OF BORDER AROUND IMAGE --> | | </image> |
| |-
| | <data source="Protagonist"> |
| |
| | <label>Protagonist(s)</label> |
| {| border="0" cellpadding="2" cellspacing="1" style="border-top: 1px solid #aaaaaa; text-align: left; width: 100%;"
| | </data> |
| |- valign="top"
| | <data source="Genre"> |
| {{#if:{{{Protagonist|}}} |
| | <label>Genre(s)</label> |
| ! width=100 {{!}} Protagonist(s):
| | </data> |
| ! width=200 {{!}} {{{Protagonist|}}}
| | <data source="Platforms"> |
| }}
| | <label>Platform(s)</label> |
| |- valign="top"
| | </data> |
| {{#if:{{{Genre|}}} |
| | <data source="Release Date"> |
| ! width=100 {{!}} Genre(s):
| | <label>Release</label> |
| ! width=200 {{!}} {{{Genre|}}}
| | </data> |
| }}
| | <data source="Delist Date"> |
| |- valign="top"
| | <label>Discontinuation</label> |
| {{#if:{{{Rating|}}} |
| | </data> |
| ! width=100 {{!}} Rating(s):
| | <data source="Game Engine"> |
| ! width=200 {{!}} {{{Rating|}}}
| | <label>Engine</label> |
| }}
| | </data> |
| |- valign="top"
| | <data source="Developer"> |
| {{#if:{{{Platforms|}}} |
| | <label>Developer(s)</label> |
| ! width=100 {{!}} Platform(s):
| | </data> |
| ! width=200 {{!}} {{{Platforms|}}}
| | <data source="Publisher"> |
| }}
| | <label>Publisher(s)</label> |
| |- valign="top"
| | </data> |
| {{#if:{{{Release Date|}}} |
| | <data source="Country"> |
| ! width=100 {{!}} Release:
| | <label>Country</label> |
| ! width=200 {{!}} {{{Release Date|}}}
| | </data> |
| }}
| | <data source="Franchise"> |
| |- valign="top"
| | <label>Series</label> |
| {{#if:{{{Delist Date|}}} |
| | </data> |
| ! width=100 {{!}} Discontinuation:
| | <data source="Prequel"> |
| ! width=200 {{!}} {{{Delist Date|}}}
| | <label>Predecessor</label> |
| }}
| | </data> |
| |- valign="top"
| | <data source="Sequel"> |
| {{#if:{{{Game Engine|}}} |
| | <label>Successor</label> |
| ! width=100 {{!}} Engine:
| | </data> |
| ! width=200 {{!}} {{{Game Engine|}}}
| | </infobox> |
| }}
| | </includeonly> |
| |- valign="top"
| |
| {{#if:{{{Developer|}}} |
| |
| ! width=100 {{!}} Developer(s):
| |
| ! width=200 {{!}} {{{Developer|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{#if:{{{Publisher|}}} |
| |
| ! width=100 {{!}} Publisher(s):
| |
| ! width=200 {{!}} {{{Publisher|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{#if:{{{Country|}}} |
| |
| ! width=100 {{!}} Country:
| |
| ! width=200 {{!}} {{{Country|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{#if:{{{Franchise|}}} |
| |
| ! width=100 {{!}} Series:
| |
| ! width=200 {{!}} {{{Franchise|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{#if:{{{Prequel|}}} |
| |
| ! width=100 {{!}} Predecessor:
| |
| ! width=200 {{!}} {{{Prequel|}}}
| |
| }}
| |
| |- valign="top"
| |
| {{#if:{{{Sequel|}}} |
| |
| ! width=100 {{!}} Successor:
| |
| ! width=200 {{!}} {{{Sequel|}}}
| |
| }}
| |
| |-
| |
| |}
| |
| |}
| |
| <noinclude> | | <noinclude> |
| <div><pre>
| | Example usage: |
| {{GameInfobox | | <pre> |
| |Image= | | {{Game Infobox |
| |Quote= | | |
| |Protagonist= | | | name=Example |
| |Genre= | | |
| |Rating=
| | | Picture=Example |
| |Platforms= | | |
| |Release Date= | | | Caption=Example |
| |Delist Date= | | |
| |Game Engine= | | | Protagonist=Example |
| |Developer= | | |
| |Publisher= | | | Genre=Example |
| |Country= | | |
| |Franchise=
| | | Platforms=Example |
| |Prequel=
| | |
| |Sequel=
| | | Release Date=Example |
| }}
| | |
| </pre></div>
| | | Delist Date=Example |
| | |
| | | Game Engine=Example |
| | |
| | | Developer=Example |
| | |
| | | Publisher=Example |
| | |
| | | Country=Example |
|
| |
|
| ==Example==
| | | Franchise=Example |
|
| |
|
| Notes: Use the operator <nowiki><br></nowiki> in source mode to add linebreaks within the table. Sections left blank will not be displayed. The title that appears at the top of the infobox will be the same as the name of the page it is on. Note that the picture field requires the extension (.jpg, .jpeg, .png) to be present, and requires that the File: or Image: part of the link ''not'' be present.
| | | Prequel=Example |
|
| |
|
| Using the following:
| | | Sequel=Example |
| <div><pre style=>
| |
| {{GameInfobox
| |
| |Image=Sonic-the-Hedgehog-2006-X360.jpg
| |
| |Quote={{Quote|It's no use!|Silver the Hedgehog, hopefully about this game}}
| |
| |Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
| |
| |Genre=Action-adventure<br>Platform
| |
| |Rating = ESRB: E10+<br>PEGI: 12
| |
| |Platforms=[[mh:awesomegames:Sony PlayStation|PlayStation]]
| |
| |Release Date=Xbox 360<br><small>NA: November 14, 2006<br>EU: November 24, 2006<br>JP: December 21, 2006</small><br>PlayStation 3<br><small>JP: December 21, 2006<br>NA: January 30, 2007<br>EU: March 23, 2007</small>
| |
| |Delist Date=
| |
| |Game Engine=RenderWare<br>Havok <small>(physics)</small>
| |
| |Developer=[[mh:awesomegames:Sonic Team]]
| |
| |Publisher=[[Sega]]
| |
| |Country = Japan
| |
| |Franchise = ''[[:Category:Sonic the Hedgehog Games|Sonic the Hedgehog]]''
| |
| |Prequel = ''[[Shadow the Hedgehog]]''
| |
| |Sequel = ''[[mh:awesomegames:Sonic Unleashed (PS3/X360)|Sonic Unleashed]]'' | |
| }}
| |
| </pre></div>
| |
| Results in the following (normally aligned on the right of the screen):
| |
|
| |
|
| {|
| |
| |-
| |
| |{{GameInfobox
| |
| |name = GameInfobox
| |
| |Picture=Sonic-the-Hedgehog-2006-X360.jpg
| |
| |Quote={{Quote|It's no use!|Silver the Hedgehog, hopefully about this game}}
| |
| |Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
| |
| |Genre=Action-adventure<br>Platform
| |
| |Rating = ESRB: E10+<br>PEGI: 12
| |
| |Platforms=[[mh:awesomegames:Sony PlayStation|PlayStation]]
| |
| |Release Date=Xbox 360<br><small>NA: November 14, 2006<br>EU: November 24, 2006<br>JP: December 21, 2006</small><br>PlayStation 3<br><small>JP: December 21, 2006<br>NA: January 30, 2007<br>EU: March 23, 2007</small>
| |
| |Delist Date=
| |
| |Game Engine=RenderWare<br>Havok <small>(physics)</small>
| |
| |Developer=[[mh:awesomegames:Sonic Team]]
| |
| |Publisher=[[Sega]]
| |
| |Country = Japan
| |
| |Franchise = ''[[:Category:Sonic the Hedgehog Games|Sonic the Hedgehog]]''
| |
| |Prequel = ''[[Shadow the Hedgehog]]''
| |
| |Sequel = ''[[mh:awesomegames:Sonic Unleashed (PS3/X360)|Sonic Unleashed]]''
| |
| }} | | }} |
| |-
| | </pre> |
| |}
| | <templatedata> |
| [[Category:Templates]] | | {"params":{"name":{"suggested":true},"Picture":{"suggested":true},"Quote":{"suggested":true},"Protagonist":{"suggested":true},"Genre":{"suggested":true},"Platforms":{"suggested":true},"Release Date":{"suggested":true},"Game Engine":{"suggested":true},"Developer":{"suggested":true},"Publisher":{"suggested":true},"Country":{"suggested":true},"Franchise":{"suggested":true},"Prequel":{"suggested":true},"Sequel":{"suggested":true}},"sets":[],"maps":{}} |
| [[Category:Infobox templates]]
| | </templatedata> |
| </noinclude> | | </noinclude> |
Example usage:
{{Game Infobox
| name=Example
| Picture=Example
| Caption=Example
| Protagonist=Example
| Genre=Example
| Platforms=Example
| Release Date=Example
| Delist Date=Example
| Game Engine=Example
| Developer=Example
| Publisher=Example
| Country=Example
| Franchise=Example
| Prequel=Example
| Sequel=Example
}}
<templatedata>
{"params":{"name":{"suggested":true},"Picture":{"suggested":true},"Quote":{"suggested":true},"Protagonist":{"suggested":true},"Genre":{"suggested":true},"Platforms":{"suggested":true},"Release Date":{"suggested":true},"Game Engine":{"suggested":true},"Developer":{"suggested":true},"Publisher":{"suggested":true},"Country":{"suggested":true},"Franchise":{"suggested":true},"Prequel":{"suggested":true},"Sequel":{"suggested":true}},"sets":[],"maps":{}}
</templatedata>