Navigation menu
Template:Game-infobox: Difference between revisions
From Metroid Wiki
(Fixed.) |
(Reformatted.) |
||
Line 1: | Line 1: | ||
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=265px style="font-family: arial, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 11px; border:1px solid #3b587e;" | <!-- This vardefine thing is what allows the box to alternate between colors correctly. --> | ||
| align="center" colspan="2" bgcolor="#3b587e" style="font-family:arial; font-size:13px" {{!}} ''''' | {{#vardefine:num|0}} | ||
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=265px style="font-family: arial, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 11px; border:1px solid #3b587e; background-color:#1e1528" | |||
| align="center" colspan="2" bgcolor="#3b587e" style="font-family:arial; font-size:13px" {{!}} '''''{{PAGENAME}}''''' | |||
|- | |- | ||
| | {{#if:{{{image|}}}| | ||
|- bgcolor=#3b587e | {{!-}} | ||
! colspan="2" {{!}} {{{image|}}}}} | |||
| {{{ | |- bgcolor="#3b587e" valign="top" | ||
|- | {{#if:{{{developer|}}}| | ||
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | |||
| {{{ | ! Developer(s) | ||
|- bgcolor=#3b587e | {{!}} {{{developer|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | ||
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | |||
| {{{ | {{#if:{{{publisher|}}}| | ||
|- | {{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | ||
| | ! Publisher | ||
{{!}} {{{publisher|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | |||
| | |- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | ||
{{#if:{{{platforms|}}}| | |||
| {{{ | {{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | ||
|- | ! Platform(s) | ||
{{!}} {{{platforms|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | |||
| {{{ | |- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | ||
|- bgcolor=#3b587e | {{#if:{{{genre|}}}| | ||
| | {{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | ||
| {{{modes}}} | ! Genre | ||
|- | {{!}} {{{genre|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | ||
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | |||
| {{{ | {{#if:{{{ratings|}}}| | ||
|- bgcolor=#3b587e | {{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | ||
! Ratings | |||
| {{{ | {{!}} {{{ratings|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | ||
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | |||
{{#if:{{{modes|}}}| | |||
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | |||
! Modes | |||
{{!}} {{{modes|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | |||
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | |||
{{#if:{{{media|}}}| | |||
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | |||
! Media | |||
{{!}} {{{media|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | |||
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top" | |||
{{#if:{{{input|}}}| | |||
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} | |||
! Input | |||
{{!}} {{{input|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}} | |||
|}<noinclude>{{clear}} | |}<noinclude>{{clear}} | ||
==Usage== | ==Usage== |
Revision as of 18:40, 13 March 2010
Game-infobox |
Usage
To use this template copy the following code and fill in the information:
{{Game-infobox |image= |developer= |publisher= |platforms= |released= |genre= |ratings= |modes= |media= |input= }}