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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показано 7 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly>{{#vardefine: this_skill|{{{2|}}}}}{{#ifeq: {{#var: last_skill}}|{{#var:this_skill}}|<!--
+
<includeonly>{{#ifeq: {{#var: last_skill}}|{{{2|}}}|<!-- same skill -->|{{#if: {{#var: last_skill}}|</li>}}{{#vardefine: last_skill|{{{2|}}}}}<!--
same skill           -->{{#switch: {{{suffix|}}}| type and notes | notes = <span>;</span> <!--
+
different skill      --><li class="filter-list f-noheading f-{{{context|}}} {{#if: {{{5|}}} | f-{{{5|}}} }}"><!--
    stacks            -->{{#if: {{{11|}}}|{{plural:{{{11|}}}|{{#switch: {{{fact|}}}| Might | Stability | Burning | Bleeding | Confusion | Poisoned | Torment | Vulnerability = {{{11|}}} stack of}}|{{{11|}}} stacks of}}}} <!--
+
                        -->{{#ifeq: {{#var:last_profession}}|{{{5|}}}||{{#vardefine:last_profession|{{{5|}}}}}<!--
    number            -->{{#if: {{{14|}}}|{{{14}}}}} <!--
+
                          -->{{#vardefine: p-{{{type|}}}-{{{effect|}}}-{{{context|}}}| {{#var: p-{{{type|}}}-{{{effect|}}}-{{{context|}}}}} f-{{{5|}}} }} }}<!--
    game mode        -->{{#ifeq: {{{15|}}}|Default||(in {{{15|}}})}}
+
  profession icon    -->{{#if: {{{6|}}}|[[File:{{{6|}}} icon small.png|link={{{6|}}}]]|{{#if: {{{5|}}}|[[File:{{{5|}}} icon small.png|link={{{5|}}}]]}}}} &thinsp;<!--
                        }}|{{#vardefine: last_skill|{{#var: this_skill}}}}<!--
+
  skill icon         --><span style="overflow: hidden; width: 25px; height: 25px; display:inline-block; vertical-align:middle;"><span style="margin: -4px; overflow: hidden; display: inline-block;">[[{{{4}}}|33x33px|link={{{2}}}]]</span></span> [[{{{2}}}|{{{3|{{{2}}}}}}]]<!-- COPY OF THE TEMPLATE {{borderless}}
different skill      -->* {{#if: {{{6|}}}|{{ {{{6|}}} }}|{{#if: {{{5|}}}|{{ {{{5|}}} }}}}}} &thinsp;<!--
+
                      -->{{#ifeq: {{{suffix|}}}|none||<!--
  icon                -->{{borderless|{{#sub:{{{4}}}|5}}|25|{{{3|{{{2}}}}}}|link={{{2}}}}} [[{{{2}}}|{{{3|{{{2}}}}}}]]<!--
+
                        -->{{#if: {{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}|&#32;&mdash;&#32;}}<!--
                      -->{{#switch: {{{suffix|}}}
+
    weapon/bundle/type   -->{{#arraymap: {{{19|}}},{{{18|}}},{{{17|}}}|,|@@@|[[@@@|{{rus lang|skill type|{{rus lang|weapon|@@@}}}}]]|,&#32;}}<!--
                          | description
+
    attunement           -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}{{{19|}}}|,&#32;}}при [[attunement|настройке]] на {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{#switch:{{lc:{{#explode:@@@|}}}}|fire=огонь|water=воду|air=воздух|earth=землю}}]]|&#32;и&#32;}}}}<!--
                          | notes
+
                        -->}}
                          | none = <!-- display nothing -->
 
                          | trait = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}|&#32;(}}<!--
 
    mechanic weapon/pet
 
  + weapon/bundle/type  -->{{#arraymap: {{{19|}}},{{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|,&#32;}}<!--
 
    attunement         -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}{{{19|}}}|,&#32;}}when [[Attunement|attuned]] to {{#arraymap: {{{16|}}}|,|@@@|[[@@@|{{lc:{{#replace:@@@|Attunement}}}}]]|&#32;and&#32;}}}}<!--
 
                        -->{{#if: {{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}|)}}
 
                          | #default = {{#if: {{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}|&#32;&mdash;&#32;}}<!--
 
    mechanic weapon/pet
 
  + weapon/bundle/type -->{{#arraymap: {{{19|}}},{{{18|}}},{{{17|}}}|,|@@@|[[@@@]]|,&#32;}}<!--
 
    attunement         -->{{#if: {{{16|}}}|{{#if: {{{17|}}}{{{18|}}}{{{19|}}}|,&#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|}}}{{{19|}}}|,&#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>
 
}}</includeonly><noinclude>
Result format for {{tl|skill list}}.
+
;Result formats for {{tl|skill list}}
 +
* {{tl|skill list result format}} for the format "suffix = type/none".
 +
* {{tl|skill list result format/notes}} for the format "suffix = notes/type and notes".
 +
* {{tl|skill list result format/description}} for the format "suffix = description/trait".
 +
;Parameters
 
# Skill fact subobject                <!-- 1 -->
 
# Skill fact subobject                <!-- 1 -->
 
# Is for skill                        <!-- 2 -->
 
# Is for skill                        <!-- 2 -->
Строка 53: Строка 32:
 
# Is for game mode                    <!--15 -->
 
# Is for game mode                    <!--15 -->
 
# Is for skill.Is for attunement      <!--16 -->
 
# 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; Healing, Utility, Elite = Is for skill.Has skill type; Profession mechanic, Racial = Is for skill.Has parent skill; Pet = Is for skill.Is for pet family <!--17 -->
+
# Weapon = Is for skill.Is for weapon; Bundle, Common = Is for skill.Is for bundle; Tonic = Is for skill.Is for tonic; Transform = Is for skill.Has parent skill; Healing, Utility, Elite = Is for skill.Has skill type; Profession mechanic, Racial = Is for skill.Has parent skill; Pet = Is for skill.Is for pet family <!--17 -->
 
# Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet; Racial = Is for skill.Has skill type <!--18 -->
 
# Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet; Racial = Is for skill.Has skill type <!--18 -->
 
# Profession mechanic = ?Is for skill.Has skill type <!--19 -->
 
# Profession mechanic = ?Is for skill.Has skill type <!--19 -->

Текущая версия на 00:18, 19 апреля 2022

Result formats for {{skill list}}
Parameters
  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
  9. Has fact type
  10. Has fact number
  11. Has fact stacks
  12. Has fact coefficient
  13. Has fact strikes
  14. Has game description
  15. Is for game mode
  16. Is for skill.Is for attunement
  17. Weapon = Is for skill.Is for weapon; Bundle, Common = Is for skill.Is for bundle; Tonic = Is for skill.Is for tonic; Transform = Is for skill.Has parent skill; Healing, Utility, Elite = Is for skill.Has skill type; Profession mechanic, Racial = Is for skill.Has parent skill; Pet = Is for skill.Is for pet family
  18. Profession mechanic = Is for skill.Is for weapon; Pet = Is for skill.Is for pet; Racial = Is for skill.Has skill type
  19. Profession mechanic = ?Is for skill.Has skill type