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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
Строка 1: Строка 1:
{{#ifeq:{{{1}}}|0|| {{fraction|{{{1|}}}}} [[File:Tango-recharge-darker.png|Время перезарядки|link=Recharge]]}}<noinclude>
+
<onlyinclude>{{#ifeq:{{{1}}}|0||{{fraction|{{{1|}}}}} [[File:Tango-recharge-darker.png|Время перезарядки|link=Recharge]]}}</onlyinclude>
== Description ==
 
  
=== Usage ===
+
== Usage ==
Displays the recharge icon and the recharge time in number of seconds. 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 recharge icon when using this in template or other places, set the default value passed to this template as 0.
+
Displays a recharge icon and the recharge time in number of seconds.
  
<nowiki>{{recharge|<time>}}</nowiki>
+
<pre>
 +
{{recharge}}
 +
{{recharge|<time>}}
 +
</pre>
  
; time
+
== Parameters ==
: Recharge time in seconds.
+
; Unnamed parameter 1
 +
: Optional. Recharge time in seconds.
  
=== Examples ===
+
== Examples ==
 
+
{{example table header}}
({{recharge|5}})
+
{{example table row}}
    <nowiki>{{recharge|5}}</nowiki>
+
{{example table row|5}}
 
+
{{example table row|0.5}}
({{recharge|0.5}})
+
{{example table row|0}}
    <nowiki>{{recharge|0.5}}</nowiki>
+
|}
 
 
({{recharge|0}})
 
    <nowiki>{{recharge|0}}</nowiki>
 
 
 
({{recharge}})
 
    <nowiki>{{recharge}}</nowiki>
 
  
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
</noinclude>
 

Текущая версия на 11:53, 18 мая 2018

Время перезарядки

Usage[править]

Displays a recharge icon and the recharge time in number of seconds.

{{recharge}}
{{recharge|<time>}}

Parameters[править]

Unnamed parameter 1
Optional. Recharge time in seconds.

Examples[править]

Параметр Код Результат
{{recharge}} Время перезарядки
5 {{recharge|5}} 5 Время перезарядки
0.5 {{recharge|0.5}} 0.5½ Время перезарядки
0 {{recharge|0}}