From Brotato Wiki

m (fix #default: "Item name not found" > "Character name not found")
(Reformat docs into a table)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|}}}}}
<includeonly>{{#switch:{{lc:{{{1|}}}}}
|well rounded= {{#switch:{{lc:{{{2|}}}}}
|Mutant= {{#switch:{{lc:{{{2|}}}}}
|stats=<span style="color:rgb(0,255,0);">+5</span> Max Hp<br><span style="color:rgb(0,255,0);">+5%</span> Speed<br><span style="color:rgb(0,255,0);">+8</span> Harvesting
|stats=<span style="color:rgb(0,255,0);">+5</span> Max Hp<br><span style="color:rgb(0,255,0);">+5%</span> Speed<br><span style="color:rgb(0,255,0);">+8</span> Harvesting
|unlockedby=Unlocked by default
|unlockedby=Unlocked by default
Line 257: Line 257:
}}
}}
|#default=Character name not found}}</includeonly><noinclude>
|#default=Character name not found}}</includeonly><noinclude>
Usage:
== Usage ==
<pre>
<pre>
{{Character Data
{{Character Data
|any character name
|any character name
|select one of these to output corresponding information (stats/unlockedby/unlocks)
|select one of these to output corresponding information (stats/unlockedby/unlocks/unlocktype/wantedtags)
}}
}}
</pre>
</pre>


Example:
== Examples ==
<pre>
{{Character Data|Well Rounded|stats}}
</pre>
{{Character Data|Well Rounded|stats}}


{| class="wikitable"
|-
! Name
! Code
! Preview
|-
| Stats || <code><nowiki>{{Character Data|Mutant|stats}}</nowiki></code> || {{Character Data|Mutant|stats}}
|-
| Unlocked By || <code><nowiki>{{Character Data|Mutant|unlockedby}}</nowiki></code> || {{Character Data|Mutant|unlockedby}}
|-
| Unlocks || <code><nowiki>{{Character Data|Mutant|unlocks}}</nowiki></code> || {{Character Data|Mutant|unlocks}}
|-
| Unlock Type || <code><nowiki>{{Character Data|Mutant|unlocktype}}</nowiki></code> || {{Character Data|Mutant|unlocktype}}
|-
| Wanted Tags (Item Tags) || <code><nowiki>{{Character Data|Mutant|wantedtags}}</nowiki></code> || {{Character Data|Mutant|wantedtags}}
|-
| Invalid: No options passed || <code><nowiki>{{Character_Data|Mutant}}</nowiki></code> || {{Character_Data|Mutant}}
|-
| Error: Not a character || <code><nowiki>{{Character_Data|Knife}}</nowiki></code> || {{Character_Data|Knife}}
|}


Example:
<pre>
{{Character Data
|Well Rounded
|stats
}}
</pre>
{{Character Data
|Well Rounded
|stats
}}
</noinclude>
</noinclude>

Revision as of 21:28, 9 November 2022

Usage

{{Character Data
|any character name
|select one of these to output corresponding information (stats/unlockedby/unlocks/unlocktype/wantedtags)
}}

Examples

Name Code Preview
Stats {{Character Data|Mutant|stats}} +200% XP Gain
+50% Items Price
Unlocked By {{Character Data|Mutant|unlockedby}} Kill 2000 enemies
Unlocks {{Character Data|Mutant|unlocks}} Octopus
Unlock Type {{Character Data|Mutant|unlocktype}} Item
Wanted Tags (Item Tags) {{Character Data|Mutant|wantedtags}} XP Gain
Invalid: No options passed {{Character_Data|Mutant}} -
Error: Not a character {{Character_Data|Knife}} Character name not found