Шаблон:Prefix selection — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «{{#if: <!-- hide whitespace --> <!-- Simplify usage for ascended items --> {{#vardefine:prefix list|{{#ifeq:{{lc:{{{1|}}}}}|all ascended|at apothecary, at berserk…»)
 
 
Строка 1: Строка 1:
 
{{#if: <!-- hide whitespace -->
 
{{#if: <!-- hide whitespace -->
 
<!-- Simplify usage for ascended items -->
 
<!-- Simplify usage for ascended items -->
{{#vardefine:prefix list|{{#ifeq:{{lc:{{{1|}}}}}|all ascended|at apothecary, at berserker, at berserker valkyrie, at captain, at cavalier, at celestial, at cleric, at dire rabid, at knight, at rabid, at rabid apothecary, at rampager, at soldier|{{{1|Example}}} }} }}
+
{{#vardefine:prefix list|{{lc:{{#ifeq: {{lc:{{{1|}}}}} | all ascended | apothecary, berserker, berserker and valkyrie, captain, cavalier, celestial, cleric, dire and rabid, knight, rabid, rabid and apothecary, rampager, soldier | {{{1|Example}}} }} }}}}
}}{| {{STDT|equip collapsible}} style="display:table"
+
{{#if: {{NAMESPACE}} || {{#set: | Has selectable equipment prefix={{lc:{{#replace: {{#var:prefix list}} |'s|}}}} | +sep=, }} }}
 +
}}{| {{STDT|equip {{#ifeq: {{{collapsed|{{#ifeq: {{#explode:{{#var:prefix list}}|,|9}} | | n | y }}}}} | n | collapsible | expandable }}}} style="display:table"
 
! style="width:162px" | Prefix
 
! style="width:162px" | Prefix
! style="width:172px" | Stats
+
! style="width:182px" | Stats
{{#arraymap:{{#var:prefix list}}|,|@@@|
+
{{#arraymap: {{#var:prefix list}} |,|@@@|
{{#if: <!-- hide whitespace -->
+
{{!}}-
  {{#vardefine:@@@ display name| <!-- define display name for prefixes -->
+
{{!}} {{prefix display|@@@}}
    {{#switch:@@@ <!-- switch for ascended prefixes -->
+
{{!}} {{prefix attributes|@@@|supertype={{#var:supertype}}|rarity={{#var:rarity_std}}}}
      | at apothecary | at apothecary's = Apothecary's
 
      | at berserker | at berserker's = Berserker's
 
      | at berserker valkyrie | at berserker's valkyrie = Berskerer's and Valkyrie
 
      | at captain | at ppt = Captain's
 
      | at cavalier | at cavalier's = Cavalier's
 
      | at celestial = Celestial
 
      | at cleric | at cleric's = Cleric's
 
      | at dire rabid = Dire and Rabid
 
      | at knight | at knight's = Knight's
 
      | at rabid = Rabid
 
      | at rabid apothecary | at rabid apothecary's = Rabid and Apothecary's
 
      | at rampager | at rampager's = Rampager's
 
      | at soldier | at soldier's = Soldier's
 
      | #default = @@@
 
    }} <!-- end switch -->
 
  }} <!-- end vardefine -->
 
}}<!-- end whitespace if -->{{!}}-
 
{{!}} {{ucfirst:{{#var:@@@ display name}}}}
 
{{!}} {{prefix attributes|@@@}}
 
 
|\n}}
 
|\n}}
 
|}<noinclude>
 
|}<noinclude>
Строка 41: Строка 23:
 
;Unnamed parameter 1
 
;Unnamed parameter 1
 
:Comma-separated list of prefixes. To see the full list of possible prefixes, see [[Template:Prefix attributes#Full parameter list]].
 
:Comma-separated list of prefixes. To see the full list of possible prefixes, see [[Template:Prefix attributes#Full parameter list]].
:* Special case: for ascended items, use "all ascended" to automatically list all available ascended prefixes (as listed at the link above).
+
:* Special case: for ascended items, use "all ascended" to automatically list all available ascended prefixes (as listed in the link above).
 +
;collapsed
 +
:Optional. Change the default loading state of the list to collapsed by setting this parameter equal to "y". Where more than 9 prefixes have been specified, the template defaults to the collapsed state.
  
 
== Example ==
 
== Example ==
 
{{Weapon infobox
 
{{Weapon infobox
 
| name = Immmobulus
 
| name = Immmobulus
| icon = Fine Scepter.png
+
| icon = Crude Scepter.png
 
| type = Scepter
 
| type = Scepter
 
| level = 80
 
| level = 80
Строка 56: Строка 40:
 
}}
 
}}
  
<pre>{{Prefix selection|berserker's, carrion, cleric's, dire, rampager's, shaman's}}</pre>
+
<pre>{{Prefix selection|berserker, carrion, cleric, dire, rampager, shaman}}</pre>
{{Prefix selection|berserker's, carrion, cleric's, dire, rampager's, shaman's}}
+
{{Prefix selection|berserker, carrion, cleric, dire, rampager, shaman}}

Текущая версия на 15:01, 10 июня 2017

Prefix Stats
Example Unrecognized prefix

Usage[править]

This template is used to describe the stat selection mechanic on certain equipment such as legendary weapons. The attributes are generated with a call to the {{prefix attributes}} template. This requires a call to {{Item stat lookup}}, which generally happens in the infobox template. To use this template outside an infobox template, the call to {{Item stat lookup}} must been done explicitly. The prefixes are listed in order they are given.

{{prefix selection|<prefix>,...<prefix>}}

Parameters[править]

Unnamed parameter 1
Comma-separated list of prefixes. To see the full list of possible prefixes, see Template:Prefix attributes#Full parameter list.
  • Special case: for ascended items, use "all ascended" to automatically list all available ascended prefixes (as listed in the link above).
collapsed
Optional. Change the default loading state of the list to collapsed by setting this parameter equal to "y". Where more than 9 prefixes have been specified, the template defaults to the collapsed state.

Example[править]

.
Crude Scepter.png

Immmobulus

Type
Scepter
Strength
895 – 1010
Редкость
FЭкзотический
Треб. уровень
80
Привязка
Привязка к персонажу при использовании
Ценность
Серебряная монета 64 Медная монета
Игр. ссылка
Торговый пост
Внешние ссылки
GW2BLTC
GW2Spidy
GW2TP
Gallery
Immobulus.jpg

Click to enlarge

{{Prefix selection|berserker, carrion, cleric, dire, rampager, shaman}}
Prefix Stats
Berserker
+120 Power.png Сила
+85 Precision.png Точность
+85 Ferocity.png Свирепость
Carrion
+120 Condition Damage.png Урон от состояний
+85 Power.png Сила
+85 Vitality.png Живучесть
Cleric
+120 Healing Power.png Сила исцеления
+85 Power.png Сила
+85 Toughness.png Прочность
Dire
+120 Condition Damage.png Урон от состояний
+85 Toughness.png Прочность
+85 Vitality.png Живучесть
Rampager
+120 Precision.png Точность
+85 Power.png Сила
+85 Condition Damage.png Урон от состояний
Shaman
+120 Vitality.png Живучесть
+85 Condition Damage.png Урон от состояний
+85 Healing Power.png Сила исцеления