Difference between revisions of "Template:CharacterBox"

From BPM Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>{| class="infotable wikitable"
 
<includeonly>{| class="infotable wikitable"
 
|+ {{{name}}}
 
|+ {{{name}}}
| rowspan=5 | [[File:{{{image|{{{name}}}}}}.png|100x100px]]
+
| rowspan=5 | [[File:{{{image|{{{name}}}.png}}}|100x100px]]
 
! colspan=6 | Starting inventory
 
! colspan=6 | Starting inventory
 
|-
 
|-
Line 22: Line 22:
 
| colspan=3 | {{{how to unlock}}}
 
| colspan=3 | {{{how to unlock}}}
 
|-
 
|-
 +
{{#if:{{{info|}}}|
 
! class="infotable-header" colspan=5 | Extra info
 
! class="infotable-header" colspan=5 | Extra info
 
|-
 
|-
 
| colspan=5 | {{{extra info}}}
 
| colspan=5 | {{{extra info}}}
 +
||}}
 
|}</includeonly><noinclude>{{documentation}}</noinclude>
 
|}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 00:26, 11 March 2021

Template documentation (for the template above, sometimes hidden or invisible)

Purpose

Infobox for characters.

Usage

{{CharacterBox
| name = Valkyrie
| image = Goll.jpg
| hp = 420
| armor = 1337
| weapon = [[Pistol]]
| ultimate = {{AbilityLink|Mjolnir}}
| secondary = {{AbilityLink|Mjolnir}}
| extra = 1x {{ItemLink|Key}} and {{Coins|5}}
| how to unlock = Do something
| info =
* There is usually a list here.
* With multiple elements.
}}

renders as

Valkyrie
Goll.jpg Starting inventory
HP 420 Ultimate UltimateMegaShot.png Mjolnir
Armor 1337 Secondary UltimateMegaShot.png Mjolnir
Weapon Pistol Other {{{other}}}
How to unlock Do something
class="infotable-header" colspan=5

Visit Template:CharacterBox/doc to edit this text. (How does this work?)