Difference between revisions of "Stat/Documentation"

m (→‎Usage: Made example make sense)
m
Line 2: Line 2:
 
Displays a stat's icon and name, with a link to the page of the stat.
 
Displays a stat's icon and name, with a link to the page of the stat.
 
==Parameters==
 
==Parameters==
{{bullet}} '''icon''': The stat's icon.
+
{{parameter|icon|The stat's icon.}}
 
+
{{parameter|name|The name of the stat.}}
{{bullet}} '''name''': The name of the stat. Functions as both the name of the article to be linked and the text displayed next to the icon.
+
{{parameter|alt|Replaces the text to be displayed next to the icon.|}}
 
 
{{bullet}} '''alt''': Optional. Replaces the text to be displayed next to the icon.
 
 
 
 
==Usage==
 
==Usage==
 
<pre>{{stat|Attack Power.png|Attack Power|Attack Power}}</pre>
 
<pre>{{stat|Attack Power.png|Attack Power|Attack Power}}</pre>

Revision as of 19:43, 25 February 2023

Description

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

Parameters

Arrow.pngicon: The stat's icon.
Required.
Arrow.pngname: The name of the stat.
Required.
Arrow.pngalt: Replaces the text to be displayed next to the icon.
Optional.

Usage

{{stat|Attack Power.png|Attack Power|Attack Power}}