Template:Infobox-Game: Difference between revisions

From MiiWiki
Jump to navigationJump to search
m (1 revision imported)
m (added a way to disable the strategywiki box since not everything has/will get a page there)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{InfoBox Begin
{{InfoBox
| title = ''{{{title|{{PAGENAME}}}}}''
|template=Infobox-Game
| image = {{{image|}}}
|title = {{{title|{{PAGENAME}}}}}
| caption = {{{caption|}}}
|image = {{{image|}}}
| border = 2px solid #066F71;
|caption = {{{caption|}}}
| style1 = background:#25A18E;
|border = #9BAEAE
| style2 = background:#00C0D9;
|thbackground = #BBB
| style3 = background:#99D6D3;
|thtext = #000
| Info1name = Developer(s)
|headergradient = #fff,#C4C4C4
| Info1details = {{{developer|}}}
|Info1name = Developer(s)
| Info2name = Publisher(s)
|Info1details = {{{developer|}}}
| Info2details = {{{publisher|}}}
|Info2name = Publisher(s)
| Info3name = Designer(s)
|Info2details = {{{publisher|}}}
| Info3details = {{{designer|}}}
|Info3name = Designer(s)
| Info4name = Release date(s)
|Info3details = {{{designer|}}}
| Info4details = {{{released|}}}
|Info4name = Release date(s)
| Info5name = Platform(s)
|Info4details = {{{released|}}}
| Info5details = {{{platforms|}}}
|Info5name = Platform(s)
| Info6name = Rating(s)
|Info5details = {{{platforms|}}}
| Info6details = {{{rating|}}}
|Info6name = Rating(s)
| Info7name = Game size
|Info6details = {{{rating|}}}
| Info7details = {{{size|}}}
|Info7name= Input(s)
| Info8name = External links
|Info7details={{{input|}}}
| Info8details = {{{link|}}}
|Info8name = Game size
|Info8details = {{{size|}}}
|Info9name = Game ID
|Info9details = {{{id|}}}
|Infomore =
{{#if:{{{link|}}}|<tr>
<th style="background:#BBB; color: #000; width: 50%">External links</th>
<td style="background:rgba(0,0,0,.1); padding-left:5px">{{{link|}}}</td>
</tr>|}}
<tr>
<th style="background: #BBB" colspan="2">Game chronology</th>
</tr>
<tr>
<td style="width: 50%; text-align: center; background: rgba(0,0,0,.1)">{{#if: {{{prev|}}} | {{{prev_alt_text|Previous game}}}<br>← {{{prev}}} | Previous game<br>{{{prev_alt_text|First game in series}}} }}</td>
<td style="text-align: center; background: rgba(0,0,0,.1)">{{#if: {{{next|}}} | {{{next_alt_text|Next game}}}<br>{{{next}}} → | Next game<br>{{{next_alt_text|Latest game in series}}} }}</td>
</tr>
{{#ifeq:{{{strategywiki|}}}{{{niwa|}}}|false||<tr>
<th colspan="2" style="background: #BBB">[[MiiWiki:Affiliates|On affiliated sites]]</th>
</tr>}}
{{#ifeq:{{{strategywiki|}}}|false||<tr>
<th style="background: #BBB">[[File:Strategy Wiki Logo.png|50px]]</th>
<td style="background: rgba(0,0,0,.1)">[[strategywiki:{{{strategywiki|{{FULLPAGENAME}}}}}|Walkthrough]]</td>
</tr>}}
{{#if:{{{niwa|}}}|<tr>
<th style="background: #BBB">[[File:NIWA.png|50px]]</th>
<td style="background: rgba(0,0,0,.1)">{{{niwa}}}</td>
</tr>}}
}}<includeonly>{{DISPLAYTITLE:''{{PAGENAME}}''}}[[Category:Games|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]
Used to make infoboxes for games. Copy-paste the following into a game page and fill out as needed. All fields are optional and will only appear if filled out. If a field is unused, please remove it.
<pre>
{{Infobox-Game
|title=title of infobox (defaults to the page title)
|image=boxart of the game (use tabs if there are multiple regions)
|caption=caption of image
|developer=the developer of the game
|publisher=publisher of the game
|designer=designer of the game
|released=the game's release date (use {{released}})
|platforms=platforms the game released on
|rating=age rating of the game (use {{ratings}})
|input=what input devices the game takes
|size=filesize of the game
|id=game id (eg. RSPE01 for Wii Sports)
|link=links to other websites (usually affiliates and official websites) about the game
|prev=previous game in the series. Defaults to none.
|prev_alt_text=alternate text for the previous field, defaults to first game in the series
|next=next game in the series. Defaults to none.
|next_alt_text=alternate text for the previous field, defaults to latest game in the series
|strategywiki=The game's full pagename on strategywiki.org, or false to disable
|niwa=Links to any NIWA wikis that have a page on this subject. If multiple NIWA members have pages, separate them with <br>
}}
}}
{{InfoBox PrevNext
</pre>
| border = 2px solid #066F71;
===Raw code===
| style1 = background:#25A18E;
<pre>
| style2 = background:#00C0D9;
{{Infobox-Game
| style3 = background:#99D6D3;
|title=
| title = Game chronology
|image=
| prev = {{{predecessor|}}}
|caption=
| prev_alt_text = First game released
|developer=
| next = {{{successor|}}}
|publisher=
| next_alt_text = Latest game released
|designer=
|released=
|platforms=
|rating=
|input=
|size=
|link=
|prev=
|prev_alt_text=
|next=
|next_alt_text=
|strategywiki=
|niwa=
}}
}}
{{!-}}
</pre>
{{!}} {{tablebegin}} class="mw-collapsible {{{class|}}}" style="margin:0 auto;width:100%;border:2px solid #066F71;background:#00C0D9;{{{style|}}}"
! style="width: 100%;" colspan="2" {{!}} {{MiiW|Partnerships|On partnered sites}}
{{#if:{{{switcher|}}}|
{{!-}}
! style="background:#99D6D3;padding-right: 0.5em;text-align:center;width:30%;" {{!}} Switcher.gg
{{!}} style="background:#99D6D3;" {{!}} [https://switcher.gg/games/nintendo-switch/{{{switcher}}} Find {{PAGENAME}} friends online]
}}
{{!-}}
! style="background:#99D6D3;padding-right: 0.5em;text-align:center;" {{!}} [[File:Strategy Wiki Logo.png|50px]]
{{!}} style="background:#99D6D3;" {{!}} [[strategywiki:{{{strategywiki|{{FULLPAGENAME}}}}}|Walkthrough]]
{{!-}}
{{tableend}}
{{!-}}
{{InfoBox End
| name = Infobox-Game
| border = 2px solid #066F71;
| style1 = background:#25A18E;
| style2 = background:#00C0D9;
| style3 = background:#99D6D3;
}}<includeonly>[[Category:Games|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 16:43, 26 April 2024

Infobox-Game

Needed.png
Have an image of Infobox-Game? Why not upload it?

Details
Game chronology
Previous game
First game in series
Next game
Latest game in series
On affiliated sites
Strategy Wiki Logo.png Walkthrough
 This box: view  talk  edit 

Used to make infoboxes for games. Copy-paste the following into a game page and fill out as needed. All fields are optional and will only appear if filled out. If a field is unused, please remove it.

{{Infobox-Game
|title=title of infobox (defaults to the page title)
|image=boxart of the game (use tabs if there are multiple regions)
|caption=caption of image
|developer=the developer of the game
|publisher=publisher of the game
|designer=designer of the game
|released=the game's release date (use {{released}})
|platforms=platforms the game released on
|rating=age rating of the game (use {{ratings}})
|input=what input devices the game takes
|size=filesize of the game
|id=game id (eg. RSPE01 for Wii Sports)
|link=links to other websites (usually affiliates and official websites) about the game
|prev=previous game in the series. Defaults to none.
|prev_alt_text=alternate text for the previous field, defaults to first game in the series
|next=next game in the series. Defaults to none.
|next_alt_text=alternate text for the previous field, defaults to latest game in the series
|strategywiki=The game's full pagename on strategywiki.org, or false to disable
|niwa=Links to any NIWA wikis that have a page on this subject. If multiple NIWA members have pages, separate them with <br>
}}

Raw code

{{Infobox-Game
|title=
|image=
|caption=
|developer=
|publisher=
|designer=
|released=
|platforms=
|rating=
|input=
|size=
|link=
|prev=
|prev_alt_text=
|next=
|next_alt_text=
|strategywiki=
|niwa=
}}