Template:GameInfobox: Difference between revisions

Szczypak64 (talk | contribs)
No edit summary
Tag: Reverted
Szczypak64 (talk | contribs)
No edit summary
Tag: Manual revert
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="padding:0 0 20px 20px;width:340px;float:right">
{{InfoboxBase|{{{Name|{{{name|{{PAGENAME}}}}}}}}|green|{{#if:{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}|<center>{{{Video|{{{Videos|{{{MultiImage|{{{MultiPicture|}}}}}}}}}}}}</center>|[[File:{{{Image|{{{Picture|none.png}}}}}}|300px|center]]}}
<!-- START OF ACTUAL INFO BOX -->
{{#if:{{{Quote|{{{Caption|}}}}}}|<div style="text-align: center;">{{{Quote|{{{Caption|}}}}}}</div>|}}|white}}
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa;width:100%" align="center"
{{InfoboxSection|Protagonist(s):|{{{Protagonist|}}}}}
|-
{{InfoboxSection|Genre(s):|{{{Genre|}}}}}
!style="background:green;" |'''<font color=White>{{{name|''{{PAGENAME}}''}}}</font>'''
{{InfoboxSection|Rating(s):|{{{Rating|}}}}}
|-
{{InfoboxSection|Platform(s):|{{{Platforms|}}}}}
|
{{InfoboxSection|Release Date:|{{{Release Date|}}}}}
<!-- BORDER AROUND THE IMAGE -->
{{InfoboxSection|Discontinuation:|{{{Delist Date|}}}}}
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center"
{{InfoboxSection|Engine:|{{{Game Engine|}}}}}
|-
{{InfoboxSection|Developer(s):|{{{Developer|}}}}}
![[image:{{{Picture|none.png}}}|330px|center|]]
{{InfoboxSection|Publisher(s):|{{{Publisher|}}}}}
|-
{{InfoboxSection|Country:|{{{Country|}}}}}
|}{{#if:{{{Quote|}}}|{{{Quote|}}}}}
{{InfoboxSection|Series:|{{{Franchise|}}}}}
<!-- END OF BORDER AROUND IMAGE -->
{{InfoboxSection|Predecessor:|{{{Prequel|}}}}}
|-
{{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>


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