Difference between revisions of "Template:Skill infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(test)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:skill id|{{{id|{{#if:{{{jp name|}}}|{{#masterdata:Skill|{{{jp name|}}}|id:name}}|0}}}}}}}{{#ifexpr:{{#var:skill id|}}<2|{{#vardefine:skill id|}}}}{{#if:{{#var:skill id|}}|{{
<includeonly><onlyinclude>{{#vardefine:skill id|{{{id|{{#if:{{{jp name|}}}|{{#masterdata:Skill|{{{jp name|}}}|id:name}}|0}}}}}}}{{#ifexpr:{{#var:skill id|}}<2|{{#vardefine:skill id|}}}}{{#if:{{#var:skill id|}}|{{
#if:{{{en name|}}}|{{#vardefine:skill en name|{{{en name|}}}}}}}{{
#if:{{{en name|}}}|{{#vardefine:skill en name|{{{en name|}}}}}}}{{
#masterdata:Skill|{{#var:skill id}}|{{#var:skill template options|format=wiki}}
#if:{{{jp name|}}}|{{#vardefine:skill jp name|{{{jp name|}}}}}}}{{
}}{{#vardefine:skill template options|}}|Invalid invocation.}}</includeonly><noinclude>
#if:{{{jp-en name|}}}|{{#vardefine:skill jp en name|{{{jp-en name|}}}}}}}{{
#masterdata:Skill|{{#var:skill id}}|{{#var:skill template options|format=wiki;list=false;args=format-table:float-true:list-false:columns=1}}
}}{{#vardefine:skill template options|}}|<!--Invalid invocation.-->}}</includeonly></onlyinclude>
== Description ==
== Description ==


This templates creates a formatted string using the skill information as well as a skill subobject using the following properties:
This templates serves as a proxy between the housamo.xyz API's master data parser and the old wiki template invocations. It is not recommended to manually invoke this template, but if you absolutely must, invoke this template via: <pre>
 
{{Skill infobox
* Has game context
| jp name = In-Game Japanese name
* Has Japanese name
| jp-en name = Translated name (provided alongside en name)
* Has English name
| en name = Translated name (if not localized in-game)
* 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 ==
<pre>{{Skill infobox
| jp name =  
| en name =
| jp-en name =  
| jp trigger timing =
| jp description =
| en description =
| proc chance =
}}</pre>
 
=== Parameters ===
 
; jp name : Japanese name.
; 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 ==
 
<pre>{{Skill infobox
| jp name = 獣の末裔
| en name = Beast Descendant
| jp trigger timing = 移動後
| jp description = 自身に頑強付与
| en description = Apply {{Status effect|頑強}} to Self
| proc chance = 50
}}
}}
</pre>
</pre>
{{Skill infobox
And effects should translate over as long as a Status subobject exists on the wiki.
| jp name = 獣の末裔
| en name = Beast Descendant
| jp trigger timing = 移動後
| jp description = 自身に頑強付与
| en description = Apply {{Status effect|頑強}} to Self
| proc chance = 50
}}


[[Category:Infobox templates]] [[Category:Subobject templates]]
[[Category:Infobox templates]] [[Category:Subobject templates]][[Category:Deprecated templates]]
</noinclude>

Latest revision as of 15:26, 18 January 2019

Description

This templates serves as a proxy between the housamo.xyz API's master data parser and the old wiki template invocations. It is not recommended to manually invoke this template, but if you absolutely must, invoke this template via:

{{Skill infobox
| jp name = In-Game Japanese name
| jp-en name = Translated name (provided alongside en name)
| en name = Translated name (if not localized in-game)
}}

And effects should translate over as long as a Status subobject exists on the wiki.