Шаблон:Effect infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status|}}}|{{{status notes|}}}}}<!-- | + | {{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- |
-->{{infobox release|{{{release|}}} }}<!-- | -->{{infobox release|{{{release|}}} }}<!-- | ||
--><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | --><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | ||
Строка 13: | Строка 13: | ||
}} | }} | ||
}}</div> | }}</div> | ||
− | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | + | <p class="heading">[[Has canonical name::{{#if:{{{name}}}|{{{name|{{#titleparts:{{PAGENAME}}}}}}}|(unnamed effect)}}]]</p> |
<div class="wrapper"> | <div class="wrapper"> | ||
; Тип эффекта | ; Тип эффекта | ||
Строка 52: | Строка 52: | ||
| #default = Нет | | #default = Нет | ||
}}{{#if:{{{id|}}}| | }}{{#if:{{{id|}}}| | ||
− | ; | + | ; Game link |
− | : | + | : {{#arraymap:{{{id}}}|,|@@@|{{#set:Has game id=@@@}}{{skill link|@@@}}|<br>}} |
+ | }} | ||
</div> | </div> | ||
{{clear}}{{#set:Has context=Effect}} | {{clear}}{{#set:Has context=Effect}} | ||
Строка 66: | Строка 67: | ||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
{{#ifexist: File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}} | | {{#ifeq: {{{type|}}} | achievement || [[Category:Effects missing icon]] }} }} | {{#ifexist: File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}} | | {{#ifeq: {{{type|}}} | achievement || [[Category:Effects missing icon]] }} }} | ||
+ | {{#if: {{{name}}} | <!-- name is undefined or non-empty --> | [[Category:Unnamed effects]] }} | ||
{{#switch: {{{type|}}} | {{#switch: {{{type|}}} | ||
| achievement = [[Category:Achievement effects]] | | achievement = [[Category:Achievement effects]] | ||
Строка 88: | Строка 90: | ||
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
− | {{ | + | {{Effect infobox |
| name = | | name = | ||
+ | | icon = | ||
| description = | | description = | ||
− | |||
| type = | | type = | ||
| stacking = | | stacking = | ||
| id = | | id = | ||
+ | | release = | ||
+ | | status = | ||
}}</pre> | }}</pre> | ||
== Parameters == | == Parameters == | ||
; name | ; name | ||
− | : Optional. The name of the effect. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | + | : Optional. The name of the effect. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>; displays <code>(unnamed effect)</code> if included but left blank. |
; description | ; description | ||
: Optional. The in-game description of the effect. | : Optional. The in-game description of the effect. | ||
Строка 112: | Строка 116: | ||
::''control effect'': Control effects. | ::''control effect'': Control effects. | ||
::''promo'': Effects active during special events. | ::''promo'': Effects active during special events. | ||
− | ::''world ability'': World versus World effects available from any | + | ::''world ability'': World versus World effects available from any World Ability. |
::''mistlock instability'': [[Mistlock Instability]] | ::''mistlock instability'': [[Mistlock Instability]] | ||
::''costume brawl'': [[Costume Brawl]] | ::''costume brawl'': [[Costume Brawl]] | ||
Строка 134: | Строка 138: | ||
; status notes | ; status notes | ||
: Optional. Allows provision of additional reason for the given status. | : Optional. Allows provision of additional reason for the given status. | ||
+ | ; status date | ||
+ | : Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format). | ||
; release | ; release | ||
: Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options. | : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options. | ||
Строка 139: | Строка 145: | ||
=== Examples === | === Examples === | ||
<pre> | <pre> | ||
− | {{ | + | {{Effect infobox |
| name = Bleeding | | name = Bleeding | ||
− | | description= You take damage over time. | + | | description = You take damage over time. |
| type = condition | | type = condition | ||
| stacking = intensity | | stacking = intensity | ||
Строка 147: | Строка 153: | ||
</pre> | </pre> | ||
− | {{ | + | {{Effect infobox |
| name = Bleeding | | name = Bleeding | ||
− | | description= You take damage over time. | + | | icon = Bleeding.png |
+ | | description = You take damage over time. | ||
| type = condition | | type = condition | ||
| stacking = intensity | | stacking = intensity | ||
Строка 172: | Строка 179: | ||
}} | }} | ||
+ | <pre> | ||
+ | {{Effect infobox | ||
+ | | name = Qualify for All the Essences | ||
+ | | description = Collect all the crystal essences outside of Glint's Lair. | ||
+ | | type = achievement | ||
+ | | story = Crystalline Memories | ||
+ | | stacking = no | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | {{Effect infobox | ||
+ | | name = Qualify for All the Essences | ||
+ | | description = Collect all the crystal essences outside of Glint's Lair. | ||
+ | | type = achievement | ||
+ | | story = Crystalline Memories | ||
+ | | stacking = no | ||
+ | }} | ||
[[Category:Infobox templates|Effect]] | [[Category:Infobox templates|Effect]] | ||
</noinclude> | </noinclude> |
Версия 18:04, 2 августа 2018
Syntax
{{Effect infobox | name = | icon = | description = | type = | stacking = | id = | release = | status = }}
Parameters
- name
- Optional. The name of the effect. Defaults to
{{PAGENAME}}
; displays(unnamed effect)
if included but left blank. - description
- Optional. The in-game description of the effect.
- icon
- Optional. Effect icon. Defaults to {{PAGENAME}}.png
- type
- Required. The type of effect. Defaults to "Effect".
- achievement: Story achievement effects.
- aura: Auras.
- boon: Boons.
- condition: Conditions.
- control effect: Control effects.
- promo: Effects active during special events.
- world ability: World versus World effects available from any World Ability.
- mistlock instability: Mistlock Instability
- costume brawl: Costume Brawl
- effect: Any other type of effect.
- story
- Optional. For story achievement effects, specify the story instance this achievement is applied in.
- applied-by
- Optional. Creates a link to the skill or trait that applies this effect.
- stacking
- Required. The behavior of effect stacking.
- intensity - The effect stacks in intensity.
- duration - The effect stacks in duration.
- charge - The effect has a fixed number of stacks that decrease upon some condition.
- no - The effect does not stack, the previous duration must wear off before it can be re-applied.
- id
- Optional. The effect's internal ID. Generates a game link in the infobox.
- categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- status
- Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
- status notes
- Optional. Allows provision of additional reason for the given status.
- status date
- Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
- release
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox release}} for options.
Examples
{{Effect infobox | name = Bleeding | description = You take damage over time. | type = condition | stacking = intensity }}
“You take damage over time.
— Внутриигровое описание
{{Effect infobox | name = Renewed Focus | icon = Renewed Focus.png | description = Immune to conditions and damage. | applied-by = Renewed Focus | stacking = no }}
“Immune to conditions and damage.
— Внутриигровое описание
{{Effect infobox | name = Qualify for All the Essences | description = Collect all the crystal essences outside of Glint's Lair. | type = achievement | story = Crystalline Memories | stacking = no }}
Qualify for All the Essences
- Тип эффекта
- Эффект достижения
- Глава истории
- Инстанс
- Crystalline Memories
- Складывается
- Нет
“Collect all the crystal essences outside of Glint's Lair.
— Внутриигровое описание