Шаблон:Effect infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | <includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- | + | <includeonly>{{#set:Has context=Effect}}<!-- |
+ | -->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- | ||
-->{{infobox requires|{{{requires|}}} }}<!-- | -->{{infobox requires|{{{requires|}}} }}<!-- | ||
+ | -->{{#if: {{{split|}}}|{{Game mode version|{{{split}}}|type=effect}} }}<!-- | ||
-->{{wikipopup|{{{description|}}}}}{{wikipopup quotation|game}}<!-- | -->{{wikipopup|{{{description|}}}}}{{wikipopup quotation|game}}<!-- | ||
--><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | --><div class="infobox {{#switch: {{{type|}}} | boon | condition={{{type}}}}} effect"> | ||
Строка 18: | Строка 20: | ||
: {{#switch: {{{type|}}} | : {{#switch: {{{type|}}} | ||
| achievement = Эффект [[achievement|достижения]] | | achievement = Эффект [[achievement|достижения]] | ||
− | | aura = [[Aura|Аура]] | + | | aura = [[Aura|Аура]]{{#set:Has effect type=Aura}} |
− | | boon = [[Boon|Благо]] | + | | boon = [[Boon|Благо]]{{#set:Has effect type=Boon}} |
− | | condition = [[Condition|Состояние]] | + | | condition = [[Condition|Состояние]]{{#set:Has effect type=Condition}} |
| control | | control | ||
− | | control effect = [[Control effect|Эффект контроля]] | + | | control effect = [[Control effect|Эффект контроля]]{{#set:Has effect type=Control effect}} |
− | | promo = Рекламный эффект | + | | promo = Рекламный эффект{{#set:Has effect type=Effect}} |
− | | mistlock instability = [[Fractals of the Mists#Mistlock Instability|Неустойчивость Закрепления Туманов]] | + | | mistlock instability = [[Fractals of the Mists#Mistlock Instability|Неустойчивость Закрепления Туманов]]{{#set:Has effect type=Mistlock Instability}} |
| costume | | costume | ||
− | | costume brawl = [[Costume Brawl|Костюмированный бой]] | + | | costume brawl = [[Costume Brawl|Костюмированный бой]]{{#set:Has effect type=Costume Brawl}} |
− | | southsun survival = [[Southsun Survival|Выживании на Солнечном Острове]] | + | | southsun survival = [[Southsun Survival|Выживании на Солнечном Острове]]{{#set:Has effect type=Southsun Survival}} |
− | | dragon ball = [[Dragon Ball| | + | | dragon ball arena = [[Dragon Ball Arena|Арена Драгонбола]]{{#set:Has effect type=Dragon Ball Arena}} |
| transform | | transform | ||
− | | transformation = [[Transformation|Преобразование]] | + | | transformation = [[Transformation|Преобразование]]{{#set:Has effect type=Transformation}} |
− | | #default = Эффект | + | | #default = Эффект{{#set:Has effect type=Effect}} |
}}{{ #if: {{{story|}}} | | }}{{ #if: {{{story|}}} | | ||
; Глава истории | ; Глава истории | ||
− | : {{# | + | : {{#show: {{{story}}} | ?Has story chapter title}} |
; Инстанс | ; Инстанс | ||
: [[{{{story}}}]] }}{{#if: {{{applied-by|}}} | | : [[{{{story}}}]] }}{{#if: {{{applied-by|}}} | | ||
; Накладывает | ; Накладывает | ||
− | : {{#arraymap:{{{applied-by}}}|,|@@@|{{#switch:{{lc:{{#show:@@@|?Has context}}}}|trait={{trait icon|@@@}}|skill={{skill icon|@@@}}}}|,<br | + | : {{#arraymap:{{{applied-by}}}|,|@@@|{{#switch:{{lc:{{#show:@@@|?Has context}}}}|trait={{trait icon|@@@}}|skill={{skill icon|@@@}}|item={{item icon|@@@}}}}|,<br>}} }} |
; [[Effect stacking|Складывается]] | ; [[Effect stacking|Складывается]] | ||
: {{#switch: {{lc:{{{stacking}}}}} | : {{#switch: {{lc:{{{stacking}}}}} | ||
Строка 49: | Строка 51: | ||
| none | | none | ||
| #default = Нет | | #default = Нет | ||
+ | }}{{#if: {{{max duration|}}}| | ||
+ | ; Максимальная длительность | ||
+ | : {{{max duration|}}} сек | ||
+ | }}{{#if: {{{max stacks|}}}| | ||
+ | ; Максимум стеков | ||
+ | : {{{max stacks|}}} | ||
}}{{#if:{{{id|}}}| | }}{{#if:{{{id|}}}| | ||
; Игр. ссылка | ; Игр. ссылка | ||
Строка 63: | Строка 71: | ||
{{!}}} | {{!}}} | ||
− | | {{clear}} }}{{#set:Has | + | | {{clear}} }} |
− | </ | + | </div>{{#if: {{{description|}}}{{{facts|}}}| |
− | {{ | + | {{Quotation|Внутриигровое описание {{#if: {{{facts|}}} | <sup><abbr title="Факты отображаются только при наличии ссылки в чате, а не при наведении курсора на иконку эффекта.">''?''</abbr></sup> }}|<!-- |
− | {{{description| | + | -->{{#if: {{{description wvw|}}}{{{description pvp|}}} |
+ | | {{#if: {{{description|}}} | ||
+ | | <span class="gamemode {{#var:gmv-pve|}}">{{{description|}}}</span><!-- | ||
+ | -->{{#if:{{#pos: {{{description}}} |id="sic"}} | {{#set:| Has game description={{#dplreplace:{{{description|}}}|\[\[Category:.+\]\]}} }} | {{#set:| Has game description={{{description|}}} }} }} | ||
+ | }}{{#if: {{{description wvw|}}} | ||
+ | | <span class="gamemode {{#var:gmv-wvw}}">{{{description wvw|{{{description|}}}}}}</span> | ||
+ | }}{{#if: {{{description pvp|}}} | ||
+ | | <span class="gamemode {{#var:gmv-pvp}}">{{{description pvp|{{{description|}}}}}}</span> | ||
+ | }} | ||
+ | | {{#if: {{{description|}}} | ||
+ | | <span>{{{description|}}}</span><!-- | ||
+ | -->{{#if:{{#pos: {{{description}}} |id="sic"}} | {{#set:| Has game description={{#dplreplace:{{{description|}}}|\[\[Category:.+\]\]}} }} | {{#set:| Has game description={{{description|}}} }} }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | -->{{#if: {{{facts|}}} | {{#vardefine:enable facts|true}}{{#vardefine:skill fact context|Effect fact}}{{{facts}}}{{#vardefine:enable facts|false}}{{#set:Has effect facts={{{facts|}}}}} }} }}<!-- | ||
+ | -->{{#if: <!-- set missing skill fact subobjects silently --> {{#vardefine: missing skill fact|true}} {{{missing facts|}}} {{#vardefine: missing skill fact|false}} }}{{#vardefine:enable facts|false}} | ||
}}<!-- | }}<!-- | ||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
Строка 78: | Строка 101: | ||
}} | }} | ||
{{#if: {{{name}}} | <!-- name is undefined or non-empty --> | [[Category:Unnamed effects]] }} | {{#if: {{{name}}} | <!-- name is undefined or non-empty --> | [[Category:Unnamed effects]] }} | ||
+ | {{#if: {{{id|}}} | | [[Category:Effects missing id]] }} | ||
{{#switch: {{{type|}}} | {{#switch: {{{type|}}} | ||
| achievement = [[Category:Achievement effects]] | | achievement = [[Category:Achievement effects]] | ||
Строка 91: | Строка 115: | ||
| costume brawl = [[Category:Costume Brawl effects]] | | costume brawl = [[Category:Costume Brawl effects]] | ||
| southsun survival = [[Category:Southsun Survival effects]] | | southsun survival = [[Category:Southsun Survival effects]] | ||
− | | dragon ball = [[Category:Dragon Ball effects]] | + | | dragon ball arena = [[Category:Dragon Ball Arena effects]] |
− | | #default = [[Category:Effects]]}} | + | | transform |
+ | | transformation = [[Category:Transformation effects]] | ||
+ | | #default = [[Category:Effects]] | ||
+ | }} | ||
+ | {{#if: {{{split|}}} | ||
+ | | [[Category:Split effects]] | ||
+ | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | == | + | == Description == |
+ | This infobox is used for [[effect]]s. See {{tl|Effect infobox/historical}} for SMW-free version used on version history pages. | ||
+ | |||
+ | == Usage == | ||
<pre> | <pre> | ||
{{Effect infobox | {{Effect infobox | ||
− | | name = | + | | name = |
− | | icon = | + | | icon = |
− | | description = | + | | split = |
− | | type = | + | | description = |
− | | stacking = | + | | description wvw = |
− | | id = | + | | description pvp = |
+ | | facts = | ||
+ | | type = | ||
+ | | stacking = | ||
+ | | id = | ||
| requires = | | requires = | ||
| status = | | status = | ||
}}</pre> | }}</pre> | ||
− | == Parameters == | + | === Parameters === |
− | ; name | + | ;name |
: Optional. The name of the effect. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>; displays <code>(unnamed effect)</code> if included but left blank. | : Optional. The name of the effect. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>; displays <code>(unnamed effect)</code> if included but left blank. | ||
+ | ; icon | ||
+ | :Optional. Effect icon. Defaults to <nowiki>{{PAGENAME}}.png</nowiki> | ||
+ | ;split | ||
+ | : Optional. Game modes that this effect applies to. See {{tl|Game mode version}}. Note that unlike {{tl|skill infobox}} and {{tl|trait infobox}}, this template does '''not''' create game mode subobjects as beside the game mode there won't be any difference (the parameter ''facts'' is stored altogether without any split). | ||
; description | ; description | ||
: Optional. The in-game description of the effect. | : Optional. The in-game description of the effect. | ||
− | ; | + | ;facts |
− | : Optional. | + | : Optional. The effect facts displayed in-game below the description when linking the effect in the chat (not visible while hovering the effect icon). Each fact should be presented as an individual instance of the {{tl|skill fact}} template. |
− | ; type | + | ;missing facts |
+ | : Optional. Related skill facts that aren't shown in-game, uses the template {{tl|skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries. | ||
+ | ;type | ||
: Required. The type of effect. Defaults to "Effect". | : Required. The type of effect. Defaults to "Effect". | ||
::''achievement'': Story achievement effects. | ::''achievement'': Story achievement effects. | ||
Строка 126: | Строка 169: | ||
::''transformation'' : [[Transformation]]s | ::''transformation'' : [[Transformation]]s | ||
::''effect'': Any other type of effect. | ::''effect'': Any other type of effect. | ||
− | ; 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 | + | ;applied-by |
− | : Optional. Creates a link to the skill or | + | : Optional. Creates a link to the skill, trait, or item that applies this effect. |
− | ; stacking | + | ;stacking |
: Required. The behavior of [[effect stacking]]. | : Required. The behavior of [[effect stacking]]. | ||
::''intensity'' - The effect stacks in intensity. | ::''intensity'' - The effect stacks in intensity. | ||
Строка 136: | Строка 179: | ||
::''charge'' - The effect has a fixed number of stacks that decrease upon some condition. | ::''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. | ::''no'' - The effect does not stack, the previous duration must wear off before it can be re-applied. | ||
+ | ;max duration | ||
+ | : Optional. The maximum duration an effect that stacks in duration can reach. | ||
+ | ;max stacks | ||
+ | : Optional. The maximum stacks an effect that stacks in intensity can reach. | ||
;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. | ||
Строка 141: | Строка 188: | ||
;gallery2 | ;gallery2 | ||
:If specified, adds an image to the infobox. | :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. | ||
− | ; 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 | + | ;status notes |
: Optional. Allows provision of additional reason for the given status. | : Optional. Allows provision of additional reason for the given status. | ||
− | ; 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 | + | ;requires |
: Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options. | : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options. | ||
Текущая версия на 07:16, 9 апреля 2024
Содержание
Description[править]
This infobox is used for effects. See {{Effect infobox/historical}} for SMW-free version used on version history pages.
Usage[править]
{{Effect infobox | name = | icon = | split = | description = | description wvw = | description pvp = | facts = | type = | stacking = | id = | requires = | status = }}
Parameters[править]
- name
- Optional. The name of the effect. Defaults to
{{PAGENAME}}
; displays(unnamed effect)
if included but left blank. - icon
- Optional. Effect icon. Defaults to {{PAGENAME}}.png
- split
- Optional. Game modes that this effect applies to. See {{Game mode version}}. Note that unlike {{skill infobox}} and {{trait infobox}}, this template does not create game mode subobjects as beside the game mode there won't be any difference (the parameter facts is stored altogether without any split).
- description
- Optional. The in-game description of the effect.
- facts
- Optional. The effect facts displayed in-game below the description when linking the effect in the chat (not visible while hovering the effect icon). Each fact should be presented as an individual instance of the {{skill fact}} template.
- missing facts
- Optional. Related skill facts that aren't shown in-game, uses the template {{skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries.
- 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
- transformation : Transformations
- 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, trait, or item 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.
- max duration
- Optional. The maximum duration an effect that stacks in duration can reach.
- max stacks
- Optional. The maximum stacks an effect that stacks in intensity can reach.
- 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.
— Внутриигровое описание