Шаблон:Skill list result format — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Отмена правки 83804, сделанной Blood (обсуждение)) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#vardefine: this_skill|{{{2|}}}}}{{#ifeq: {{#var: last_skill}}|{{#var:this_skill}}|<!-- | <includeonly>{{#vardefine: this_skill|{{{2|}}}}}{{#ifeq: {{#var: last_skill}}|{{#var:this_skill}}|<!-- | ||
− | same skill -->{{#switch: {{{suffix|}}}| notes = <span>;</span> <!-- | + | same skill -->{{#switch: {{{suffix|}}}| type and notes | notes = <span>;</span> <!-- |
− | stacks -->{{#if: {{{ | + | stacks -->{{#if: {{{11|}}}|{{plural:{{{11|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{11|}}} stack of}}|{{{11|}}} stacks of}}}} <!-- |
− | number -->{{#if: {{{ | + | number -->{{#if: {{{14|}}}|{{{14}}}}} <!-- |
− | + | game mode -->{{#ifeq: {{{15|}}}|Default||(in {{{15|}}})}} | |
− | + | }}|{{#vardefine: last_skill|{{#var: this_skill}}}}<!-- | |
− | |||
− | game mode -->{{# | ||
different skill -->* {{#if: {{{6|}}}|{{ {{{6|}}} }}|{{#if: {{{5|}}}|{{ {{{5|}}} }}}}}}  <!-- | different skill -->* {{#if: {{{6|}}}|{{ {{{6|}}} }}|{{#if: {{{5|}}}|{{ {{{5|}}} }}}}}}  <!-- | ||
− | icon -->{{borderless|{{#sub:{{{4}}}|5}}|25|{{{3|{{{2}}}}}}|link={{{2}}}}} [[{{{2}}}|{{{3|{{{2}}}}}}]]{{#switch: {{{suffix|}}}| description | none = | | + | icon -->{{borderless|{{#sub:{{{4}}}|5}}|25|{{{3|{{{2}}}}}}|link={{{2}}}}} [[{{{2}}}|{{{3|{{{2}}}}}}]]<!-- |
− | + | -->{{#switch: {{{suffix|}}} | |
− | + | | description | |
− | + | | notes | |
− | additional notes -->{{#switch: {{{suffix|}}}| | + | | none = <!-- display nothing --> |
− | + | | trait = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}| (}}<!-- | |
− | + | mechanic weapon/pet | |
− | + | + weapon/bundle/type -->{{#arraymap: {{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|, }}<!-- | |
− | + | attunement -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}|, }}when [[Attunement|attuned]] to {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]| and }}}}<!-- | |
− | + | -->{{#if: {{{16|}}}{{{17|}}}{{{18|}}}|)}} | |
− | + | | #default = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}| — }}<!-- | |
− | + | mechanic weapon/pet | |
+ | + weapon/bundle/type -->{{#arraymap: {{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|, }}<!-- | ||
+ | attunement -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}|, }}when [[Attunement|attuned]] to {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]| and }}}} | ||
+ | }}<!-- | ||
+ | additional notes -->{{#switch: {{{suffix|}}} | ||
+ | | type and notes = {{#if: {{{11|}}}{{{14|}}}|{{#if: {{{16|}}}{{{17|}}}{{{18|}}}|, | — }}}} | ||
+ | | notes = {{#if: {{{11|}}}{{{14|}}}| — }} | ||
+ | }}{{#switch: {{{suffix|}}} | ||
+ | | none | ||
+ | | #default = <!-- display nothing --> | ||
+ | | trait | ||
+ | | description =  — {{#replace:{{{7|}}}|<br>| }} | ||
+ | | type and notes | ||
+ | | notes = <!-- | ||
+ | stacks -->{{#if: {{{11|}}}|{{plural:{{{11|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{11|}}} stack of}}|{{{11|}}} stacks of}}}} <!-- | ||
+ | number -->{{#if: {{{14|}}}|{{{14}}}}} <!-- | ||
+ | game mode -->{{#ifeq: {{{15|}}}|Default||(in {{{15|}}})}} | ||
+ | }} | ||
+ | }}</includeonly><noinclude> | ||
Result format for {{tl|skill list}}. | Result format for {{tl|skill list}}. | ||
# Skill fact subobject <!-- 1 --> | # Skill fact subobject <!-- 1 --> | ||
Строка 28: | Строка 44: | ||
# Is for skill.Is for specialization <!-- 6 --> | # Is for skill.Is for specialization <!-- 6 --> | ||
# Is for skill.Has game description <!-- 7 --> | # Is for skill.Has game description <!-- 7 --> | ||
− | # Has fact type <!-- | + | # Has fact <!-- 8 --> |
− | # Has fact number <!-- | + | # Has fact type <!-- 9 --> |
− | # Has fact stacks <!-- | + | # Has fact number <!--10 --> |
− | # Has fact coefficient <!-- | + | # Has fact stacks <!--11 --> |
− | # Has fact strikes <!-- | + | # Has fact coefficient <!--12 --> |
− | # Is for game mode <!-- | + | # Has fact strikes <!--13 --> |
− | # Is for skill.Is for attunement <!-- | + | # Has game description <!--14 --> |
− | # Weapon = Is for skill.Is for weapon; Bundle, Common = Is for skill.Is for bundle; Transform = Is for skill.Has parent skill; Profession mechanic, Healing, Utility, Elite = Is for skill.Has skill type; Pet = Is for skill.Is for pet family <!-- | + | # Is for game mode <!--15 --> |
− | # Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet <!-- | + | # Is for skill.Is for attunement <!--16 --> |
+ | # Weapon = Is for skill.Is for weapon; Bundle, Common = Is for skill.Is for bundle; Transform = Is for skill.Has parent skill; Profession mechanic, Healing, Utility, Elite = Is for skill.Has skill type; Pet = Is for skill.Is for pet family <!--17 --> | ||
+ | # Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet <!--18 --> | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Версия 00:28, 17 октября 2020
Result format for {{skill list}}.
- Skill fact subobject
- Is for skill
- Is for skill.Has canonical name
- Is for skill.Has game icon
- Is for skill.Is for profession
- Is for skill.Is for specialization
- Is for skill.Has game description
- Has fact
- Has fact type
- Has fact number
- Has fact stacks
- Has fact coefficient
- Has fact strikes
- Has game description
- Is for game mode
- Is for skill.Is for attunement
- Weapon = Is for skill.Is for weapon; Bundle, Common = Is for skill.Is for bundle; Transform = Is for skill.Has parent skill; Profession mechanic, Healing, Utility, Elite = Is for skill.Has skill type; Pet = Is for skill.Is for pet family
- Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet