Шаблон:Skill list result format — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Отмена правки 85540, сделанной 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|}}}| type and notes | notes = <span>;</span> <!--
+
same skill            -->{{#switch: {{{suffix|}}}| notes = <span>;</span> <!--
     stacks            -->{{#if: {{{11|}}}|{{plural:{{{11|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{11|}}} stack of}}|{{{11|}}} stacks of}}}} <!--
+
     stacks            -->{{#if: {{{10|}}}|{{plural:{{{10|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{10|}}} stack}}|{{{10|}}} stacks}}}} <!--
     number            -->{{#if: {{{14|}}}|{{{14}}}}} <!--
+
     number            -->{{#if: {{{ 9|}}}|{{#switch: {{{8|}}} | Buff | Time = for {{{9}}} {{plural:{{{9}}}|second|seconds}}
     game mode        -->{{#ifeq: {{{15|}}}|Default||(in {{{15|}}})}}
+
                                                              | Percent = for {{{9}}}%
                        }}|{{#vardefine: last_skill|{{#var: this_skill}}}}<!--
+
                                                              | Distance = for {{{9}}} range
 +
                                                              | #default = for {{{9}}} }} }} <!--
 +
     game mode        -->{{#replace:{{#switch: {{{13|}}}|Default=|#default=in {{{13|}}}}}|,|&#32;and&#32;}}}}|{{#vardefine: last_skill|{{#var: this_skill}}}}<!--
 
different skill      -->* {{#if: {{{6|}}}|{{ {{{6|}}} }}|{{#if: {{{5|}}}|{{ {{{5|}}} }}}}}} &thinsp;<!--
 
different skill      -->* {{#if: {{{6|}}}|{{ {{{6|}}} }}|{{#if: {{{5|}}}|{{ {{{5|}}} }}}}}} &thinsp;<!--
   icon                -->{{borderless|{{#sub:{{{4}}}|5}}|25|{{{3|{{{2}}}}}}|link={{{2}}}}} [[{{{2}}}|{{{3|{{{2}}}}}}]]<!--
+
   icon                -->{{borderless|{{#sub:{{{4}}}|5}}|25|{{{3|{{{2}}}}}}|link={{{2}}}}} [[{{{2}}}|{{{3|{{{2}}}}}}]]{{#switch: {{{suffix|}}}| description | none = | #default = {{#if: {{{14|}}}{{{15|}}}{{{16|}}}|&#32;&mdash;&#32;}}<!--
                      -->{{#switch: {{{suffix|}}}
+
  mechanic weapon/pet -->{{#if: {{{16|}}}|{{#arraymap: {{{16|}}}|,|@@@|[[@@@]]|,&#32;}}{{#if: {{{15|}}}|,&#32;|{{#if: {{{14|}}}|,&#32;}}}}}}<!--
                          | description
+
  weapon/bundle/type  -->{{#if: {{{15|}}}|{{#arraymap: {{{15|}}}|,|@@@|[[@@@]]|,&#32;}}{{#if: {{{14|}}}|,&#32;}}}}<!--
                          | notes
+
  attunement          -->{{#if: {{{14|}}}|when [[Attunement|attuned]] to {{#arraymap: {{{14|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]|&#32;and&#32;}}}}}}<!--
                          | none = <!-- display nothing -->
+
   additional notes    -->{{#switch: {{{suffix|}}}|#default = | description =&#32;&mdash; {{#replace:{{{7|}}}|<br>|&#32;}} | notes ={{#if: {{{14|}}}{{{15|}}}{{{16|}}}|{{#if:{{{9|}}}{{{10|}}}|,}}|{{#if:{{{9|}}}{{{10|}}}|&#32;&mdash;}}}} <!--
                          | trait = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}|&#32;(}}<!--
+
    stacks            -->{{#if: {{{10|}}}|{{plural:{{{10|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{10|}}} stack}}|{{{10|}}} stacks}}}} <!--
    mechanic weapon/pet
+
    number            -->{{#if: {{{ 9|}}}|{{#switch: {{{8|}}} | Buff | Time = for {{{9}}} {{plural:{{{9}}}|second|seconds}}
  + weapon/bundle/type  -->{{#arraymap: {{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|,&#32;}}<!--
+
                                                              | Percent = for {{{9}}}%
    attunement          -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}|,&#32;}}when [[Attunement|attuned]] to {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]|&#32;and&#32;}}}}<!--
+
                                                              | Distance = for {{{9}}} range
                        -->{{#if: {{{16|}}}{{{17|}}}{{{18|}}}|)}}
+
                                                              | Combo Finisher = {{{9}}}% chance
                          | #default = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}|&#32;&mdash;&#32;}}<!--
+
                                                              | #default = for {{{9}}} }} }} <!--
    mechanic weapon/pet
+
    game mode        -->{{#replace:{{#switch: {{{13|}}}|Default=|#default=in {{{13|}}}}}|,|&#32;and&#32;}}}}}}</includeonly><noinclude>
  + weapon/bundle/type  -->{{#arraymap: {{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|,&#32;}}<!--
 
    attunement          -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}|,&#32;}}when [[Attunement|attuned]] to {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]|&#32;and&#32;}}}}
 
                        }}<!--
 
   additional notes    -->{{#switch: {{{suffix|}}}  
 
                          | type and notes = {{#if: {{{11|}}}{{{14|}}}|{{#if: {{{16|}}}{{{17|}}}{{{18|}}}|,&#32;|&#32;&mdash;&#32;}}}}
 
                          | notes = {{#if: {{{11|}}}{{{14|}}}|&#32;&mdash;&#32;}}
 
                        }}{{#switch: {{{suffix|}}}
 
                          | none
 
                          | #default = <!-- display nothing -->
 
                          | trait
 
                          | description = &#32;&mdash; {{#replace:{{{7|}}}|<br>|&#32;}}  
 
                          | 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 -->
Строка 44: Строка 28:
 
# 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                            <!-- 8 -->
+
# Has fact type                      <!-- 8 -->
# Has fact type                      <!-- 9 -->
+
# Has fact number                    <!-- 9 -->
# Has fact number                    <!--10 -->
+
# Has fact stacks                    <!--10 -->
# Has fact stacks                    <!--11 -->
+
# Has fact coefficient                <!--11 -->
# Has fact coefficient                <!--12 -->
+
# Has fact strikes                    <!--12 -->
# Has fact strikes                    <!--13 -->
+
# Is for game mode                    <!--13 -->
# Has game description                <!--14 -->
+
# Is for skill.Is for attunement      <!--14 -->
# Is for game mode                    <!--15 -->
+
# 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 <!--15 -->
# Is for skill.Is for attunement      <!--16 -->
+
# Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet <!--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:30, 17 октября 2020

Result format for {{skill list}}.

  1. Skill fact subobject
  2. Is for skill
  3. Is for skill.Has canonical name
  4. Is for skill.Has game icon
  5. Is for skill.Is for profession
  6. Is for skill.Is for specialization
  7. Is for skill.Has game description
  8. Has fact type
  9. Has fact number
  10. Has fact stacks
  11. Has fact coefficient
  12. Has fact strikes
  13. Is for game mode
  14. Is for skill.Is for attunement
  15. 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
  16. Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet