From Brotato Wiki

(Add `text` option, which optionally shows a text link to the page. I've used <wbr> ("word break opportunity") to add breaking whitespace between the icon and the text (otherwise there's either no gap))
(Add Curse)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
-->{{#switch:{{lc:{{{name|{{{1|}}}}}}}}
-->{{#switch:{{lc:{{{name|{{{1|}}}}}}}}
  | armor    = <!--
  | armor    = <!--
        -->[[File:Armor.png|link=Armor|x20px]]{{#if:{{{text|}}}|<wbr> [[Armor]]}}
        -->[[File:Armor.png|link={{#ifeq:{{{nolink|}}}|1||Armor}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Armor]]}}
  | elemental damage
  | elemental damage
  | elementaldamage = <!--
  | elementaldamage = <!--
        -->[[File:Elemental_Damage.png|link=Elemental_Damage|x20px]]{{#if:{{{text|}}}|<wbr> [[Elemental Damage]]}}
        -->[[File:Elemental_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Elemental_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Elemental Damage]]}}
  | engineering= <!--
  | engineering= <!--
        -->[[File:Engineering_Stat.png|link=Engineering|x20px]]{{#if:{{{text|}}}|<wbr> [[Engineering]]}}
        -->[[File:Engineering_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Engineering}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Engineering]]}}
  | luck = <!--
  | level = <!--
        -->[[File:Luck.png|link=Luck|x20px]]{{#if:{{{text|}}}|<wbr> [[Luck]]}}
        -->[[File:Level.png|link={{#ifeq:{{{nolink|}}}|1||}}|x20px]]{{#if:{{{text|}}}|<wbr> Level}}
| luck = <!--
        -->[[File:Luck.png|link={{#ifeq:{{{nolink|}}}|1||Luck}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Luck]]}}
  | max hp
  | max hp
  | maxhp = <!--
  | maxhp = <!--
        -->[[File:Max_HP.png|link=Max_HP|x20px]]{{#if:{{{text|}}}|<wbr> [[Max HP]]}}
        -->[[File:Max_HP.png|link={{#ifeq:{{{nolink|}}}|1||Max_HP}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Max HP]]}}
  | melee damage
  | melee damage
  | meleedamage = <!--
  | meleedamage = <!--
        -->[[File:Melee_Damage.png|link=Melee_Damage|x20px]]{{#if:{{{text|}}}|<wbr> [[Melee Damage]]}}
        -->[[File:Melee_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Melee_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Melee Damage]]}}
  | range = <!--
  | range = <!--
        -->[[File:Range_Stat.png|link=Range|x20px]]{{#if:{{{text|}}}|<wbr> [[Range]]}}
        -->[[File:Range_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Range}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Range]]}}
  | ranged damage
  | ranged damage
  | rangeddamage= <!--
  | rangeddamage= <!--
        -->[[File:Ranged_Damage.png|link=Ranged_Damage|x20px]]{{#if:{{{text|}}}|<wbr> [[Ranged Damage]]}}
        -->[[File:Ranged_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Ranged_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Ranged Damage]]}}
| attack speed
| attack speed
| attackspeed = <!--
| attackspeed = <!--
        -->[[File:Attack_Speed.png|link=Attack_Speed|x20px]]{{#if:{{{text|}}}|<wbr> [[Attack Speed]]}}
        -->[[File:Attack_Speed.png|link={{#ifeq:{{{nolink|}}}|1||Attack_Speed}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Attack Speed]]}}
  | crit chance
  | crit chance
  | critchance = <!--
  | critchance = <!--
        -->[[File:Crit_Chance.png|link=Crit_Chance|x20px]]{{#if:{{{text|}}}|<wbr> [[Crit Chance]]}}
        -->[[File:Crit_Chance.png|link={{#ifeq:{{{nolink|}}}|1||Crit_Chance}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Crit Chance]]}}
  | damage = <!--
  | damage = <!--
        -->[[File:Damage.png|link=Damage|x20px]]{{#if:{{{text|}}}|<wbr> [[Damage]]}}
        -->[[File:Damage.png|link={{#ifeq:{{{nolink|}}}|1||Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Damage]]}}
  | dodge = <!--
  | dodge = <!--
        -->[[File:Dodge_Stat.png|link=Dodge|x20px]]{{#if:{{{text|}}}|<wbr> [[Dodge]]}}
        -->[[File:Dodge_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Dodge}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Dodge]]}}
  | harvesting = <!--
  | harvesting = <!--
        -->[[File:Harvesting.png|link=Harvesting|x20px]]{{#if:{{{text|}}}|<wbr> [[Harvesting]]}}
        -->[[File:Harvesting.png|link={{#ifeq:{{{nolink|}}}|1||Harvesting}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Harvesting]]}}
  | hp regeneration
  | hp regeneration
  | hpregen = <!--
  | hpregen = <!--
        -->[[File:HP_Regeneration.png|link=HP_Regeneration|x20px]]{{#if:{{{text|}}}|<wbr> [[HP Regeneration]]}}
        -->[[File:HP_Regeneration.png|link={{#ifeq:{{{nolink|}}}|1||HP_Regeneration}}|x20px]]{{#if:{{{text|}}}|<wbr> [[HP Regeneration]]}}
  | life steal
  | life steal
  | lifesteal = <!--
  | lifesteal = <!--
        -->[[File:Life_Steal.png|link=Life_Steal|x20px]]{{#if:{{{text|}}}|<wbr> [[Life Steal]]}}
        -->[[File:Life_Steal.png|link={{#ifeq:{{{nolink|}}}|1||Life_Steal}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Life Steal]]}}
  | speed = <!--
  | speed = <!--
        -->[[File:Speed_Stat.png|link=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}}
| curse = <!--
        -->[[File:Curse.png|link=|x20px]]{{#if:{{{text|}}}|<wbr> Curse}}
  | #default = <!--
  | #default = <!--
        -->{{{1}}} does not exist as an icon
        -->{{{1}}} does not exist as an icon
Line 140: Line 146:
| -
| -
|-
|-
|[[Harvesting]]
|Materials
|<code><nowiki>{{StatIcon|name=Harvesting}}</nowiki></code>
|<code><nowiki>{{StatIcon|name=Materials}}</nowiki></code>
|{{StatIcon|Harvesting}}
|{{StatIcon|Materials}}
| -
|-
|Level
|<code><nowiki>{{StatIcon|name=Level}}</nowiki></code>
|{{StatIcon|Level}}
| -
|-
|[[Curse]]
|<code><nowiki>{{StatIcon|name=Curse}}</nowiki></code>
|{{StatIcon|Curse}}
| -
| -
|}
|}
== Options ==


Show a text link:
Show a text link:
<code><nowiki>{{StatIcon|Max HP|text=1}}</nowiki></code> = {{StatIcon|Max HP|text=1}}
<code><nowiki>{{StatIcon|Max HP|text=1}}</nowiki></code> = {{StatIcon|Max HP|text=1}}
Don't make the image icon link:
<code><nowiki>{{StatIcon|Max HP|nolink=1}}</nowiki></code> = {{StatIcon|Max HP|nolink=1}}


Error:
Error:
<code><nowiki>{{StatIcon|potato}}</nowiki></code> = {{StatIcon|potato}}
<code><nowiki>{{StatIcon|potato}}</nowiki></code> = {{StatIcon|potato}}





Latest revision as of 22:11, 27 October 2024


Usage:

{{Staticon|any stat icon name}}

Full List

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

Options

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

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

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


No description.

Template parameters

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