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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
 
{{#ifeq:{{{1}}}|0|| {{{1|}}} [[File:Upkeep.png|20px|Поддержание|link=Energy#Upkeep]]}}<noinclude>
 
{{#ifeq:{{{1}}}|0|| {{{1|}}} [[File:Upkeep.png|20px|Поддержание|link=Energy#Upkeep]]}}<noinclude>
 
 
== Description ==
 
== Description ==
 
=== Usage ===
 
 
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.
 
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>
  
<nowiki>{{upkeep|<cost>}}</nowiki>
+
=== Parameters ===
 
+
; 1 ''(unnamed parameter)''
; cost
+
: Optional. Cost of upkeep per second.
: Cost of upkeep per second  
 
  
 
=== Examples ===
 
=== Examples ===
 +
{{example table header}}
 +
{{example table row}}
 +
{{example table row|5}}
 +
{{example table row|0.5}}
 +
{{example table row|0}}
 +
|}
  
({{upkeep|-5}})
+
== See also ==
    <nowiki>{{upkeep|-5}}</nowiki>
+
* {{tl|Activation}}
 
+
* {{tl|Energy}}
({{upkeep|0}})
+
* {{tl|Health cost}}
    <nowiki>{{upkeep|0}}</nowiki>
+
* {{tl|Initiative}}
 
+
* {{tl|Recharge}}
({{upkeep}})
+
* {{tl|Infobox statistic split}}
    <nowiki>{{upkeep}}</nowiki>
 
  
[[Category:Formatting templates]]
+
[[Category:Icon templates]]
 
</noinclude>
 
</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[править]