From Brotato Wiki
(INITIAL \o/) |
(Add "Used by..." text info) |
||
Line 12: | Line 12: | ||
'''IMPORTANT:''' Relies on the <code>#default</code> for each entry always being "-" (in [[Template:Item_Data|Item_Data]], [[Template:Weapon_Data|Weapon_Data]], and [[Template:Character_Data|Character_Data]]) | '''IMPORTANT:''' Relies on the <code>#default</code> for each entry always being "-" (in [[Template:Item_Data|Item_Data]], [[Template:Weapon_Data|Weapon_Data]], and [[Template:Character_Data|Character_Data]]) | ||
Used by [[Template:MiniIconbox]], which uses this template via [[Template:GetRarity]]. | |||
== Examples == | == Examples == |
Latest revision as of 23:28, 7 November 2024
Gets the type (item/weapon/character) from the provided name.
IMPORTANT: Relies on the #default
for each entry always being "-" (in Item_Data, Weapon_Data, and Character_Data)
Used by Template:MiniIconbox, which uses this template via Template:GetRarity.
Examples
{{GetType|Knife}}
= weapon
{{GetType|Acid}}
= item
{{GetType|Mutant}}
= character
{{GetType|UNKNOWN}}
= unknown