trusted
5,894
edits
SurtrFan8511 (talk | contribs) (Created page with "== Description == This templates creates a formatted string using the skill information as well as a skill subobject using the following properties: * Has game context * Has...") |
SurtrFan8511 (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
This templates creates a formatted | This templates creates a formatted infobox using the skill information as well as a skill subobject. | ||
==Usage== | |||
Just like many other major templates, this one uses the masterdata extension. To invoke the template, simply write <pre>{{#masterdata:Skill|<id>|format=<format>}}</pre> | |||
<pre>{{Skill | |||
| | |||
| | |||
}}</pre> | |||
Where <id> is ID of the skill, <format> is infobox format. These include: | |||
* '''wiki''' - the default one. Translates skill descriptions, lists transients that use the skill and adds a guide template at the bottom. | |||
* others - ??? | |||
= | To see preparsed version of the template, go to <code>https://api.housamo.xyz/housamo/api/parse/skill/?skill_id=<id></code>, where <id> is ID of the skill. | ||
The template can be interacted with using variables. | |||
<pre>{{ | |||
===Variables=== | |||
| | All of the variables below apply to the wiki format. Their effect on other formats is unknown. | ||
| | |||
Variables that can be commonly encountered on skill pages: | |||
| | |||
}} | * '''skill en name''' - English translation of the skill name. English names get automatically updated to official ones if translations are found in the game files. | ||
</pre> | * '''skill evolution''' - ID of an evolved version of the skill. Multiple IDs should be separated with a semicolon. | ||
{{ | * '''hide guide''' - set to ''true'' to hide the [[Template:Guide|guide]] from appearing. This is useful when invoking multiple skill infoboxes on one page. | ||
Variables used by other templates: | |||
| | |||
| | * '''hide transient skill list''' - set to ''true'' to hide the [[Template:Transient list|transient list]] from appearing. | ||
* '''ar skill page'''/'''charge skill page''' - set these variables to anything to indicate the type of a skill. This is useful for queries and stuff. | |||
| | |||
}} | ==Examples== | ||
<pre>{{#vardefine:skill en name|Example translation}} | |||
{{#vardefine:hide guide|true}} | |||
{{#vardefine:skill evolution|2020}} | |||
{{#masterdata:Skill|1000|format=wiki}}</pre> | |||
{{#vardefine:skill en name|Example translation}} | |||
{{#vardefine:hide guide|true}} | |||
{{#vardefine:skill evolution|2020}} | |||
{{#masterdata:Skill|1000|format=wiki}} | |||
[[Category:Infobox templates]] [[Category:Subobject templates]] | [[Category:Infobox templates]] [[Category:Subobject templates]] |