Шаблон:Recharge table — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Новая страница: «<includeonly>{{#vardefine:class|{{{class| {{#show: {{PAGENAME}} |?Is for profession|limit=1|link=none|searchlabel=}}}}}}}{{#switch: {{lc:{{{header|}}}}} | n | n…») |
Blood (обсуждение | вклад) |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | <includeonly>{{#vardefine: | + | <includeonly>{{#if: {{{1|}}}{{{attunement|}}} | {{#if: <!-- hide white space --> |
− | + | ||
− | + | <!-- table id --> | |
− | + | {{increment|table_id}} | |
− | + | ||
− | + | <!-- define profession --> | |
− | }} | + | {{#vardefine:profession|{{{profession|{{#show: {{PAGENAME}}|?Is for profession|limit=1|link=none|searchlabel=|default=+}}}}}}} |
− | + | ||
− | -- | + | <!-- clear variables --> |
+ | {{#vardefine:this_skill|}}{{#vardefine:last_skill|}} | ||
+ | {{#vardefine:this_context|}}{{#vardefine:last_context|}} | ||
+ | {{#vardefine:this_recharge|}}{{#vardefine:last_recharge|}} | ||
+ | |||
+ | <!-- empty query results checker: adding "+" in result format, otherwise all queries have been empty --> | ||
+ | {{#vardefine:smw_results|}} | ||
+ | |||
+ | }}<nowiki/> | ||
+ | {{{!}} {{STDT|{{lc:{{#var:profession}}}}}} | ||
+ | ! style="width: 5em" {{!}} | ||
+ | ! style="min-width: 10em" {{!}} Умение | ||
+ | ! colspan="3" style="border-left-style:none;" {{!}} Перезарядка с чертой | ||
{{!}}- | {{!}}- | ||
− | {{ | + | {{#arraymap: {{#if: {{{attunement|}}} | Attunement | Weapon, Bundle, Bundle Type, Transform, Profession mechanic, Slot }}|,|@@@|<!-- |
− | {{ | + | -->{{#ask: |
− | {{ | + | [[Is for profession::{{#var:profession}}]] |
− | {{ | + | {{#ifeq: {{lc:{{{type|}}}}} | count recharge | [[-Is for skill.Has fact::Count Recharge]] | [[:+]] [[Has recharge time::+]] }} |
− | {{ | + | {{#switch: @@@ |
− | {{ | + | | Attunement = [[Has skill context::Weapon]] [[Is for attunement::{{{attunement|}}} Attunement]] |
− | + | | Weapon = {{#if: {{{weapon slot|}}} | |
− | + | | [[Has skill slot number::{{{weapon slot|}}}]] [[Is for weapon::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] <!-- query depth limit --> | |
− | --> | + | | [[Has skill context::Weapon]] [[Is for weapon::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] |
− | {{ | + | }} |
− | + | | Bundle = [[Has skill context::Bundle]] [[Is for bundle::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] | |
− | {{# | + | | Bundle Type = [[Has skill context::Bundle]] [[Has skill type::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] |
− | + | | Transform = [[Has skill context::Transform]] [[Has parent skill::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] | |
− | + | | Profession mechanic = [[Has skill context::Profession mechanic]] [[{{{skill type query|Has skill type}}}::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] | |
− | + | | Slot = [[Has skill context::Healing{{!!}}Utility{{!!}}Elite{{!!}}Trait]] [[{{{skill type query|Has skill type}}}::{{#arraymap: {{{1|}}}|,|@@@|{{ucfirst:@@@}}|{{!!}}}}]] | |
− | {{!}} | + | }} |
− | + | [[Is historical::N]] | |
− | + | {{{query|}}} | |
− | {{ | + | {{#if: {{{game mode|}}} | [[Is for game mode::Default || {{#switch: {{lc:{{{game mode}}}}} | pve = PvE | pvp = PvP | wvw = WvW}}]] }} |
− | {{ | + | | {{#switch: @@@ | Attunement | Weapon = ?Is for weapon | Bundle | Bundle Type = ?Is for bundle | Transform = ?Has parent skill | Profession mechanic | Slot = ?Has skill context}} |
− | {{ | + | | ?Has recharge time |
− | {{ | + | | ?Is for game mode |
− | {{ | + | | ?Has skill type |
− | + | | link = none | |
− | + | | format = template | |
− | + | | template = Recharge table result format{{#ifeq: {{lc:{{{type|}}}}}|count recharge|/Count recharge}}{{!}}profession={{{profession|}}}{{!}}hide count recharge skills={{{hide count recharge skills|false}}} | |
− | + | | userparam = {{{recharge|20}}} | |
− | | | + | | limit = {{{limit|250}}} |
− | | | + | | sort = {{#switch: @@@ |
− | + | | Attunement | |
− | + | | Weapon = Has profession sort order, <!-- no specialization! --> Has weapon type sort order, Has skill slot number, Has skill sort order, Has chain sequence position, Has recharge time, Is for game mode | |
− | }}</includeonly><noinclude> | + | | Bundle | Bundle Type = Has profession sort order, Has specialization sort order, Has weapon type sort order, Has skill slot number, Has skill sort order, Has chain sequence position, Has recharge time, Is for game mode |
+ | | Transform = Has profession sort order, Has specialization sort order, Has skill slot number, Has skill sort order, Has chain sequence position, Has recharge time, Is for game mode | ||
+ | | Profession mechanic = Has profession sort order, Has specialization sort order, Has skill slot sort order, Has skill sort order, Has chain sequence position, Has recharge time, Is for game mode | ||
+ | | Slot = Has profession sort order, Has specialization sort order, Has skill context sort order, Has skill sort order, Has chain sequence position, Has recharge time, Is for game mode | ||
+ | }} | ||
+ | | default = | ||
+ | }} | ||
+ | |\n}} | ||
+ | {{!}}} }}{{#if: {{#var:smw_results}}{{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}}</includeonly><noinclude> | ||
+ | == Description == | ||
+ | This template creates tables displaying the recharge and the traited reduced recharge of the skills affected by the trait. Setting type to "count recharge" displays count recharge values instead. | ||
+ | |||
+ | Format using {{tl|Recharge table result format}} and {{tl|Recharge table result format/Count recharge}} for count recharge tables. | ||
+ | |||
== Usage == | == Usage == | ||
− | + | <pre>{{Recharge table|<List of weapon types>}} | |
− | + | {{Recharge table|<List of weapon types>|recharge=<0..100>}} | |
− | + | {{Recharge table|attunement=<Attunement>}} | |
− | + | {{Recharge table|<Skill type>}} | |
− | + | {{Recharge table|<Skill type>|recharge=<0..100>}}</pre> | |
− | |||
− | <pre> | ||
− | {{Recharge table|< | ||
− | {{Recharge table|< | ||
− | {{Recharge table|attunement=<Attunement | ||
− | {{Recharge table|<Skill>}} | ||
− | {{Recharge table|<Skill>| | ||
− | </pre> | ||
− | == Parameters == | + | === Parameters === |
− | ; | + | ;1 ''(unnamed parameter)'' |
− | : Query term. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. Either weapon or skill type. | + | : Required. Query term. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. Either list of weapon types, separated by "," or skill type. |
− | ; | + | ;profession |
− | : | + | : Optional. Profession. Defaults to ''Is for profession'' of the current <code><nowiki>{{PAGENAME}}</nowiki></code>. |
;attunement | ;attunement | ||
− | : Elementalist attunement, either ''Fire, Water, Air, Earth''. | + | : Optional. Elementalist attunement, either ''Fire, Water, Air, Earth''. |
− | ; | + | ;recharge |
− | : | + | : Optional. Recharge. Defaults to 20. |
− | ; | + | ;type |
− | : | + | : Optional. Set to "count recharge" to ask for count recharge instead. |
− | ; | + | ;hide count recharge skills |
− | : | + | : Optional. Can be set to "true" (default "false") in order to hide skills from the normal recharge reduction table that are affected by count recharge reduction only. |
− | ; | + | ;game mode |
− | : | + | : Optional. Can be set to one of "pve, pvp, wvw" to display the recharge reduction table for that mode. |
+ | ;weapon slot | ||
+ | : Optional. Restrict weapon slots by "< N" (smaller equal), "<< N" (smaller), "> N" (greater equal), ">> N" (greater) or by an exact number. | ||
+ | ;query | ||
+ | : Optional. Additional query. | ||
+ | ;skill type query | ||
+ | : Optioanl. Skill type property, allows to query for ''Has skill type sort order'' instead of ''Has skill type''. | ||
− | == Example == | + | === Example === |
− | <pre> | + | ==== Recharge ==== |
− | {{Recharge table|attunement=Air}} | + | <pre>{{Recharge table|attunement=Air|profession=Elementalist}}</pre> |
− | </pre> | + | {{Recharge table|attunement=Air|profession=Elementalist}} |
− | {{Recharge table|attunement=Air}} | ||
− | <pre> | + | <pre>{{Recharge table|Shield|profession=Warrior}}</pre> |
− | {{Recharge table|Shield| | + | {{Recharge table|Shield|profession=Warrior}} |
− | </pre> | ||
− | {{Recharge table|Shield| | ||
− | <pre> | + | <pre>{{Recharge table|Axe, Focus|profession=Necromancer}}</pre> |
− | {{Recharge table|Axe| | + | {{Recharge table|Axe, Focus|profession=Necromancer}} |
− | </pre> | ||
− | {{Recharge table|Axe| | ||
− | <pre> | + | <pre>{{Recharge table|Virtue|profession=Guardian}}</pre> |
− | {{Recharge table| | + | {{Recharge table|Virtue|profession=Guardian}} |
− | |||
− | </pre> | ||
− | {{Recharge table| | ||
− | |||
− | <pre> | + | <pre>{{Recharge table|Elixir|profession=Engineer}}</pre> |
− | {{Recharge table| | + | {{Recharge table|Elixir|profession=Engineer}} |
− | </pre> | ||
− | {{Recharge table| | ||
− | <pre> | + | ==== Count Recharge ==== |
− | {{Recharge table| | + | <pre>{{Recharge table|Arcane|profession=Elementalist|type=count recharge}}</pre> |
− | </pre> | + | {{Recharge table|Arcane|profession=Elementalist|type=count recharge}} |
− | {{Recharge table| | ||
− | + | [[Category:Skill formatting templates]]</noinclude> | |
− | |||
− | </ | ||
− |
Текущая версия на 07:59, 8 марта 2023
Description[править]
This template creates tables displaying the recharge and the traited reduced recharge of the skills affected by the trait. Setting type to "count recharge" displays count recharge values instead.
Format using {{Recharge table result format}} and {{Recharge table result format/Count recharge}} for count recharge tables.
Usage[править]
{{Recharge table|<List of weapon types>}} {{Recharge table|<List of weapon types>|recharge=<0..100>}} {{Recharge table|attunement=<Attunement>}} {{Recharge table|<Skill type>}} {{Recharge table|<Skill type>|recharge=<0..100>}}
Parameters[править]
- 1 (unnamed parameter)
- Required. Query term. Defaults to
{{PAGENAME}}
. Either list of weapon types, separated by "," or skill type. - profession
- Optional. Profession. Defaults to Is for profession of the current
{{PAGENAME}}
. - attunement
- Optional. Elementalist attunement, either Fire, Water, Air, Earth.
- recharge
- Optional. Recharge. Defaults to 20.
- type
- Optional. Set to "count recharge" to ask for count recharge instead.
- hide count recharge skills
- Optional. Can be set to "true" (default "false") in order to hide skills from the normal recharge reduction table that are affected by count recharge reduction only.
- game mode
- Optional. Can be set to one of "pve, pvp, wvw" to display the recharge reduction table for that mode.
- weapon slot
- Optional. Restrict weapon slots by "< N" (smaller equal), "<< N" (smaller), "> N" (greater equal), ">> N" (greater) or by an exact number.
- query
- Optional. Additional query.
- skill type query
- Optioanl. Skill type property, allows to query for Has skill type sort order instead of Has skill type.
Example[править]
Recharge[править]
{{Recharge table|attunement=Air|profession=Elementalist}}
Умение | Перезарядка с чертой | |||
---|---|---|---|---|
Кинжал | Convergence | 8 | → | 6.4 |
Shocking Aura (PvE) | 10 | → | 8 | |
Shocking Aura (WvW, PvP) | 25 | → | 20 | |
Transmute Lightning (WvW, PvP) | 3 | → | 2.4 | |
Transmute Lightning (PvE) | 10 | → | 8 | |
Ride the Lightning (PvE) | 20 | → | 16 | |
Ride the Lightning (WvW, PvP) | 25 | → | 20 | |
Updraft (PvE) | 20 | → | 16 | |
Updraft (WvW, PvP) | 30 | → | 24 | |
Скипетр | Lightning Strike | 5 | → | 4 |
Blinding Flash (PvE) | 0.5 | → | 0.4 | |
Blinding Flash (WvW, PvP) | 15 | → | 12 | |
Меч | Polaric Leap (WvW, PvP) | 12 | → | 9.6 |
Polaric Leap (PvE) | 15 | → | 12 | |
Quantum Strike | 16 | → | 12.8 | |
Фокус | Swirling Winds | 30 | → | 24 |
Gale | 40 | → | 32 | |
Боевой рог | Cyclone | 25 | → | 20 |
Lightning Orb | 25 | → | 20 | |
Молот | Hurricane of Pain | 10 | → | 8 |
Crescent Wind | 18 | → | 14.4 | |
Wind Storm | 20 | → | 16 | |
Shock Blast | 25 | → | 20 | |
Посох | Lightning Surge (WvW, PvP) | 6 | → | 4.8 |
Lightning Surge (PvE) | 10 | → | 8 | |
Gust | 25 | → | 20 | |
Windborne Speed | 20 | → | 16 | |
Static Field | 30 | → | 24 | |
Трезубец | Electrocute | 8 | → | 6.4 |
Air Pocket | 12 | → | 9.6 | |
Air Bubble (PvE) | 20 | → | 16 | |
Air Bubble (WvW, PvP) | 25 | → | 20 | |
Lightning Cage | 30 | → | 24 |
{{Recharge table|Shield|profession=Warrior}}
Умение | Перезарядка с чертой |
---|
{{Recharge table|Axe, Focus|profession=Necromancer}}
Умение | Перезарядка с чертой | |||
---|---|---|---|---|
Топор | Ghastly Claws | 8 | → | 6.4 |
Unholy Feast | 12 | → | 9.6 | |
Фокус | Soul Grasp | 3 | → | 2.4 |
Spinal Shivers (PvE) | 16 | → | 12.8 | |
Spinal Shivers (WvW, PvP) | 20 | → | 16
| |
Черта | Lesser Spinal Shivers | 20 | → | 16 |
{{Recharge table|Virtue|profession=Guardian}}
Умение | Перезарядка с чертой | |||
---|---|---|---|---|
Механика профессии | Virtue of Justice | 20 | → | 16 |
Virtue of Resolve | 30 | → | 24 | |
Virtue of Courage | 45 | → | 36 | |
Spear of Justice | 20 | → | 16 | |
Wings of Resolve | 25 | → | 20 | |
Shield of Courage | 45 | → | 36 | |
Rushing Justice (PvE) | 12 | → | 9.6 | |
Rushing Justice (PvP, WvW) | 18 | → | 14.4 | |
Crashing Courage | 30 | → | 24 |
{{Recharge table|Elixir|profession=Engineer}}
Умение | Перезарядка с чертой | |||
---|---|---|---|---|
Пояс с инструментами | Toss Elixir H | 20 | → | 16 |
Toss Elixir X | 60 | → | 48 | |
Toss Elixir X | 60 | → | 48 | |
Healing Mist | 28 | → | 22.4 | |
Toss Elixir B | 20 | → | 16 | |
Toss Elixir C | 16 | → | 12.8 | |
Toss Elixir S | 45 | → | 36 | |
Toss Elixir U | 25 | → | 20 | |
Toss Elixir U | 32 | → | 25.6
| |
Исцеляющие | Elixir H | 20 | → | 16 |
Вспомогательные | Elixir B | 20 | → | 16 |
Elixir C | 20 | → | 16 | |
Elixir R | 24 | → | 19.2 | |
Elixir S | 60 | → | 48 | |
Elixir U | 32 | → | 25.6 | |
Элитные | Elixir X | 85 | → | 68 |
Elixir X | 85 | → | 68 | |
Черта | Elixir E (PvE) | 40 | → | 32 |
Elixir E (WvW) | 60 | → | 48 | |
Elixir E (PvP) | 100 | → | 80 | |
Lesser Elixir B | 24 | → | 19.2 | |
Lesser Elixir C (PvE, WvW) | 60 | → | 48 | |
Lesser Elixir C (PvP) | 80 | → | 64 |
Count Recharge[править]
{{Recharge table|Arcane|profession=Elementalist|type=count recharge}}
Умение | Перезарядка с чертой | |||
---|---|---|---|---|
Вспомогательные | Arcane Blast | 20 | → | 16 |
Arcane Wave (PvE) | 25 | → | 20
| |
Arcane Wave (WvW, PvP) | 30 | → | 24 |