From Brotato Wiki

Darkly77 (talk | contribs)
add option: `nolink`
Darkly77 (talk | contribs)
add icon for Materials
Line 41: Line 41:
  | speed = <!--
  | speed = <!--
        -->[[File:Speed_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Speed}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Speed]]}}
        -->[[File:Speed_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Speed}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Speed]]}}
| materials = <!--
        -->[[File:Materials.png|link=|x20px]]{{#if:{{{text|}}}|<wbr> Materials}}
  | #default = <!--
  | #default = <!--
        -->{{{1}}} does not exist as an icon
        -->{{{1}}} does not exist as an icon
Line 140: Line 142:
| -
| -
|-
|-
|[[Harvesting]]
|Materials
|<code><nowiki>{{StatIcon|name=Harvesting}}</nowiki></code>
|<code><nowiki>{{StatIcon|name=Materials}}</nowiki></code>
|{{StatIcon|Harvesting}}
|{{StatIcon|Materials}}
| -
| -
|}
|}
== Options ==


Show a text link:
Show a text link:

Revision as of 12:42, 14 December 2022


Usage:

{{Staticon|any stat icon name}}

Full List

Name Code Preview Alias
Max HP {{StatIcon|Max HP}} MaxHP
HP Regeneration {{StatIcon|HP Regeneration}} HPRegen
Life Steal {{StatIcon|Life Steal}} Lifesteal
Damage {{StatIcon|Damage}} -
Melee Damage {{StatIcon|Melee Damage}} MeleeDamage
Ranged Damage {{StatIcon|Ranged Damage}} RangedDamage
Elemental Damage {{StatIcon|Elemental Damage}} ElementalDamage
Attack Speed {{StatIcon|Attack Speed}} AttackSpeed
Crit Chance {{StatIcon|Crit Chance}} CritChance
Engineering {{StatIcon|Engineering}} -
Range {{StatIcon|Range}} -
Armor {{StatIcon|Armor}} -
Dodge {{StatIcon|Dodge}} -
Speed {{StatIcon|Speed}} -
Luck {{StatIcon|Luck}} -
Harvesting {{StatIcon|Harvesting}} -
Materials {{StatIcon|name=Materials}} -

Options

Show a text link: {{StatIcon|Max HP|text=1}} = Max HP

Don't make the image icon link: {{StatIcon|Max HP|nolink=1}} =

Error: {{StatIcon|potato}} = potato does not exist as an icon


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Stat Namename 1

As shown on the Stats page

Example
Max HP
Stringrequired
Show Text Link?text

Enable to show a text link to the Stat's page

Booleansuggested