Navigation menu

Template:Boss-infobox: Difference between revisions

From Metroid Wiki
(Reformatted.)
No edit summary
Line 1: Line 1:
{{#vardefine:num|0}}
{|  class="infobox" cellpadding=2 cellspacing=2 align=right width=265px  s
{|  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" {{!}}  '''''{{PAGENAME}}'''''
|  align="center" colspan="2" bgcolor="#3b587e" style="font-family:arial;  font-size:13px"  {{!}}  '''''{{PAGENAME}}'''''
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!-}}
{{!-}}
! colspan="2"  {{!}}  {{{image|}}}}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
! colspan="2"  {{!}}  {{{image|}}}}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
|-  bgcolor="#3b587e" valign="top"
{{#if:{{{games|}}}|
{{#if:{{{games|}}}|
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Games
! Games
{{!}}  {{{games|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{games|}}}
|- {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{location|}}}|
{{#if:{{{location|}}}|
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Location
! Location
{{!}}  {{{location|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{location|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{attacks|}}}|
{{#if:{{{attacks|}}}|
{{!-}} {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Attacks
! Attacks
{{!}}  {{{attacks|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{attacks|}}}
|- {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{weaknesses|}}}|
{{#if:{{{weaknesses|}}}|
{{!-}} {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Weakness(es)
! Weakness(es)
{{!}}  {{{weaknesses|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{weaknesses|}}}
|- {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{rewards|}}}|
{{#if:{{{rewards|}}}|
{{!-}} {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Rewards
! Rewards
{{!}}  {{{rewards|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{rewards|}}}
}}
|}<noinclude>{{clear}}
|}<noinclude>{{clear}}
==Usage==
==Usage==

Revision as of 17:54, 16 March 2010

Boss-infobox

Usage

To use this template copy the following and fill in the appropriate information.

{{Boss-infobox
|image=
|caption=
|games=
|location=
|attacks=
|weaknesses=
|rewards=
}}