From Brotato Wiki

(Docs: Cleanup)
m (use min-width:100px)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<!-- Item or weapon -->
<!-- Item or weapon -->
{{#switch: {{lc:{{Character Data|{{{1|{{PAGENAME}}}}}|unlocktype}}}}
{{#switch: {{lc:{{Character Data|{{{1|{{PAGENAME}}}}}|unlocktype}}}}
  | item    = {{Iconbox|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity={{Item Data|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity}}}}
  | item    = {{Iconbox|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity={{Item Data|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity}}|maxwidth=110px}}
  | weapon  = {{Iconbox|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity={{Weapon Data|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity}}}}
  | weapon  = {{Iconbox|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity={{Weapon Data|{{Character Data|{{{1|{{PAGENAME}}}}}|unlocks}}|rarity}}|maxwidth=110px}}
  | #default = Error: "unlocktype" was not specified for "{{{1|{{PAGENAME}}}}}" in [[Template:Character_Data]]<!--
  | #default = Error: "unlocktype" was not specified for "{{{1|{{PAGENAME}}}}}" in [[Template:Character_Data]]<!--
-->}}</onlyinclude></includeonly><noinclude>
-->}}</onlyinclude></includeonly><noinclude>


Inserts content on a [[Character|Character]] page, showing their unlock.
Inserts content on a [[Characters|Character]] page, showing their unlock.


== Usage ==
== Usage ==
Line 25: Line 25:


{{CharacterUnlocks|Well Rounded}}
{{CharacterUnlocks|Well Rounded}}
{{CharacterUnlocks|Crazy}}

Latest revision as of 01:07, 10 November 2022


Inserts content on a Character page, showing their unlock.

Usage

Use on character pages:

{{CharacterUnlocks}}

Use anywhere:

{{CharacterUnlocks|Well Rounded}}

Example

Example output is directly below (including the heading):

Unlocks

Unlocks Potato if you win a game with Well Rounded:

Unlocks

Unlocks Hunting Trophy if you win a game with Crazy: