Difference between revisions of "Stat"

m
m
Line 3: Line 3:
 
-->{{#iferror:{{icon|{{{icon|{{{1}}}_Icon.png}}}}}<!-- if icon doesn't exist
 
-->{{#iferror:{{icon|{{{icon|{{{1}}}_Icon.png}}}}}<!-- if icon doesn't exist
 
-->|[[File:{{{1}}}_Icon.png|?]]<!-- handle non-existent icon
 
-->|[[File:{{{1}}}_Icon.png|?]]<!-- handle non-existent icon
-->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{#ifeq:{{#lc:{{{link}}}}}|no||{{#var:link}}}}}}<!-- add icon with link
+
-->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{#ifeq:{{lc:{{{link}}}}}|no||{{#var:link}}}}}}<!-- add icon with link
 
-->{{#if:{{{nolabel|}}}||<!-- if no label is specified
 
-->{{#if:{{{nolabel|}}}||<!-- if no label is specified
 
-->&nbsp;{{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified
 
-->&nbsp;{{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified

Revision as of 20:44, 2 June 2024

Description

Displays a stat's icon and name, with a link to the page of the stat.

Usage

{{stat|<Attack Power>|<+123>|<icon=Attack Power.png>|<link=Attack Power>|<nolabel=yes>}}

Parameters

Arrow.png1: The name of the stat.
Required.
Arrow.png2: The value of the stat.
Optional.
Arrow.pngicon: The stat's icon.
Optional. Defaults to '{{{1}}}_Icon.png'.
Arrow.pnglink: The page link.
Optional. Defaults to '{{{1}}}'.
Notes: If set to 'no', label will be plaintext.
Arrow.pngnolabel: Determines whether the name of the stat is shown.
Optional.
Notes: Set this parameter any value to hide label text.