Шаблон:Upkeep — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
{{#ifeq:{{{1}}}|0|| {{{1|}}} [[File:Upkeep.png|20px|Поддержка|link=Energy#Upkeep]]}}
+
{{#ifeq:{{{1}}}|0|| {{{1|}}} [[File:Upkeep.png|20px|Поддержание|link=Energy#Upkeep]]}}<noinclude>
 +
== Description ==
 +
Displays the upkeep icon and the upkeep cost. If the value is 0, the icon isn't displayed. If the value is omitted, the icon is displayed by itself. If you wish to omit the upkeep icon when using this in template or other places, set the default value passed to this template as 0.
 +
== Usage ==
 +
<pre>{{upkeep}}
 +
{{upkeep|<cost>}}</pre>
 +
 
 +
=== Parameters ===
 +
; 1 ''(unnamed parameter)''
 +
: Optional. Cost of upkeep per second.
 +
 
 +
=== Examples ===
 +
{{example table header}}
 +
{{example table row}}
 +
{{example table row|5}}
 +
{{example table row|0.5}}
 +
{{example table row|0}}
 +
|}
 +
 
 +
== See also ==
 +
* {{tl|Activation}}
 +
* {{tl|Energy}}
 +
* {{tl|Health cost}}
 +
* {{tl|Initiative}}
 +
* {{tl|Recharge}}
 +
* {{tl|Infobox statistic split}}
 +
 
 +
[[Category:Icon templates]]
 +
</noinclude>

Текущая версия на 11:50, 7 марта 2020

Поддержание

Description[править]

Displays the upkeep icon and the upkeep cost. If the value is 0, the icon isn't displayed. If the value is omitted, the icon is displayed by itself. If you wish to omit the upkeep icon when using this in template or other places, set the default value passed to this template as 0.

Usage[править]

{{upkeep}}
{{upkeep|<cost>}}

Parameters[править]

1 (unnamed parameter)
Optional. Cost of upkeep per second.

Examples[править]

Параметр Код Результат
{{upkeep}} Поддержание
5 {{upkeep|5}} 5 Поддержание
0.5 {{upkeep|0.5}} 0.5 Поддержание
0 {{upkeep|0}}

See also[править]