Текущая версия |
Ваш текст |
Строка 1: |
Строка 1: |
− | <includeonly>{{#ifeq: {{#var: weapon skill table}}|true|{{#vardefine:this_profession|{{#if:{{{5|}}}|{{{5}}}|Common}}}}{{#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|}}}}}<!-- | + | <includeonly>|- class="{{lc:{{{5|}}}}} {{{class|}}}" |
− | -->{{#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}}}}<!--
| + | | style="text-align:center;" | {{{7|}}} |
− | | + | | {{#ifeq: {{{userparam|}}} | chain | <span style="display:none">{{#show: {{{1}}} | ?Has chain sequence | default = {{{1}}} }} chain</span> }}<span style="vertical-align:middle;">{{#switch: {{{userparam|}}} |
− | Profession subheader
| + | | chain = [[File:Redirect Arrow.png|25px|link=]] |
− | | + | | toolbelt = [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]] |
− | -->{{#ifeq: {{#var:showProfessionSubheader|false}}|true
| |
− | | {{#ifeq: {{#var:this_profession}}{{#var:this_specialization}}|{{#var:last_profession}}{{#var:last_specialization}}|<!-- same profession+specialization, do nothing -->
| |
− | | {{#vardefine:last_profession|{{#var:this_profession}}}}{{#vardefine:last_specialization|{{#var:this_specialization}}}}{{#vardefine:last_weapon|<!-- new profession section, reset weapon -->}}
| |
− | {{!}}- class="{{lc:{{{5|}}}}}"
| |
− | ! colspan="7" {{!}} {{#tag: {{#var:profession heading|h4}}|{{#ifeq: {{#var:this_specialization}}|| {{ {{#var:this_profession}} }} [[{{#var:this_profession}}|{{rus lang|profession|{{#var:this_profession}}}}]] | {{ {{#var:this_specialization}} }} [[{{#var:this_specialization}}|{{rus lang|specialization|{{#var:this_specialization}}}}]] }} }}
| |
− | {{!}}-
| |
− | }}
| |
− | }}<!--
| |
− | | |
− | Weapon subheader
| |
− | | |
− | -->{{#ifeq: {{#var:showWeaponSubheader|false}}|true
| |
− | | {{#ifeq: {{#var:this_weapon}}|{{#var:last_weapon}}|<!-- same weapon, do nothing -->
| |
− | |<!-- #var:last_weapon needed below, updated there -->{{#vardefine:last_attunement|<!-- new weapon section, reset attunement -->}}
| |
− | {{!}}- class="{{lc:{{{5|}}}}}"
| |
− | ! colspan="7" {{!}} {{#tag: {{#ifeq: {{#var:weapon heading}} | plain | span | {{#var:weapon heading|h5}} }} | {{#arraymap:{{#var:this_weapon}}|,|@@@|[[@@@]]|,\s}} {{#ifeq: {{#var:showProfessionSubheader|false}}|true||{{#ifeq: {{{6|}}}|<!--empty-->||<small>(requires {{ {{{6|}}} }} [[{{{6|}}}]])</small>}} }} }}
| |
− | {{!}}-
| |
− | }}
| |
− | }}<!--
| |
− | | |
− | Attunement subheader
| |
− | | |
− | -->{{#ifeq: {{#var:showAttunementSubheader|false}}|true
| |
− | | {{#ifeq: {{#var:this_attunement}}|{{#var:do not show this attunement header}} Attunement|<!-- one attunement only skills, do not display this obivous attunement header -->
| |
− | | {{#ifeq: {{#var:this_attunement}}|{{#var:last_attunement}}|<!-- do nothing -->
| |
− | | {{#vardefine:last_attunement|{{#var:this_attunement}}}} {{#if:{{#var:this_attunement}} |
| |
− | {{!}}- class="{{lc:{{{5|}}}}}"
| |
− | {{!}} colspan="7" style="border-bottom-style:hidden;" {{!}} {{#arraymap: {{#var:this_attunement}}|,|@@@|{{borderless|@@@.png|20|@@@|link=@@@}}|}} {{#arraymap: {{#var:this_attunement}}|,|@@@|[[@@@|{{#replace:@@@|Attunement}}]]|\s+\s}} Attunement}}
| |
− | {{!}}-
| |
− | }}
| |
− | }}
| |
− | }}
| |
− | }}<!-- | |
− | | |
− | Weapon skill row
| |
− | | |
− | -->|- class="{{lc:{{{5|}}}}} {{{class|}}}"
| |
− | | style="text-align:center;" | {{#if: {{{18|}}}|F{{{18|}}}|{{{9|}}}}}
| |
− | | <span style="vertical-align:middle;">{{#switch: {{#if: {{{chain|}}}|{{lc:{{{chain|}}}}}|{{#ifeq: {{lc:{{{8|}}}}}|chain|<!-- ignore skill type "chain", determine it on chain position number -->|{{lc:{{{8|}}}}}}}}}
| |
− | | n | no | none =
| |
− | | chain = [[File:Redirect Arrow.png|25px|link=|Цепочка]] | |
− | | toolbelt | tool belt = [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]] | |
| | burst = [[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]] | | | burst = [[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]] |
− | | primalburst | primal burst = [[File:Chain Arrow Toolbelt.png|25px|link=Primal Burst|Первобытная ярость]] | + | | primalburst = [[File:Berserker.png|25px|link=Berserker|Берсерк]][[File:Chain Arrow Toolbelt.png|25px|link=Primal burst|Первобытная ярость]] |
− | | stealth | stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]] | + | | stealth = [[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|Засада]] |
− | | unleashed ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Unleashed Ambush|Засада освобожденного]] | + | | underwater = [[File:Underwater.png|link=Underwater mode|Подводный режим]] |
− | | other = [[File:Chain Arrow Toolbelt.png|25px|link=]]
| + | }}{{borderless|{{#sub:{{{3|}}}|5}}|25|link={{{1}}}}} [[{{{1}}}|{{{2|}}}]]</span> |
− | | #default = {{#if: {{#var:last_weapon}}{{#var:last_weapon_slot}}<!-- checking if empty due to #var caching bug -->
| + | {{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#if: {{{12|}}} | [[{{{12|}}}|{{rus lang|weapon|{{{12|}}}}}]] }} | |
− | | <!-- 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=|Цепочка]]}}}}
| + | {{#ifeq: {{#var:showType }}|true|{{!}} {{#if: {{{6|}}} | {{#arraymap:{{{6}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|, }} }} }} }} |
− | | <!-- 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}}}}<!--
| + | | style="text-align:center;" | {{#ifeq:{{{13}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}} |
− | --><span style="overflow: hidden; width: 25px; height: 25px; display:inline-block; vertical-align:middle;"><span style="margin: -4px; overflow: hidden; display: inline-block;">[[{{{3|}}}|33x33px|link={{{1}}}]]</span></span> [[{{{1}}}|{{{2|}}}]]</span> {{#if: {{{19|}}}|<small>{{#ifeq:{{{19|}}}|None|(без оружия в левой руке)|(с [[{{{19|}}}|{{#switch:{{lc:{{{19|}}}}}|dagger=кинжалом|pistol=пистолетом|#default={{{19|}}}}}]] в левой руке)}}</small>}}<!--
| + | | style="text-align:center;" data-sort-value="{{{8|0}}}" | {{fraction|{{{8|}}}}} |
− | -->{{#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:showEnergy}}|true|{{!}} style="text-align:center;" data-sort-value="{{{11|0}}}" {{!}} {{{11|}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}}}}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}} style="text-align:center;" data-sort-value="{{{10|0}}}" {{!}} {{{10|}}} }} |
− | {{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#arraymap:{{{15|}}},{{#if:{{{17|}}}|{{{17}}}|{{#if:{{{16|}}}|{{{16}}}}}}}|,|@@@|[[@@@|{{rus lang|weapon|@@@}}]]|,\s}} | | + | | style="text-align:center;" data-sort-value="{{{9|0}}}" | {{fraction|{{{9|}}} }} |
− | {{#ifeq: {{#var:showType}}|true|{{!}} {{#if: {{{8|}}} | {{#arraymap:{{{8}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|,\s}} }} }} }} | + | | style="padding-left:2em" | {{{4|}}} |
− | | style="text-align:center;" | {{#ifeq:{{{24}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}} | |
− | | style="text-align:center;" | {{fraction|{{{11|}}}}} | |
− | {{#ifeq: {{#var:showEnergy}}|true|{{!}} style="text-align:center;" {{!}} {{{14|}}} {{#ifeq: {{#var:showInitiative}}|true|{{!}}}}}}<!-- | |
− | -->{{#ifeq: {{#var:showInitiative}}|true|{{!}} style="text-align:center;" {{!}} {{{13|}}} }}<!--
| |
− | -->{{#ifeq: {{#var:showPageCost}}|true|{{!}} style="text-align:center;" {{!}} {{{23|}}} }}
| |
− | | style="text-align:center;" | {{fraction|{{{12|}}} }} | |
− | | {{{4|}}} | |
| </includeonly><noinclude> | | </includeonly><noinclude> |
− | Called as a semantic result template by [[Template:Weapon skill table row]] and [[Template:Weapon skill table]]. | + | Called as a semantic result template by [[Template:Weapon skill table row]]. |
| | | |
| === Input parameter list === | | === Input parameter list === |
− | # Skill | + | # PAGENAME |
| # Has canonical name | | # Has canonical name |
| # Has game icon | | # Has game icon |
| # Has game description | | # Has game description |
| # Is for profession | | # Is for profession |
− | # Is for specialization
| |
− | # Has skill context
| |
| # Has skill type | | # Has skill type |
| # Has skill slot number | | # Has skill slot number |
− | # Has chain sequence position
| |
| # Has activation time | | # Has activation time |
| # Has recharge time | | # Has recharge time |
Строка 85: |
Строка 33: |
| # Has energy cost | | # Has energy cost |
| # Is for weapon | | # Is for weapon |
− | # Is for bundle
| |
− | # Has parent skill
| |
− | # Has profession mechanic slot number
| |
− | # Requires offhand
| |
− | # Is for attunement
| |
− | # Is usable underwater
| |
− | # Has ammunition number
| |
− | # Has page cost
| |
| # Is ground targeted | | # Is ground targeted |
| + | ;Additional parameters |
| + | : userparam = <nowiki>{{{chain}}}</nowiki> |
| + | : <nowiki>{{{class}}}</nowiki> |
| | | |
| [[Category:Skill formatting templates]] | | [[Category:Skill formatting templates]] |
| [[Category:Semantic result templates]] | | [[Category:Semantic result templates]] |