From Brotato Wiki
m (Snowpaw moved page Template:Staticon to Template:StatIcon: Name change) |
(add Level) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><!-- | <includeonly><onlyinclude><!-- | ||
-->{{#switch:{{lc:{{{1|}}}}} | -->{{#switch:{{lc:{{{name|{{{1|}}}}}}}} | ||
| armor = <!-- | | armor = <!-- | ||
-->[[File:Armor.png|link=Armor|x20px]] | -->[[File:Armor.png|link={{#ifeq:{{{nolink|}}}|1||Armor}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Armor]]}} | ||
| elemental damage | |||
| elementaldamage = <!-- | | elementaldamage = <!-- | ||
-->[[File:Elemental_Damage.png|link=Elemental_Damage|x20px]] | -->[[File:Elemental_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Elemental_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Elemental Damage]]}} | ||
| engineering= <!-- | | engineering= <!-- | ||
-->[[File:Engineering_Stat.png|link= | -->[[File:Engineering_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Engineering}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Engineering]]}} | ||
| luck = <!-- | | level = <!-- | ||
-->[[File:Luck.png|link=Luck|x20px]] | -->[[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 | |||
| maxhp = <!-- | | maxhp = <!-- | ||
-->[[File:Max_HP.png|link=Max_HP|x20px]] | -->[[File:Max_HP.png|link={{#ifeq:{{{nolink|}}}|1||Max_HP}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Max HP]]}} | ||
| melee damage | |||
| meleedamage = <!-- | | meleedamage = <!-- | ||
-->[[File:Melee_Damage.png|link=Melee_Damage|x20px]] | -->[[File:Melee_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Melee_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Melee Damage]]}} | ||
| range = <!-- | | range = <!-- | ||
-->[[File:Range_Stat.png|link= | -->[[File:Range_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Range}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Range]]}} | ||
| ranged damage | |||
| rangeddamage= <!-- | | rangeddamage= <!-- | ||
-->[[File:Ranged_Damage.png|link=Ranged_Damage|x20px]] | -->[[File:Ranged_Damage.png|link={{#ifeq:{{{nolink|}}}|1||Ranged_Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Ranged Damage]]}} | ||
| attack speed | |||
-->[[File:Attack_Speed.png|link=Attack_Speed|x20px]] | | attackspeed = <!-- | ||
-->[[File:Attack_Speed.png|link={{#ifeq:{{{nolink|}}}|1||Attack_Speed}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Attack Speed]]}} | |||
| crit chance | |||
| critchance = <!-- | | critchance = <!-- | ||
-->[[File:Crit_Chance.png|link=Crit_Chance|x20px]] | -->[[File:Crit_Chance.png|link={{#ifeq:{{{nolink|}}}|1||Crit_Chance}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Crit Chance]]}} | ||
| damage = <!-- | | damage = <!-- | ||
-->[[File:Damage.png|link=Damage|x20px]] | -->[[File:Damage.png|link={{#ifeq:{{{nolink|}}}|1||Damage}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Damage]]}} | ||
| dodge = <!-- | | dodge = <!-- | ||
-->[[File:Dodge_Stat.png|link= | -->[[File:Dodge_Stat.png|link={{#ifeq:{{{nolink|}}}|1||Dodge}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Dodge]]}} | ||
| harvesting = <!-- | | harvesting = <!-- | ||
-->[[File:Harvesting.png|link=Harvesting|x20px]] | -->[[File:Harvesting.png|link={{#ifeq:{{{nolink|}}}|1||Harvesting}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Harvesting]]}} | ||
| hp regeneration | |||
| hpregen = <!-- | | hpregen = <!-- | ||
-->[[File:HP_Regeneration.png|link=HP_Regeneration|x20px]] | -->[[File:HP_Regeneration.png|link={{#ifeq:{{{nolink|}}}|1||HP_Regeneration}}|x20px]]{{#if:{{{text|}}}|<wbr> [[HP Regeneration]]}} | ||
| life steal | |||
| lifesteal = <!-- | | lifesteal = <!-- | ||
-->[[File:Life_Steal.png|link=Life_Steal|x20px]] | -->[[File:Life_Steal.png|link={{#ifeq:{{{nolink|}}}|1||Life_Steal}}|x20px]]{{#if:{{{text|}}}|<wbr> [[Life Steal]]}} | ||
| speed = <!-- | | speed = <!-- | ||
-->[[File:Speed_Stat.png|link= | -->[[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 = <!-- | |||
-->{{{1}}} does not exist as an icon | |||
}}<!-- | }}<!-- | ||
--></onlyinclude></includeonly><noinclude> | --></onlyinclude></includeonly><noinclude> | ||
Line 48: | Line 62: | ||
!style="background-color: rgb(220,220,220,0.2); color: #eee;"| Code | !style="background-color: rgb(220,220,220,0.2); color: #eee;"| Code | ||
!style="background-color: rgb(220,220,220,0.2); color: #eee;"| Preview | !style="background-color: rgb(220,220,220,0.2); color: #eee;"| Preview | ||
!style="background-color: rgb(220,220,220,0.2); color: #eee;"| Alias | |||
|- | |- | ||
|[[Max HP]] | |[[Max HP]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Max HP}}</nowiki></code> | ||
|{{ | |{{StatIcon|Max HP}} | ||
|<code><nowiki>MaxHP</nowiki></code> | |||
|- | |- | ||
|[[ | |[[HP Regeneration]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|HP Regeneration}}</nowiki></code> | ||
|{{ | |{{StatIcon|HP Regeneration}} | ||
|<code><nowiki>HPRegen</nowiki></code> | |||
|- | |- | ||
|[[ | |[[Life Steal]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Life Steal}}</nowiki></code> | ||
|{{ | |{{StatIcon|Life Steal}} | ||
|<code><nowiki>Lifesteal</nowiki></code> | |||
|- | |- | ||
|[[Damage]] | |[[Damage]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Damage}}</nowiki></code> | ||
|{{ | |{{StatIcon|Damage}} | ||
| - | |||
|- | |- | ||
|[[Melee Damage]] | |[[Melee Damage]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Melee Damage}}</nowiki></code> | ||
|{{ | |{{StatIcon|Melee Damage}} | ||
|<code><nowiki>MeleeDamage</nowiki></code> | |||
|- | |- | ||
|[[Ranged Damage]] | |[[Ranged Damage]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Ranged Damage}}</nowiki></code> | ||
|{{ | |{{StatIcon|Ranged Damage}} | ||
|<code><nowiki>RangedDamage</nowiki></code> | |||
|- | |- | ||
|[[Elemental Damage]] | |[[Elemental Damage]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Elemental Damage}}</nowiki></code> | ||
|{{ | |{{StatIcon|Elemental Damage}} | ||
|<code><nowiki>ElementalDamage</nowiki></code> | |||
|- | |||
|[[Attack Speed]] | |||
|<code><nowiki>{{StatIcon|Attack Speed}}</nowiki></code> | |||
|{{StatIcon|Attack Speed}} | |||
|<code><nowiki>AttackSpeed</nowiki></code> | |||
|- | |- | ||
|[[Crit Chance]] | |[[Crit Chance]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Crit Chance}}</nowiki></code> | ||
|{{ | |{{StatIcon|Crit Chance}} | ||
|<code><nowiki>CritChance</nowiki></code> | |||
|- | |- | ||
|[[Engineering]] | |[[Engineering]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Engineering}}</nowiki></code> | ||
|{{ | |{{StatIcon|Engineering}} | ||
| - | |||
|- | |- | ||
|[[Range]] | |[[Range]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Range}}</nowiki></code> | ||
|{{ | |{{StatIcon|Range}} | ||
| - | |||
|- | |- | ||
|[[Armor]] | |[[Armor]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Armor}}</nowiki></code> | ||
|{{ | |{{StatIcon|Armor}} | ||
| - | |||
|- | |- | ||
|[[Dodge]] | |[[Dodge]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Dodge}}</nowiki></code> | ||
|{{ | |{{StatIcon|Dodge}} | ||
| - | |||
|- | |- | ||
|[[Speed]] | |[[Speed]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Speed}}</nowiki></code> | ||
|{{ | |{{StatIcon|Speed}} | ||
| - | |||
|- | |- | ||
|[[Luck]] | |[[Luck]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Luck}}</nowiki></code> | ||
|{{ | |{{StatIcon|Luck}} | ||
| - | |||
|- | |- | ||
|[[Harvesting]] | |[[Harvesting]] | ||
|<code><nowiki>{{ | |<code><nowiki>{{StatIcon|Harvesting}}</nowiki></code> | ||
|{{ | |{{StatIcon|Harvesting}} | ||
| - | |||
|- | |||
|Materials | |||
|<code><nowiki>{{StatIcon|name=Materials}}</nowiki></code> | |||
|{{StatIcon|Materials}} | |||
| - | |||
|- | |- | ||
|Level | |||
|<code><nowiki>{{StatIcon|name=Level}}</nowiki></code> | |||
|{{StatIcon|Level}} | |||
| - | |||
|} | |} | ||
</noinclude> | == Options == | ||
Show a text link: | |||
<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: | |||
<code><nowiki>{{StatIcon|potato}}</nowiki></code> = {{StatIcon|potato}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Stat Name", | |||
"description": "As shown on the Stats page", | |||
"example": "Max HP", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"text": { | |||
"suggested": true, | |||
"label": "Show Text Link?", | |||
"description": "Enable to show a text link to the Stat's page", | |||
"type": "boolean" | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 04:58, 18 June 2023
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}}
|
![]() |
- |
Level | {{StatIcon|name=Level}}
|
![]() |
- |
Options
Show a text link:
{{StatIcon|Max HP|text=1}}
=
Don't make the image icon link:
{{StatIcon|Max HP|nolink=1}}
=
Error:
{{StatIcon|potato}}
= potato does not exist as an icon
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Stat Name | name 1 | As shown on the Stats page
| String | required |
Show Text Link? | text | Enable to show a text link to the Stat's page | Boolean | suggested |