Difference between revisions of "Skill row format/Documentation"

m (→‎Usage: useless query)
Line 2: Line 2:
 
Used in conjunction with [[Template:Skill row|skill row]]. Formats the skill row using the parameters provided in the original query.
 
Used in conjunction with [[Template:Skill row|skill row]]. Formats the skill row using the parameters provided in the original query.
 
==Parameters==
 
==Parameters==
{{bullet}}'''(unnamed parameter)''': Unused. The page that was queried.
+
{{parameter|1|The page to be queried.}}
 
+
{{parameter|icon|The skill's icon.}}
{{bullet}}'''icon''': The skill's icon.
+
{{parameter|name|The name of the skill.}}
 
+
{{parameter|description|The description of the skill.}}
{{bullet}}'''name''': The name of the skill.
 
 
 
{{bullet}}'''description''': The description of the skill.
 
  
 
==Usage==
 
==Usage==

Revision as of 19:41, 25 February 2023

Description

Used in conjunction with skill row. Formats the skill row using the parameters provided in the original query.

Parameters

Arrow.png1: The page to be queried.
Required.
Arrow.pngicon: The skill's icon.
Required.
Arrow.pngname: The name of the skill.
Required.
Arrow.pngdescription: The description of the skill.
Required.

Usage

This template is usually used with queries like so:

{{#ask: [[E (Berserker)]]
| ?Has icon
| ?Has skill name
| ?Has description
| format=template
| template=Skill row format
}}

For skills with custom parameters or no dedicated wiki article, the template can be used like so:

{{skill row format||E (Berserker).png|E (Berserker)|Custom Description}}