Редактирование: Шаблон:Weapon skill table row format
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:this_profession|{{{5|}}}}}{{#vardefine:this_specialization|{{{6|}}}}}{{#vardefine:this_weapon_slot|{{{9|}}}}}{{#vardefine:this_weapon|{{#if:{{{15|}}}|{{{15}}}|{{#if:{{{16|}}}|{{{16}}}|{{#if:{{{17|}}}|{{{17}}}}}}}}}}}{{#vardefine:this_attunement|{{{20|}}}}}<!-- |
-->{{#switch: {{#var:header css class{{#var:table id}}}}|<!-- empty, not defined yet-->={{#vardefine:header css class{{#var:table id}}|{{lc:{{{5|}}}}}}}|<!-- same class -->{{lc:{{{5|}}}}}=|<!-- dummy class to distinguish from emtpy -->#default={{#vardefine:header css class{{#var:table id}}|white}}}}<!-- | -->{{#switch: {{#var:header css class{{#var:table id}}}}|<!-- empty, not defined yet-->={{#vardefine:header css class{{#var:table id}}|{{lc:{{{5|}}}}}}}|<!-- same class -->{{lc:{{{5|}}}}}=|<!-- dummy class to distinguish from emtpy -->#default={{#vardefine:header css class{{#var:table id}}|white}}}}<!-- | ||
Строка 8: | Строка 8: | ||
| {{#vardefine:last_profession|{{#var:this_profession}}}}{{#vardefine:last_specialization|{{#var:this_specialization}}}}{{#vardefine:last_weapon|<!-- new profession section, reset weapon -->}} | | {{#vardefine:last_profession|{{#var:this_profession}}}}{{#vardefine:last_specialization|{{#var:this_specialization}}}}{{#vardefine:last_weapon|<!-- new profession section, reset weapon -->}} | ||
{{!}}- class="{{lc:{{{5|}}}}}" | {{!}}- class="{{lc:{{{5|}}}}}" | ||
− | ! colspan="7" {{!}} {{#tag: {{#var:profession heading|h4}}|{{#ifeq: {{#var:this_specialization}}|| {{ {{#var:this_profession}} }} [[{{#var:this_profession | + | ! colspan="7" {{!}} {{#tag: {{#var:profession heading|h4}}|{{#ifeq: {{#var:this_specialization}}|| {{ {{#var:this_profession}} }} [[{{#var:this_profession}}]] | {{ {{#var:this_specialization}} }} [[{{#var:this_specialization}}]] }} }} |
{{!}}- | {{!}}- | ||
}} | }} | ||
Строка 19: | Строка 19: | ||
|<!-- #var:last_weapon needed below, updated there -->{{#vardefine:last_attunement|<!-- new weapon section, reset attunement -->}} | |<!-- #var:last_weapon needed below, updated there -->{{#vardefine:last_attunement|<!-- new weapon section, reset attunement -->}} | ||
{{!}}- class="{{lc:{{{5|}}}}}" | {{!}}- class="{{lc:{{{5|}}}}}" | ||
− | ! colspan="7" {{!}} {{#tag: {{# | + | ! colspan="7" {{!}} {{#tag: {{#switch: {{#var:weapon heading}} | plain = span | #default = {{#var:weapon heading|h5}} }} | {{#arraymap:{{#var:this_weapon}}|,|@@@|[[@@@]]|, <nowiki/>}} {{#ifeq: {{#var:showProfessionSubheader|false}}|true||{{#ifeq: {{{6|}}}|<!--empty-->||<small>(requires {{ {{{6|}}} }} [[{{{6|}}}]])</small>}} }} }} |
{{!}}- | {{!}}- | ||
}} | }} | ||
Строка 31: | Строка 31: | ||
| {{#vardefine:last_attunement|{{#var:this_attunement}}}} {{#if:{{#var:this_attunement}} | | | {{#vardefine:last_attunement|{{#var:this_attunement}}}} {{#if:{{#var:this_attunement}} | | ||
{{!}}- class="{{lc:{{{5|}}}}}" | {{!}}- class="{{lc:{{{5|}}}}}" | ||
− | {{!}} colspan="7" style="border-bottom-style:hidden;" {{!}} {{#arraymap: {{#var:this_attunement}}|,|@@@|{{borderless|@@@.png|20|@@@|link=@@@}}|}} {{#arraymap: {{#var:this_attunement}}|,|@@@|[[@@@|{{#replace:@@@|Attunement}}]]| | + | {{!}} colspan="7" style="border-bottom-style:hidden;" {{!}} {{#arraymap: {{#var:this_attunement}}|,|@@@|{{borderless|@@@.png|20|@@@|link=@@@}}|}} {{#arraymap: {{#var:this_attunement}}|,|@@@|[[@@@|{{#replace:@@@|Attunement}}]]|<nowiki> + </nowiki>}} Attunement}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
}} | }} | ||
− | |||
}}<!-- | }}<!-- | ||
Строка 50: | Строка 49: | ||
| stealth | stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]] | | stealth | stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]] | ||
| ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]] | | ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]] | ||
− | |||
− | |||
| #default = {{#if: {{#var:last_weapon}}{{#var:last_weapon_slot}}<!-- checking if empty due to #var caching bug --> | | #default = {{#if: {{#var:last_weapon}}{{#var:last_weapon_slot}}<!-- checking if empty due to #var caching bug --> | ||
| <!-- automatic -->{{#ifeq: {{#var:this_weapon}}{{#var:this_weapon_slot}}|{{#var:last_weapon}}{{#var:last_weapon_slot}}|{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Цепочка]]}}}} | | <!-- automatic -->{{#ifeq: {{#var:this_weapon}}{{#var:this_weapon_slot}}|{{#var:last_weapon}}{{#var:last_weapon_slot}}|{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Цепочка]]}}}} | ||
| <!-- manual case -->{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Цепочка]]}}}}}}{{#vardefine:last_weapon|{{#var:this_weapon}}}}{{#vardefine:last_weapon_slot|{{#var:this_weapon_slot}}}}<!-- | | <!-- manual case -->{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Цепочка]]}}}}}}{{#vardefine:last_weapon|{{#var:this_weapon}}}}{{#vardefine:last_weapon_slot|{{#var:this_weapon_slot}}}}<!-- | ||
− | --> | + | -->{{borderless|{{#sub:{{{3|}}}|5}}|25|link={{{1}}}}} [[{{{1}}}|{{{2|}}}]]</span> {{#if: {{{19|}}}|<small>{{#ifeq:{{{19|}}}|None|(без оружия в левой руке)|(с [[{{{13|}}}|{{#switch:{{lc:{{{19|}}}}}|dagger=кинжалом|pistol=пистолетом|#default={{{19|}}}}}]] в левой руке)}}</small>}}<!-- |
-->{{#ifeq: {{#ifeq: {{{7|}}}|Weapon|false|{{#var:showUnderwater}}}}|true|<span style="float:right">{{#switch:{{{21|}}}|N|Land only=[[File:Not available underwater.png|20px|link=Underwater mode#Подводные умения|Недоступно под водой]]|Underwater only=[[File:Underwater.png|link=Underwater mode#Подводные умения|Подводное умение]]}}</span>}} | -->{{#ifeq: {{#ifeq: {{{7|}}}|Weapon|false|{{#var:showUnderwater}}}}|true|<span style="float:right">{{#switch:{{{21|}}}|N|Land only=[[File:Not available underwater.png|20px|link=Underwater mode#Подводные умения|Недоступно под водой]]|Underwater only=[[File:Underwater.png|link=Underwater mode#Подводные умения|Подводное умение]]}}</span>}} | ||
− | {{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#arraymap: | + | {{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#arraymap:{{#var:this_weapon}}|,|@@@|[[@@@|{{rus lang|weapon|@@@}}]]|, <nowiki/>}} | |
− | {{#ifeq: {{#var:showType}}|true|{{!}} {{#if: {{{8|}}} | {{#arraymap:{{{8}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|, | + | {{#ifeq: {{#var:showType }}|true|{{!}} {{#if: {{{8|}}} | {{#arraymap:{{{8 }}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|, <nowiki/>}} }} }} }} |
− | | style="text-align:center;" | {{#ifeq:{{{ | + | | style="text-align:center;" | {{#ifeq:{{{22}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}} |
− | | style="text-align:center;" | {{fraction|{{{11|}}}}} | + | | style="text-align:center;" data-sort-value="{{{11|0}}}" | {{fraction|{{{11|}}}}} |
− | {{#ifeq: {{#var:showEnergy}}|true|{{!}} style="text-align:center;" {{!}} {{{14|}}} {{#ifeq: {{#var:showInitiative}}|true|{{!}}}}}} | + | {{#ifeq: {{#var:showEnergy}}|true|{{!}} style="text-align:center;" data-sort-value="{{{14|0}}}" {{!}} {{{14|}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}}}}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}} style="text-align:center;" data-sort-value="{{{13|0}}}" {{!}} {{{13|}}} }} |
− | + | | style="text-align:center;" data-sort-value="{{{12|0}}}" | {{fraction|{{{12|}}} }} | |
− | |||
− | |||
| {{{4|}}} | | {{{4|}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Строка 91: | Строка 86: | ||
# Is for attunement | # Is for attunement | ||
# Is usable underwater | # Is usable underwater | ||
− | |||
− | |||
# Is ground targeted | # Is ground targeted | ||
[[Category:Skill formatting templates]] | [[Category:Skill formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] |