From Brotato Wiki
(Add option "nofloat", to improve the docs) |
(Docs: Add "wantedtags" to main example) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 53: | Line 53: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Shows an infobox for a [[Character]]. Accepts custom data, but should ideally be used with [[Template:Character_Data]]. | Shows an infobox for a [[Characters|Character]]. Accepts custom data, but should ideally be used with [[Template:Character_Data]]. | ||
Note: The helper template [[Template:Infobox_Character_Helper]] (<code><nowiki>{{Infobox_Character_Helper}}</nowiki></code>) can be used on individual character pages, and automatically populates the data for you. | Note: The helper template [[Template:Infobox_Character_Helper]] (<code><nowiki>{{Infobox_Character_Helper}}</nowiki></code>) can be used on individual character pages, and automatically populates the data for you. | ||
| Line 68: | Line 68: | ||
|unlocks = {{Character Data|Bull|unlocks}} | |unlocks = {{Character Data|Bull|unlocks}} | ||
|unlocktype = {{Character Data|Bull|unlocktype}} | |unlocktype = {{Character Data|Bull|unlocktype}} | ||
|wantedtags = {{Character Data|Bull|wantedtags}} | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 79: | Line 80: | ||
|unlocks = {{Character Data|Bull|unlocks}} | |unlocks = {{Character Data|Bull|unlocks}} | ||
|unlocktype = {{Character Data|Bull|unlocktype}} | |unlocktype = {{Character Data|Bull|unlocktype}} | ||
|wantedtags = {{Character Data|Bull|wantedtags}} | |||
|nofloat = 1 | |nofloat = 1 | ||
}} | }} | ||
Latest revision as of 03:07, 9 November 2022
Usage
Shows an infobox for a Character. Accepts custom data, but should ideally be used with Template:Character_Data.
Note: The helper template Template:Infobox_Character_Helper ({{Infobox_Character_Helper}}) can be used on individual character pages, and automatically populates the data for you.
With Character_Data
This uses Character_Data, and is the recommended approach.
{{Infobox Character
|name = Bull
|stats = {{Character Data|Bull|stats}}
|unlockedby = {{Character Data|Bull|unlockedby}}
|unlocks = {{Character Data|Bull|unlocks}}
|unlocktype = {{Character Data|Bull|unlocktype}}
|wantedtags = {{Character Data|Bull|wantedtags}}
}}
Result:
Stats
Unlocked By
Win a run in Danger 1
Unlocks
Custom Text
{{Infobox Character
|name = Tree
|stats = {{Color|green|+10}} Good vibes
|unlockedby = Go on a walk somewhere nice
|wantedtags = [[Exploration]]
}}
Result:

