Difference between revisions of "Template:Skill list"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
m
Line 11: Line 11:
{{#ifeq:{{#var:listed skill id|}} {{#var:listed skill tag|}} {{#var:listed skill targets|}}|{{#vardefineecho:listed skill id|{{formatnum:{{#show:@@@@|?Has skill ID}}|R}}}} {{#vardefineecho:listed skill tag|{{#show:@@@@|?Has effect tags}}}} {{#vardefineecho:listed skill targets|{{#show:@@@@|?Has effect targets}}}}|<!--removing duplicate entries-->
{{#ifeq:{{#var:listed skill id|}} {{#var:listed skill tag|}} {{#var:listed skill targets|}}|{{#vardefineecho:listed skill id|{{formatnum:{{#show:@@@@|?Has skill ID}}|R}}}} {{#vardefineecho:listed skill tag|{{#show:@@@@|?Has effect tags}}}} {{#vardefineecho:listed skill targets|{{#show:@@@@|?Has effect targets}}}}|<!--removing duplicate entries-->
|{{#vardefine:listed skill subobj|{{#ask:
|{{#vardefine:listed skill subobj|{{#ask:
[[Has game context::Skill]]
[[{{#explode:@@@@|#effect|0}}#skill{{#explode:@@@@|#effect|1}}]]
<!--[[Has game context::Skill]]
[[Has ID::{{#var:listed skill id|}}]]
[[Has ID::{{#var:listed skill id|}}]]
[[Has effect ID::{{#expr:{{#explode:@@@@|#effect|1}} + 1}}]]
[[Has effect ID::{{#expr:{{#explode:@@@@|#effect|1}} + 1}}]]-->
|limit=1|link=none}}}}{{#arraydefine:transient list|}}{{#switch:{{{type|{{#show:{{#var:listed skill subobj}}|?Has skill type}}}}}
|limit=1|link=none}}}}{{#arraydefine:transient list|}}{{#switch:{{{type|{{#show:{{#var:listed skill subobj}}|?Has skill type}}}}}
| Base Skill = {{#arraydefine:transient list|{{#ask:
| Base Skill = {{#arraydefine:transient list|{{#ask:

Revision as of 04:30, 21 November 2020

Template documentation[view] [edit] [history] [purge]

Description

This template lists all skills that fit a certain criteria as well as Transients that wield these skills. It does not display unused skills.

In order for the skill to be displayed in the first place, there needs to be a dedicated page for it that calls {{#masterdata:Skill|ID|format=wiki}}. With it, a subobject gets created that stores queryable info about a skill. It also uses a tag system (see below).

Usage

Display-related arguments:

  • format - choose how to present the list. small format hides the skill description completely, effect format shows only the matching effect and large format shows the entire skill that has this effect. Default value is large.
    • Note: for now, because of subobject shenanigans, AR skills use the large format even if effect format is selected.
  • show (small format only) - choose what additional information to show in parenthesis for the small format. The options are targets, potency, value, modifier, squares, tag.

Query-related arguments (at least one should be used):

  • type - type of skill (Base Skill, Charge Skill, AR Skill)
  • tag - skill tag (see below)
  • target - skill targeting (self, allies, enemies)
  • range - skill range. Argument should be parsed the same way as in Template:Skill range.
  • timing - skill trigger timing ID. See source code of Template:Skill trigger timing for the list.
  • interval - skill trigger interval. Pass values of interval, surplus and total_turn, separating them with a space.
  • min id, max id - min and max ID ranges for skills to be displayed. This is useful for splitting pages into multiple ones if the query result is too big.

Tags

Tags are handled in Template:Skill description (and make that template way less readable).

As of writing this, there are following tags:

Show list

(status) is English status name, (weapon) is English weapon name

  • Apply (status)
  • Remove (status)
  • Status advantage (status)
  • Weapon resist (weapon)
  • Increase HP
  • Decrease HP
  • Increase CP
  • Decrease CP
  • Add horizontal move
  • Add vertical move
  • Add omnidirectional move
  • Push
  • Pull
  • Push left
  • Push right
  • Resist all push
  • Resist horizontal push
  • Resist backward push
  • Resist forward push
  • Add unit XP
  • Collect unit XP
  • Add rank XP
  • Add Coin


Examples

{{Skill list|tag=Apply Berserk|type=Charge Skill|show=targets}}


{{Skill list|tag=Status advantage Evasion|type=Base Skill|show=multiplier}}


{{Skill list|tag=Remove Bind|type=AR Skill}}


{{Skill list|tag=Apply Paralysis|type=Base Skill|format=large}}


{{Skill list|tag=Apply Taunt|type=Base Skill|range=3 0 0 0 0|format=effect}}