Редактирование: Шаблон:Effect infobox

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 1: Строка 1:
<includeonly>{{#set:Has context=Effect}}<!--
+
{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
+
-->{{infobox release|{{{release|}}} }}<!--
-->{{infobox requires|{{{requires|}}} }}<!--
 
-->{{#if: {{{split|}}}|{{Game mode version|{{{split}}}|type=effect}} }}<!--
 
-->{{wikipopup|{{{description|}}}}}{{wikipopup quotation|game}}<!--
 
 
--><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 class="icon">{{#if: {{{icon|}}}
 
<div class="icon">{{#if: {{{icon|}}}
 
  | [[Has game icon::File:{{{icon}}}|40px]]
 
  | [[Has game icon::File:{{{icon}}}|40px]]
Строка 20: Строка 18:
 
: {{#switch: {{{type|}}}
 
: {{#switch: {{{type|}}}
 
| achievement = Эффект [[achievement|достижения]]
 
| achievement = Эффект [[achievement|достижения]]
| aura = [[Aura|Аура]]{{#set:Has effect type=Aura}}
+
| aura = [[Aura|Аура]]
| boon = [[Boon|Благо]]{{#set:Has effect type=Boon}}
+
| boon = [[Boon|Благо]]
| condition = [[Condition|Состояние]]{{#set:Has effect type=Condition}}
+
| condition = [[Condition|Состояние]]
 
| control
 
| control
| control effect = [[Control effect|Эффект контроля]]{{#set:Has effect type=Control effect}}
+
| control effect = [[Control effect|Эффект контроля]]
| promo = Рекламный эффект{{#set:Has effect type=Effect}}
+
| promo = Рекламный эффект
| mistlock instability = [[Fractals of the Mists#Mistlock Instability|Неустойчивость Закрепления Туманов]]{{#set:Has effect type=Mistlock Instability}}
+
| wvw
 +
| world versus world
 +
| wa
 +
| world ability = [[World ability|Мировая способность]]
 +
| mistlock instability = [[Mistlock Instability|Неустойчивость Закрепления Туманов]]
 
| costume  
 
| costume  
| costume brawl = [[Costume Brawl|Костюмированный&nbsp;бой]]{{#set:Has effect type=Costume Brawl}}
+
| costume brawl = [[Costume Brawl|Костюмированный&nbsp;бой]]
| southsun survival = [[Southsun Survival|Выживании на Солнечном Острове]]{{#set:Has effect type=Southsun Survival}}
+
| southsun survival = [[Southsun Survival|Выживании на Солнечном Острове]]
| dragon ball arena = [[Dragon Ball Arena|Арена Драгонбола]]{{#set:Has effect type=Dragon Ball Arena}}
+
| dragon ball = [[Dragon Ball|Драгонбол]]
| transform
+
| #default = Эффект
| transformation = [[Transformation|Преобразование]]{{#set:Has effect type=Transformation}}
 
| #default = Эффект{{#set:Has effect type=Effect}}
 
 
}}{{ #if: {{{story|}}} |
 
}}{{ #if: {{{story|}}} |
 
; Глава истории
 
; Глава истории
: {{#show: {{{story}}} | ?Has story chapter title}}
+
: {{#ask: [[-Belongs to story chapter::{{{story}}}]]}}
 
; Инстанс
 
; Инстанс
 
: [[{{{story}}}]] }}{{#if: {{{applied-by|}}} |
 
: [[{{{story}}}]] }}{{#if: {{{applied-by|}}} |
 
; Накладывает
 
; Накладывает
: {{#arraymap:{{{applied-by}}}|,|@@@|{{#switch:{{lc:{{#show:@@@|?Has context}}}}|trait={{trait icon|@@@}}|skill={{skill icon|@@@}}|item={{item icon|@@@}}}}|,<br>}} }}
+
: {{#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}}}}}
Строка 51: Строка 51:
 
| none
 
| none
 
| #default = Нет
 
| #default = Нет
}}{{#if: {{{max duration|}}}|
 
; Максимальная длительность
 
: {{{max duration|}}} сек
 
}}{{#if: {{{max stacks|}}}|
 
; Максимум стеков
 
: {{{max stacks|}}}
 
 
}}{{#if:{{{id|}}}|
 
}}{{#if:{{{id|}}}|
 
; Игр. ссылка
 
; Игр. ссылка
Строка 62: Строка 56:
 
}}
 
}}
 
</div>
 
</div>
{{#if: {{{gallery1|}}} |
+
{{clear}}{{#set:Has context=Effect}}
 
+
</div>{{#if:{{{description|}}}|
{{{!}} style="width:100%"
+
{{Quotation|Внутриигровое описание|
! style="text-align:left;" {{!}} Внешний вид
+
{{{description|''Описание отсутствует.''}}}{{#set:Has game description={{#dplreplace:{{{description|}}}|\[\[Category:Text errors\]\]}}}}}}
{{!}}- 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}} }}
 
</div>{{#if: {{{description|}}}{{{facts|}}}|
 
{{Quotation|Внутриигровое описание {{#if: {{{facts|}}} | <sup><abbr title="Факты отображаются только при наличии ссылки в чате, а не при наведении курсора на иконку эффекта.">''?''</abbr></sup> }}|<!--
 
-->{{#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
Строка 96: Строка 66:
 
           {{#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}}}|+}}
+
  {{#ifexist: File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}} | | {{#ifeq: {{{type|}}} | achievement || [[Category:Effects missing icon]] }} }}
| <!-- 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]] }}
{{#if: {{{id|}}} | | [[Category:Effects missing id]] }}
 
 
{{#switch: {{{type|}}}
 
{{#switch: {{{type|}}}
 
| achievement = [[Category:Achievement effects]]
 
| achievement = [[Category:Achievement effects]]
Строка 111: Строка 77:
 
| control effect = [[Category:Control effects]]
 
| control effect = [[Category:Control effects]]
 
| promo = [[Category:Promotional effects]]
 
| promo = [[Category:Promotional effects]]
 +
| wvw
 +
| world versus world
 +
| wa
 +
| world ability = [[Category:World abilities]]
 
| mistlock instability = [[Category:Mistlock Instabilities]]
 
| mistlock instability = [[Category:Mistlock Instabilities]]
 
| costume
 
| costume
 
| 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 arena = [[Category:Dragon Ball Arena effects]]
+
| dragon ball = [[Category:Dragon Ball effects]]
| transform
+
| #default = [[Category:Effects]]}}
| transformation = [[Category:Transformation effects]]
+
}}<noinclude>
| #default = [[Category:Effects]]
+
== Syntax ==
}}
 
{{#if: {{{split|}}}
 
| [[Category:Split effects]]
 
}}
 
}}</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 =
| split =
+
| description =
| description =
+
| type =
| description wvw =  
+
| stacking =
| description pvp =
+
| id =
| facts =  
+
| release =  
| type =  
 
| stacking =  
 
| id =  
 
| 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
+
; icon
: 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.
+
: Optional. Effect icon. Defaults to <nowiki>{{PAGENAME}}.png</nowiki>
;missing facts
+
; type  
: 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.
Строка 165: Строка 116:
 
::''control effect'': Control effects.
 
::''control effect'': Control effects.
 
::''promo'': Effects active during special events.
 
::''promo'': Effects active during special events.
::''mistlock instability'': [[Fractals of the Mists#Mistlock Instability|Mistlock Instability]]
+
::''world ability'': World versus World effects available from any World Ability.
 +
::''mistlock instability'': [[Mistlock Instability]]
 
::''costume brawl'': [[Costume Brawl]]
 
::''costume brawl'': [[Costume Brawl]]
::''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, trait, or item that applies this effect.
+
: 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]].
 
::''intensity'' - The effect stacks in intensity.
 
::''intensity'' - The effect stacks in intensity.
Строка 179: Строка 130:
 
::''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.
;gallery1
+
; categorize
;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.
 
: 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
+
; release
: 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 release}} for options.
  
 
=== Examples ===
 
=== Examples ===

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)