Difference between revisions of "Template:Skill extended infobox/doc"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
== Description ==
== Description ==


This templates creates a formatted string using the skill information as well as a skill subobject using the following properties:
This templates creates a formatted infobox using the skill information as well as a skill subobject.


* Has game context
==Usage==
* Has Japanese name
* Has English name
* Has Japanese-English name
* Has lowercase English name
* Has Japanese description
* Has English description
* Has skill trigger timing
* Has skill proc chance
* Has preformatted English description
* Has raw English description
* Has evolved skill
* Has precursor skill
* Has additional skills


== 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 infobox
| jp name =
| en name =  
| jp-en name =
| jp trigger timing =
| jp description =
| en description =
| proc chance =
}}</pre>


=== Parameters ===
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.


; jp name : Japanese name.
* others - ???
; en name : English name.
; jp-en name: Translated English name.
; jp trigger timing : Activation method in Japanese without parentheses.
; jp description : Skill description in Japanese.
; en description : Translated English skill description.
; proc chance : The skill's chance to activate at skill level 1 in percent.
; evolution : The skill's evolution
; precursor : The skill's pre-evolution (base)


== Examples ==
The template can be interacted with using variables.


<!--
===Variables===
<pre>{{Skill infobox
 
| jp name = 獣の末裔
All of the variables below apply to the wiki format. Their effect on other formats is unknown.
| en name = Beast Descendant
 
| jp trigger timing = 移動後
Variables that can be commonly encountered on skill pages:
| jp description = 自身に頑強付与
 
| en description = Apply {{Status effect|頑強}} to Self
* '''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.
| proc chance = 50
* '''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.
</pre>
 
{{Skill infobox
Variables used by other templates:
| jp name = 獣の末裔
 
| en name = Beast Descendant
* '''hide transient skill list''' - set to ''true'' to hide the [[Template:Transient list|transient list]] from appearing.
| jp trigger timing = 移動後
* '''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.
| jp description = 自身に頑強付与
 
| en description = Apply {{Status effect|頑強}} to Self
==Examples==
| proc chance = 50
 
}}
<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]]

Revision as of 16:00, 28 November 2020

Description

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

{{#masterdata:Skill|<id>|format=<format>}}

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 - ???

The template can be interacted with using variables.

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.
  • 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 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 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

{{#vardefine:skill en name|Example translation}}
{{#vardefine:hide guide|true}}
{{#vardefine:skill evolution|2020}}
{{#masterdata:Skill|1000|format=wiki}}




Example translation
JP Name 毒無効
Trigger timing Status ResistanceTriggers directly before receiving any status, including those that would normally not be accepted due to pre-existing acquisition of the same status. Prevents target statuses from being applied at all and removes them if already present. The application of the any status that confers Status Resistance will trigger its own Status Resistance skill effects.
Effect Poison-100~-200HP/turn for 5 turns (Debuff)
Proc Chance 100%
Evolution(s) Exceptional Calculator

Transients with 毒無効

No transients found that satisfy the search criteria.