Шаблон:Effect infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- | + | <includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- |
− | -->{{infobox | + | -->{{infobox requires|{{{requires|{{{release|}}}}}} }}<!-- |
--><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | --><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | ||
− | |||
<div class="icon">{{#if: {{{icon|}}} | <div class="icon">{{#if: {{{icon|}}} | ||
| [[Has game icon::File:{{{icon}}}|40px]] | | [[Has game icon::File:{{{icon}}}|40px]] | ||
Строка 24: | Строка 23: | ||
| control effect = [[Control effect|Эффект контроля]] | | control effect = [[Control effect|Эффект контроля]] | ||
| promo = Рекламный эффект | | promo = Рекламный эффект | ||
− | | | + | | transformation = [[Transformation|Преобразование]] |
− | |||
− | |||
− | |||
| mistlock instability = [[Mistlock Instability|Неустойчивость Закрепления Туманов]] | | mistlock instability = [[Mistlock Instability|Неустойчивость Закрепления Туманов]] | ||
| costume | | costume | ||
Строка 56: | Строка 52: | ||
}} | }} | ||
</div> | </div> | ||
− | {{clear}}{{#set:Has context=Effect}} | + | {{#if: {{{gallery1|}}} | |
+ | |||
+ | {{{!}} style="width:100%" | ||
+ | ! style="text-align:left;" {{!}} Внешний вид | ||
+ | {{!}}- style="text-align:center;" | ||
+ | {{!}} [[File:{{{gallery1}}}|220x200px|frameless]]<p style="font-size:0.9em;">{{{gallery1-text|Щелкните для увеличения}}}</p> | ||
+ | {{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x200px|frameless]]<p style="font-size:0.9em;">{{{gallery2-text|Щелкните для увеличения}}}</p> }} | ||
+ | {{!}}} | ||
+ | |||
+ | | {{clear}} }}{{#set:Has context=Effect}} | ||
</div>{{#if:{{{description|}}}| | </div>{{#if:{{{description|}}}| | ||
− | {{Quotation| | + | {{Quotation|In-game description| |
− | {{{description|'' | + | {{{description|''No description available.''}}}{{#set:Has game description={{#dplreplace:{{{description|}}}|\[\[Category:Text errors\]\]}}}}}} |
}}<!-- | }}<!-- | ||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
Строка 66: | Строка 71: | ||
{{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | ||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
− | + | {{#if: {{ifimage|{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}|+}} | |
+ | | <!-- exists --> | ||
+ | | <!-- does not exist -->{{#ifeq: {{{type|}}} | achievement | <!-- uses generic icon --> | [[Category:Effects missing icon]] }} | ||
+ | }} | ||
{{#if: {{{name}}} | <!-- name is undefined or non-empty --> | [[Category:Unnamed effects]] }} | {{#if: {{{name}}} | <!-- name is undefined or non-empty --> | [[Category:Unnamed effects]] }} | ||
{{#switch: {{{type|}}} | {{#switch: {{{type|}}} | ||
Строка 77: | Строка 85: | ||
| control effect = [[Category:Control effects]] | | control effect = [[Category:Control effects]] | ||
| promo = [[Category:Promotional effects]] | | promo = [[Category:Promotional effects]] | ||
− | |||
− | |||
− | |||
− | |||
| mistlock instability = [[Category:Mistlock Instabilities]] | | mistlock instability = [[Category:Mistlock Instabilities]] | ||
| costume | | costume | ||
Строка 87: | Строка 91: | ||
| dragon ball = [[Category:Dragon Ball effects]] | | dragon ball = [[Category:Dragon Ball effects]] | ||
| #default = [[Category:Effects]]}} | | #default = [[Category:Effects]]}} | ||
− | }}<noinclude> | + | }}</includeonly><noinclude> |
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
Строка 97: | Строка 101: | ||
| stacking = | | stacking = | ||
| id = | | id = | ||
− | | | + | | requires = |
| status = | | status = | ||
}}</pre> | }}</pre> | ||
Строка 116: | Строка 120: | ||
::''control effect'': Control effects. | ::''control effect'': Control effects. | ||
::''promo'': Effects active during special events. | ::''promo'': Effects active during special events. | ||
− | |||
::''mistlock instability'': [[Mistlock Instability]] | ::''mistlock instability'': [[Mistlock Instability]] | ||
::''costume brawl'': [[Costume Brawl]] | ::''costume brawl'': [[Costume Brawl]] | ||
Строка 132: | Строка 135: | ||
;id | ;id | ||
: Optional. The effect's internal ID. Generates a [[Chat link format|game link]] in the infobox. | : Optional. The effect's internal ID. Generates a [[Chat link format|game link]] in the infobox. | ||
+ | ;gallery1 | ||
+ | ;gallery2 | ||
+ | :If specified, adds an image to the infobox. | ||
; categorize | ; 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. | : 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. | ||
Строка 140: | Строка 146: | ||
; status date | ; status date | ||
: Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format). | : Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format). | ||
− | ; | + | ; requires |
− | : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox | + | : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options. |
=== Examples === | === Examples === |
Версия 17:37, 14 мая 2019
Syntax
{{Effect infobox | name = | icon = | description = | type = | stacking = | id = | requires = | 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.
- 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.
- gallery1
- gallery2
- If specified, adds an image to 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).
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} 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.
— Внутриигровое описание