Jump to content

Template:GameInfobox: Difference between revisions

Szczypak64 (talk | contribs)
m Protected "Template:GameInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Szczypak64 (talk | contribs)
No edit summary
Tag: Reverted
Line 1: Line 1:
{{InfoboxBase|{{{Name|{{{name|{{PAGENAME}}}}}}}}|green|{{#if:{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}|<center>{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}</center>|[[File:{{{Image|{{{Picture|none.png}}}}}}|300px|center]]}}
<includeonly><div style="padding:0 0 20px 20px;width:340px;float:right">
{{#if:{{{Quote|{{{Caption|}}}}}}|<div style="text-align: center;">{{{Quote|{{{Caption|}}}}}}</div>|}}|white}}
<!-- START OF ACTUAL INFO BOX -->
{{InfoboxSection|Protagonist(s):|{{{Protagonist|}}}}}
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa;width:100%" align="center"
{{InfoboxSection|Genre(s):|{{{Genre|}}}}}
|-
{{InfoboxSection|Rating(s):|{{{Rating|}}}}}
!style="background:green;" |'''<font color=White>{{{name|''{{PAGENAME}}''}}}</font>'''
{{InfoboxSection|Platform(s):|{{{Platforms|}}}}}
|-
{{InfoboxSection|Release Date:|{{{Release Date|}}}}}
|
{{InfoboxSection|Discontinuation:|{{{Delist Date|}}}}}
<!-- BORDER AROUND THE IMAGE -->
{{InfoboxSection|Engine:|{{{Game Engine|}}}}}
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center"
{{InfoboxSection|Developer(s):|{{{Developer|}}}}}
|-
{{InfoboxSection|Publisher(s):|{{{Publisher|}}}}}
![[image:{{{Picture|none.png}}}|330px|center|]]
{{InfoboxSection|Country:|{{{Country|}}}}}
|-
{{InfoboxSection|Series:|{{{Franchise|}}}}}
|}{{#if:{{{Quote|}}}|{{{Quote|}}}}}
{{InfoboxSection|Predecessor:|{{{Prequel|}}}}}
<!-- END OF BORDER AROUND IMAGE -->
{{InfoboxSection|Successor:|{{{Sequel|}}}}}
|-
|
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa;width:100%"
|-valign="top"
{{#if:{{{Protagonist|}}} |
!width=100{{!}}Protagonist(s):
!width=200{{!}}{{{Protagonist|}}}
}}
|-valign="top"
{{#if:{{{Genre|}}} |
!width=100{{!}}Genre(s):
!width=200{{!}}{{{Genre|}}}
}}
|-valign="top"
{{#if:{{{Rating|}}} |
!width=100{{!}}Rating(s):
!width=200{{!}}{{{Rating|}}}
}}
|-valign="top"
{{#if:{{{Platforms|}}} |
!width=100{{!}}Platform(s):
!width=200{{!}}{{{Platforms|}}}
}}
|-valign="top"
{{#if:{{{Release Date|}}} |
!width=100{{!}}Release:
!width=200{{!}}{{{Release Date|}}}
}}
|-valign="top"
{{#if:{{{Delist Date|}}} |
!width=100{{!}}Discontinuation:
!width=200{{!}}{{{Delist Date|}}}
}}
|-valign="top"
{{#if:{{{Game Engine|}}} |
!width=100{{!}}Engine:  
!width=200{{!}}{{{Game Engine|}}}
}}
|-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|}}}
}}
|-
|}
|}
<!-- END OF FIRST SECTION  -->
|}
|}
<!-- END OF ACTUAL INFOBOX -->
</div>
<!-- END OF PADDING AROUND INFOBOX -->
</includeonly>
<noinclude>
<noinclude>
<div><pre>
<div><pre>
{{GameInfobox
{{GameInfobox
|Picture =
|Picture=
|Quote =
|Quote=
|Protagonist =
|Protagonist=
|Genre =
|Genre=
|Rating =
|Rating=
|Platforms =
|Platforms=
|Release Date =
|Release Date=
|Delist Date =
|Delist Date=
|Game Engine =
|Game Engine=
|Developer =
|Developer=
|Publisher =
|Publisher=
|Country =
|Country=
|Franchise =
|Franchise=
|Prequel =
|Prequel=
|Sequel =
|Sequel=
}}
}}
</pre></div>
</pre></div>


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


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.
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.
Line 45: Line 117:
<div><pre style=>
<div><pre style=>
{{GameInfobox
{{GameInfobox
|name = ''Sonic the Hedgehog''
|Picture=Sonic-the-Hedgehog-2006-X360.jpg
|Picture = Sonic-the-Hedgehog-2006-X360.jpg
|Quote={{Quote|It's no use!|Silver the Hedgehog, hopefully about this game}}
|Quote = {{Quote|'''It's no use!'''|Silver the Hedgehog}}
|Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Platforms = Xbox 360<br>PlayStation 3
|Genre=Action-adventure<br>Platform
|Rating = ESRB: E10+<br>PEGI: 12+<br>CERO: A<br>OFLC: PG<br>USK: 6+
|Rating = ESRB: E10+<br>PEGI: 12
|Protagonist = Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Platforms=[[mh:awesomegames:Sony PlayStation|PlayStation]]
|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>
|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
|Country = Japan
|Developer = [[Sonic Team]]
|Franchise = ''[[:Category:Sonic the Hedgehog Games|Sonic the Hedgehog]]''
|Publisher = [[Sega]]
|Game Engine = RenderWare<br>Havok <small>(physics)</small>
|Franchise = ''Sonic the Hedgehog''
|Prequel = ''[[Shadow the Hedgehog]]''
|Prequel = ''[[Shadow the Hedgehog]]''
|Sequel = ''[[Sonic Unleashed]]''
|Sequel = ''[[mh:awesomegames:Sonic Unleashed (PS3/X360)|Sonic Unleashed]]''
}}
}}
</pre></div>
</pre></div>
Results in the following (normally aligned on the right of the screen):
Results in the following (normally aligned on the right of the screen):
{|
{|
|-
|-
|{{GameInfobox
|{{GameInfobox
|name = ''Sonic the Hedgehog''
|name = GameInfobox
|Picture = Sonic-the-Hedgehog-2006-X360.jpg
|Picture=Sonic-the-Hedgehog-2006-X360.jpg
|Quote = {{Quote|'''It's no use!'''|Silver the Hedgehog}}
|Quote={{Quote|It's no use!|Silver the Hedgehog, hopefully about this game}}
|Platforms = Xbox 360<br>PlayStation 3
|Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Rating = ESRB: E10+<br>PEGI: 12+<br>CERO: A<br>OFLC: PG<br>USK: 6+
|Genre=Action-adventure<br>Platform
|Protagonist = Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Rating = ESRB: E10+<br>PEGI: 12
|Genre = Action-adventure<br>Platform
|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>
|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
|Country = Japan
|Developer = [[Sonic Team]]
|Franchise = ''[[:Category:Sonic the Hedgehog Games|Sonic the Hedgehog]]''
|Publisher = [[Sega]]
|Game Engine = RenderWare<br>Havok <small>(physics)</small>
|Franchise = ''Sonic the Hedgehog''
|Prequel = ''[[Shadow the Hedgehog]]''
|Prequel = ''[[Shadow the Hedgehog]]''
|Sequel = ''[[Sonic Unleashed]]''
|Sequel = ''[[mh:awesomegames:Sonic Unleashed (PS3/X360)|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>
}}
}}
|-
|-