Jump to content

Template:GameInfobox: Difference between revisions

From SuperMega Media Wiki
Szczypak64 (talk | contribs)
No edit summary
Tag: Reverted
Szczypak64 (talk | contribs)
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly><div style="padding:0 0 20px 20px;width:340px;float:right">
<!-- START OF ACTUAL INFO BOX -->
<!-- START OF ACTUAL INFO BOX -->
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa;width:100%" align="center"
{| cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa; float: right; margin: 20px; margin-top: 0; max-width: 300px;" align="center"
|-
|-
!style="background:green;" |'''<font color=White>{{{name|''{{PAGENAME}}''}}}</font>'''
! style="background: green; color: white;" |'''{{{name|''{{PAGENAME}}''}}}'''
|-
|-
|
| {{#if:{{{Image|{{{Picture|none.png}}}}}}|[[File:{{{Image|{{{Picture|none.png}}}}}}{{!}}300px{{!}}center]]|}}
<!-- BORDER AROUND THE IMAGE -->
{{#if:{{{Quote|}}}|{{{Quote|}}}}}
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center"
|-
![[image:{{{Picture|none.png}}}|330px|center|]]
|-
|}{{#if:{{{Quote|}}}|{{{Quote|}}}}}
<!-- END OF BORDER AROUND IMAGE -->
<!-- END OF BORDER AROUND IMAGE -->
|-
|-
|
|
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa;width:100%"
{| border="0" cellpadding="2" cellspacing="1" style="border-top: 1px solid #aaaaaa; text-align: left; width: 100%;"
|-valign="top"
|- valign="top"
{{#if:{{{Protagonist|}}} |
{{#if:{{{Protagonist|}}} |
!width=100{{!}}Protagonist(s):
! width=100 {{!}} Protagonist(s):
!width=200{{!}}{{{Protagonist|}}}
! width=200 {{!}} {{{Protagonist|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Genre|}}} |
{{#if:{{{Genre|}}} |
!width=100{{!}}Genre(s):
! width=100 {{!}} Genre(s):
!width=200{{!}}{{{Genre|}}}
! width=200 {{!}} {{{Genre|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Rating|}}} |
{{#if:{{{Rating|}}} |
!width=100{{!}}Rating(s):
! width=100 {{!}} Rating(s):
!width=200{{!}}{{{Rating|}}}
! width=200 {{!}} {{{Rating|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Platforms|}}} |
{{#if:{{{Platforms|}}} |
!width=100{{!}}Platform(s):
! width=100 {{!}} Platform(s):
!width=200{{!}}{{{Platforms|}}}
! width=200 {{!}} {{{Platforms|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Release Date|}}} |
{{#if:{{{Release Date|}}} |
!width=100{{!}}Release:
! width=100 {{!}} Release:
!width=200{{!}}{{{Release Date|}}}
! width=200 {{!}} {{{Release Date|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Delist Date|}}} |
{{#if:{{{Delist Date|}}} |
!width=100{{!}}Discontinuation:
! width=100 {{!}} Discontinuation:
!width=200{{!}}{{{Delist Date|}}}
! width=200 {{!}} {{{Delist Date|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Game Engine|}}} |
{{#if:{{{Game Engine|}}} |
!width=100{{!}}Engine:  
! width=100 {{!}} Engine:  
!width=200{{!}}{{{Game Engine|}}}
! width=200 {{!}} {{{Game Engine|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Developer|}}} |
{{#if:{{{Developer|}}} |
!width=100{{!}}Developer(s):  
! width=100 {{!}} Developer(s):  
!width=200{{!}}{{{Developer|}}}
! width=200 {{!}} {{{Developer|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Publisher|}}} |
{{#if:{{{Publisher|}}} |
!width=100{{!}}Publisher(s):  
! width=100 {{!}} Publisher(s):  
!width=200{{!}}{{{Publisher|}}}
! width=200 {{!}} {{{Publisher|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Country|}}} |
{{#if:{{{Country|}}} |
!width=100{{!}}Country:  
! width=100 {{!}} Country:  
!width=200{{!}}{{{Country|}}}
! width=200 {{!}} {{{Country|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Franchise|}}} |
{{#if:{{{Franchise|}}} |
!width=100{{!}}Series:  
! width=100 {{!}} Series:  
!width=200{{!}}{{{Franchise|}}}
! width=200 {{!}} {{{Franchise|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Prequel|}}} |
{{#if:{{{Prequel|}}} |
!width=100{{!}}Predecessor:  
! width=100 {{!}} Predecessor:  
!width=200{{!}}{{{Prequel|}}}
! width=200 {{!}} {{{Prequel|}}}
}}
}}
|-valign="top"
|- valign="top"
{{#if:{{{Sequel|}}} |
{{#if:{{{Sequel|}}} |
!width=100{{!}}Successor:
! width=100 {{!}} Successor:
!width=200{{!}}{{{Sequel|}}}
! 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=
|Image=
|Quote=
|Quote=
|Protagonist=
|Protagonist=
Line 110: Line 99:
</pre></div>
</pre></div>


=Example=
==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.
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 106:
<div><pre style=>
<div><pre style=>
{{GameInfobox
{{GameInfobox
|Picture=Sonic-the-Hedgehog-2006-X360.jpg
|Image=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, hopefully about this game}}
|Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog
|Protagonist=Sonic the Hedgehog<br>Shadow the Hedgehog<br>Silver the Hedgehog

Revision as of 20:55, December 3, 2024

GameInfobox
{{GameInfobox
|Image=
|Quote=
|Protagonist=
|Genre=
|Rating=
|Platforms=
|Release Date=
|Delist Date=
|Game Engine=
|Developer=
|Publisher=
|Country=
|Franchise=
|Prequel=
|Sequel=
}}

Example

Notes: Use the operator <br> 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.

Using the following:

{{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]]''
}}

Results in the following (normally aligned on the right of the screen):

GameInfobox
File:Sonic-the-Hedgehog-2006-X360.jpg

"It's no use!"

Silver the Hedgehog, hopefully about this game
Protagonist(s): Sonic the Hedgehog
Shadow the Hedgehog
Silver the Hedgehog
Genre(s): Action-adventure
Platform
Rating(s): ESRB: E10+
PEGI: 12
Platform(s): PlayStation
Release: Xbox 360
NA: November 14, 2006
EU: November 24, 2006
JP: December 21, 2006

PlayStation 3
JP: December 21, 2006
NA: January 30, 2007
EU: March 23, 2007
Engine: RenderWare
Havok (physics)
Developer(s): mh:awesomegames:Sonic Team
Publisher(s): Sega
Country: Japan
Series: Sonic the Hedgehog
Predecessor: Shadow the Hedgehog
Successor: Sonic Unleashed