Template:GameInfobox: Difference between revisions

Szczypak64 (talk | contribs)
No edit summary
Tag: Reverted
Szczypak64 (talk | contribs)
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly>
{{InfoboxBase|{{{Name|{{{name|{{PAGENAME}}}}}}}}|green|{{#if:{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}|<center>{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}</center>|[[File:{{{Image|{{{Picture|none.png}}}}}}|300px|center]]}}
<infobox>
{{#if:{{{Quote|{{{Caption|}}}}}}|<div style="text-align: center;">{{{Quote|{{{Caption|}}}}}}</div>|}}|white}}
  <title source="name">
{{InfoboxSection|Protagonist(s):|{{{Protagonist|}}}}}
    <default>{{PAGENAME}}</default>
{{InfoboxSection|Genre(s):|{{{Genre|}}}}}
  </title>
{{InfoboxSection|Rating(s):|{{{Rating|}}}}}
  <image source="Picture">
{{InfoboxSection|Platform(s):|{{{Platforms|}}}}}
    <caption source="Quote"/>
{{InfoboxSection|Release Date:|{{{Release Date|}}}}}
  </image>
{{InfoboxSection|Discontinuation:|{{{Delist Date|}}}}}
  <data source="Protagonist">
{{InfoboxSection|Engine:|{{{Game Engine|}}}}}
    <label>Protagonist(s)</label>
{{InfoboxSection|Developer(s):|{{{Developer|}}}}}
  </data>
{{InfoboxSection|Publisher(s):|{{{Publisher|}}}}}
  <data source="Genre">
{{InfoboxSection|Country:|{{{Country|}}}}}
    <label>Genre(s)</label>
{{InfoboxSection|Series:|{{{Franchise|}}}}}
  </data>
{{InfoboxSection|Predecessor:|{{{Prequel|}}}}}
  <data source="Platforms">
{{InfoboxSection|Successor:|{{{Sequel|}}}}}
    <label>Platform(s)</label>
|}
  </data>
|}
  <data source="Release Date">
    <label>Release</label>
  </data>
  <data source="Delist Date">
    <label>Discontinuation</label>
  </data>
  <data source="Game Engine">
    <label>Engine</label>
  </data>
  <data source="Developer">
    <label>Developer(s)</label>
  </data>
  <data source="Publisher">
    <label>Publisher(s)</label>
  </data>
  <data source="Country">
    <label>Country</label>
  </data>
  <data source="Franchise">
    <label>Series</label>
  </data>
  <data source="Prequel">
    <label>Predecessor</label>
  </data>
  <data source="Sequel">
    <label>Successor</label>
  </data>
</infobox>
</includeonly>
<noinclude>
<noinclude>
Example usage:
<div><pre>
<pre>
{{GameInfobox
{{Game Infobox
|Picture =
|Quote =
|Protagonist =
|Genre =
|Rating =
|Platforms =
|Release Date =
|Delist Date =
|Game Engine =
|Developer =
|Publisher =
|Country =
|Franchise =
|Prequel =
|Sequel =
}}
</pre></div>


  | name=Example
=Usage=
This infobox is used for interactive entertainment that can be controlled by someone else, better known as games.


  | Picture=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.


  | Caption=Example
Using the following:
 
<div><pre style=>
  | Protagonist=Example
{{GameInfobox
 
|name = ''Sonic the Hedgehog''
  | Genre=Example
|Picture = Sonic-the-Hedgehog-2006-X360.jpg
 
|Quote = {{Quote|'''It's no use!'''|Silver the Hedgehog}}
  | Platforms=Example
|Platforms = Xbox 360<br>PlayStation 3
 
|Rating = ESRB: E10+<br>PEGI: 12+<br>CERO: A<br>OFLC: PG<br>USK: 6+
  | Release Date=Example
|Protagonist = Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
 
|Genre = Action-adventure<br>Platform
  | Delist Date=Example
|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>
 
|Country = Japan
  | Game Engine=Example
|Developer = [[Sonic Team]]
 
|Publisher = [[Sega]]
  | Developer=Example
|Game Engine = RenderWare<br>Havok <small>(physics)</small>
 
|Franchise = ''Sonic the Hedgehog''
  | Publisher=Example
|Prequel = ''[[Shadow the Hedgehog]]''
 
|Sequel = ''[[Sonic Unleashed]]''
  | Country=Example
}}
 
</pre></div>
  | Franchise=Example
Results in the following (normally aligned on the right of the screen):
 
{|
  | Prequel=Example
|-
 
|{{GameInfobox
  | Sequel=Example
|name = ''Sonic the Hedgehog''
|Picture = Sonic-the-Hedgehog-2006-X360.jpg
|Quote = {{Quote|'''It's no use!'''|Silver the Hedgehog}}
|Platforms = Xbox 360<br>PlayStation 3
|Rating = ESRB: E10+<br>PEGI: 12+<br>CERO: A<br>OFLC: PG<br>USK: 6+
|Protagonist = Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Genre = Action-adventure<br>Platform
|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>
|Country = Japan
|Developer = [[Sonic Team]]
|Publisher = [[Sega]]
|Game Engine = RenderWare<br>Havok <small>(physics)</small>
|Franchise = ''Sonic the Hedgehog''
|Prequel = ''[[Shadow the Hedgehog]]''
|Sequel = ''[[Sonic Unleashed]]''
}}
|-
|}
{{Hardline}}
To use two or more pictures, use '''MultiImage''' instead of '''Image'''.


Using this:
<div><pre style=>
{{GameInfobox
|MultiImage = <tabber>
Original=[[File:BattleForBikiniBottom.jpg|265px]]
|-|Rehydrated=[[File:BfBB Rehrdrated.jpg|265px]]
</tabber>
|Quote = {{Quote|As long as these pants are square, and this sponge is Bob, I will not let you down!|SpongeBob SquarePants}}
|Genre = Action-adventure<br>Platform
|Platforms = <div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">Original</div>
<div class="mw-collapsible-content">Game Boy Advance<br>Microsoft Windows<br>[[Nintendo GameCube]]<br>PlayStation 2<br>Xbox</div><div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">''Rehydrated''</div>
<div class="mw-collapsible-content">Microsoft Windows<br>Nintendo Switch<br>Playstation 4<br>Xbox One<br>[[Stadia]]<br>Android<br>iOS</div>
|Release Date = <div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">Original</div>
<div class="mw-collapsible-content"><small>NA: October 31, 2003<br>EU: November 28, 2003<br>AU: 2003 (PS2)</small></div><div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">''Rehydrated''</div>
<div class="mw-collapsible-content"><small>WW: June 23, 2020<br>WW: December 8, 2020 (Stadia)</small><br><small>WW: January 21, 2021 (Android/iOS)</small></div>
|Developer = [[Heavy Iron Studios]] <small>(original)</small><br>AWE Games <small>(original; PC)</small><br>[[Vicarious Visions]] <small>(original; GBA)</small><br>Purple Lamp Studios <small>(''Rehydrated'')</small><br>HandyGames <small>(''Rehydrated''; Android/iOS)</small>
|Publisher = [[THQ]] <small>(original)</small><br>THQ Nordic <small>(''Rehydrated'')</small><br>HandyGames <small>(''Rehydrated''; Android/iOS)</small>
|Franchise = ''[[SpongeBob SquarePants]]''
|Sequel = ''[[The SpongeBob SquarePants Movie (video game)|The SpongeBob SquarePants Movie]]''
|Prequel = ''[[SpongeBob SquarePants: Revenge of the Flying Dutchman]]''
|Country = United States<br>Austria<br>Germany
|Game Engine = RenderWare <small>(original, home console versions only)</small><br>Unreal Engine 4 <small>(''Rehydrated'')</small>
}}
</pre></div>
Results in this:
{|
|-
|{{GameInfobox
|MultiImage = <tabber>
Original=[[File:BattleForBikiniBottom.jpg|265px]]
|-|Rehydrated=[[File:BfBB Rehrdrated.jpg|265px]]
</tabber>
|Quote = {{Quote|As long as these pants are square, and this sponge is Bob, I will not let you down!|SpongeBob SquarePants}}
|Genre = Action-adventure<br>Platform
|Platforms = <div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">Original</div>
<div class="mw-collapsible-content">Game Boy Advance<br>Microsoft Windows<br>[[Nintendo GameCube]]<br>PlayStation 2<br>Xbox</div><div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">''Rehydrated''</div>
<div class="mw-collapsible-content">Microsoft Windows<br>Nintendo Switch<br>Playstation 4<br>Xbox One<br>[[Stadia]]<br>Android<br>iOS</div>
|Release Date = <div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">Original</div>
<div class="mw-collapsible-content"><small>NA: October 31, 2003<br>EU: November 28, 2003<br>AU: 2003 (PS2)</small></div><div class="mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.6;">''Rehydrated''</div>
<div class="mw-collapsible-content"><small>WW: June 23, 2020<br>WW: December 8, 2020 (Stadia)</small><br><small>WW: January 21, 2021 (Android/iOS)</small></div>
|Developer = [[Heavy Iron Studios]] <small>(original)</small><br>AWE Games <small>(original; PC)</small><br>[[Vicarious Visions]] <small>(original; GBA)</small><br>Purple Lamp Studios <small>(''Rehydrated'')</small><br>HandyGames <small>(''Rehydrated''; Android/iOS)</small>
|Publisher = [[THQ]] <small>(original)</small><br>THQ Nordic <small>(''Rehydrated'')</small><br>HandyGames <small>(''Rehydrated''; Android/iOS)</small>
|Franchise = ''[[SpongeBob SquarePants]]''
|Sequel = ''[[The SpongeBob SquarePants Movie (video game)|The SpongeBob SquarePants Movie]]''
|Prequel = ''[[SpongeBob SquarePants: Revenge of the Flying Dutchman]]''
|Country = United States<br>Austria<br>Germany
|Game Engine = RenderWare <small>(original, home console versions only)</small><br>Unreal Engine 4 <small>(''Rehydrated'')</small>
}}
}}
</pre>
|-
<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":{}}
[[Category:Templates]]
</templatedata>
[[Category:Infobox templates]]
</noinclude>
</noinclude>