Difference between revisions of "Skill row format/Documentation"

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.
 
==Usage==
 
==Usage==
This template is usually used with queries like so:
+
This template is used in queries similar to the one below:
<pre>
+
<pre>{{#ask: [[Category:Berserker skills]]
{{#ask: [[E (Berserker)]]
 
 
| ?Has icon
 
| ?Has icon
 
| ?Has skill name
 
| ?Has skill name
 
| ?Has description
 
| ?Has description
 +
| sort=Has skill order
 +
| order=asc
 
| format=template
 
| format=template
 
| template=Skill row format
 
| template=Skill row format
 
}}</pre>
 
}}</pre>
For skills with custom parameters or no dedicated wiki article, the template can be used like so:<br>
+
The template can be used as below (unrecommended):<br>
 
{{T|skill row format|​|E (Berserker).png|E (Berserker)|Custom Description}}
 
{{T|skill row format|​|E (Berserker).png|E (Berserker)|Custom Description}}
  

Revision as of 17:19, 27 March 2023

Description

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

Usage

This template is used in queries similar to the one below:

{{#ask: [[Category:Berserker skills]]
| ?Has icon
| ?Has skill name
| ?Has description
| sort=Has skill order
| order=asc
| format=template
| template=Skill row format
}}

The template can be used as below (unrecommended):
{{skill row format|<​>|<E (Berserker).png>|<E (Berserker)>|<Custom Description>}}

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.