Difference between revisions of "Stat"

m
m (check if page is in Category:Skills or Category:Passive Talents)
Line 9: Line 9:
  
 
SET PROPERTIES
 
SET PROPERTIES
-->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- if the page
+
-->{{#if:<!-- if the page
-->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills
+
-->{{#ask: [[Category:Skills||Passive Talents]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills or Category:Passive Talents
 
-->|{{#set:Has stat={{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define stat index
 
-->|{{#set:Has stat={{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define stat index
 
-->;{{{2|0}}}<!-- define stat value
 
-->;{{{2|0}}}<!-- define stat value
 
-->;{{#replace:{{sc|{{{link|{{{1}}}}}}}}|&nbsp;|_}}}}<!-- define stat name and bypass semicolon in '&nbsp;'
 
-->;{{#replace:{{sc|{{{link|{{{1}}}}}}}}|&nbsp;|_}}}}<!-- define stat name and bypass semicolon in '&nbsp;'
 
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 20:48, 1 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.