Шаблон:Prefix selection — различия между версиями
Материал из Guild Wars 2 wiki
Mirry (обсуждение | вклад) (Новая страница: «{{#if: <!-- hide whitespace --> <!-- Simplify usage for ascended items --> {{#vardefine:prefix list|{{#ifeq:{{lc:{{{1|}}}}}|all ascended|at apothecary, at berserk…») |
Blood (обсуждение | вклад) |
||
Строка 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| | + | {{#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: | + | ! style="width:182px" | Stats |
− | {{#arraymap:{{#var:prefix list}}|,|@@@| | + | {{#arraymap: {{#var:prefix list}} |,|@@@| |
− | {{ | + | {{!}}- |
− | + | {{!}} {{prefix display|@@@}} | |
− | + | {{!}} {{prefix attributes|@@@|supertype={{#var:supertype}}|rarity={{#var:rarity_std}}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}} {{ | ||
− | {{ | ||
|\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 | + | :* 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 = | + | | icon = Crude Scepter.png |
| type = Scepter | | type = Scepter | ||
| level = 80 | | level = 80 | ||
Строка 56: | Строка 40: | ||
}} | }} | ||
− | <pre>{{Prefix selection|berserker | + | <pre>{{Prefix selection|berserker, carrion, cleric, dire, rampager, shaman}}</pre> |
− | {{Prefix selection|berserker | + | {{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[править]
Immmobulus
- Type
- Scepter
- Strength
- 895 – 1010
- Редкость
- Экзотический
- Треб. уровень
- 80
- Привязка
- Привязка к персонажу при использовании
- Ценность
- 2 64
- Игр. ссылка
- Торговый пост
- …
- Внешние ссылки
- GW2BLTC
GW2Spidy
GW2TP
Gallery |
Click to enlarge |
{{Prefix selection|berserker, carrion, cleric, dire, rampager, shaman}}
Prefix | Stats |
---|---|
Berserker |
|
Carrion |
|
Cleric |
|
Dire |
|
Rampager |
|
Shaman |
|