Шаблон:Effect infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status| | + | {{infobox status|{{{status|}}}|{{{status notes|}}}}}<!-- |
+ | -->{{infobox release|{{{release|}}} }}<!-- | ||
--><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | --><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | ||
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | ||
− | <div class="icon">{{#if: {{{icon|}}} | [[Has game icon::File:{{{icon}}}|40px]] | {{# | + | <div class="icon">{{#if: {{{icon|}}} |
+ | | [[Has game icon::File:{{{icon}}}|40px]] | ||
+ | | {{#if: {{ifimage|{{#titleparts:{{PAGENAME}}}}.png|+}} | ||
+ | | [[Has game icon::File:{{#titleparts:{{PAGENAME}}}}.png|40px]] | ||
+ | | {{#ifeq: {{{type|}}} | achievement | ||
+ | | [[Has game icon::File:Achievement effect.png|40px]] | ||
+ | | [[Has game icon::File:Skill.png|40px|link=File:{{PAGENAME}}.png]] | ||
+ | }} | ||
+ | }} | ||
+ | }}</div> | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
− | ;Тип эффекта | + | ; Тип эффекта |
: {{#switch: {{{type|}}} | : {{#switch: {{{type|}}} | ||
| achievement = Эффект [[achievement|достижения]] | | achievement = Эффект [[achievement|достижения]] | ||
Строка 28: | Строка 38: | ||
: {{#ask: [[-Belongs to story chapter::{{{story}}}]]}} | : {{#ask: [[-Belongs to story chapter::{{{story}}}]]}} | ||
; Инстанс | ; Инстанс | ||
− | : [[{{{story}}}]] }} | + | : [[{{{story}}}]] }}{{#if: {{{applied-by|}}} | |
+ | ; Накладывает | ||
+ | : {{#arraymap:{{{applied-by}}}|,|@@@|{{#switch:{{lc:{{#show:@@@|?Has context}}}}|trait={{trait icon|@@@}}|skill={{skill icon|@@@}}}}|,<br />}} }} | ||
; [[Effect stacking|Складывается]] | ; [[Effect stacking|Складывается]] | ||
: {{#switch: {{lc:{{{stacking}}}}} | : {{#switch: {{lc:{{{stacking}}}}} | ||
Строка 39: | Строка 51: | ||
| none | | none | ||
| #default = Нет | | #default = Нет | ||
− | }} | + | }}{{#if:{{{id|}}}| |
− | {{#if:{{{id|}}}| | ||
; Игр. ссылка | ; Игр. ссылка | ||
: {{skill link|{{#explode:{{{id}}}|,|0}}}} {{#arraymap:{{{id}}}|,|@@@|{{#set:Has game id=@@@}}|}}}} | : {{skill link|{{#explode:{{{id}}}|,|0}}}} {{#arraymap:{{{id}}}|,|@@@|{{#set:Has game id=@@@}}|}}}} | ||
Строка 53: | Строка 64: | ||
{{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | ||
{{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | ||
− | |||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
+ | {{#ifexist: File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}} | | {{#ifeq: {{{type|}}} | achievement || [[Category:Effects missing icon]] }} }} | ||
{{#switch: {{{type|}}} | {{#switch: {{{type|}}} | ||
| achievement = [[Category:Achievement effects]] | | achievement = [[Category:Achievement effects]] | ||
Строка 83: | Строка 94: | ||
| type = | | type = | ||
| stacking = | | stacking = | ||
+ | | id = | ||
}}</pre> | }}</pre> | ||
− | + | ||
+ | == 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>. | ||
Строка 105: | Строка 118: | ||
; story | ; story | ||
: Optional. For story achievement effects, specify the story instance this achievement is applied in. | : 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 | ; stacking | ||
: Required. The behavior of [[effect stacking]]. | : Required. The behavior of [[effect stacking]]. | ||
Строка 117: | Строка 132: | ||
; status | ; status | ||
: Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). | : Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). | ||
− | ; | + | ; status notes |
− | : Optional. | + | : Optional. Allows provision of additional reason for the given status. |
+ | ; 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. | ||
=== Examples === | === Examples === | ||
Строка 142: | Строка 159: | ||
| icon = Renewed Focus.png | | icon = Renewed Focus.png | ||
| description = Immune to conditions and damage. | | description = Immune to conditions and damage. | ||
+ | | applied-by = Renewed Focus | ||
| stacking = no | | stacking = no | ||
}} | }} | ||
Строка 150: | Строка 168: | ||
| icon = Renewed Focus.png | | icon = Renewed Focus.png | ||
| description = Immune to conditions and damage. | | description = Immune to conditions and damage. | ||
+ | | applied-by = Renewed Focus | ||
| stacking = no | | stacking = no | ||
}} | }} |
Версия 21:48, 28 ноября 2017
Syntax
{{effect infobox | name = | description = | icon = | type = | stacking = | id = }}
Parameters
- name
- Optional. The name of the effect. Defaults to
{{PAGENAME}}
. - 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.
- 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.
— Внутриигровое описание