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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''No skill description found.''}}<noinclude>
+
{{#vardefine:description|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''Описание умения не найдено.''}}}}{{#if:{{{keeplinebreaks|}}}|{{#var:description}}|{{#replace:{{#replace:{{#var:description}}|<br>|&ensp;}}|<br/>|&ensp;}}}}<noinclude>
  
 
== Usage ==
 
== Usage ==
For a given skill, queries and displays [[Property:Has game description]].
+
For a given skill, queries and displays [[Property:Has game description]]. Removes linebreaks by default so multi-line descriptions can be displayed entirely in one line.
 
<pre>
 
<pre>
 
{{skill description|<skill>}}
 
{{skill description|<skill>}}
Строка 9: Строка 9:
 
== Parameters ==
 
== Parameters ==
 
;Unnamed parameter 1
 
;Unnamed parameter 1
:Skill name. Defaults to PAGENAME. Use appropriate qualifier when necessary.
+
:Skill name. Defaults to PAGENAME. Use appropriate qualifier when necessary.
 +
;keeplinebreaks
 +
:Optional. Set to preserve linebreaks in the skill description.
  
 
== Examples ==
 
== Examples ==
Строка 20: Строка 22:
 
|-
 
|-
 
| [[Hundred Blades]] || <code><nowiki>{{skill description|Hundred Blades}}</nowiki></code> || {{skill description|Hundred Blades}}
 
| [[Hundred Blades]] || <code><nowiki>{{skill description|Hundred Blades}}</nowiki></code> || {{skill description|Hundred Blades}}
 +
|-
 +
| [[Signet of Agility]] || <code><nowiki>{{skill description|Signet of Agility}}</nowiki></code> || {{skill description|Signet of Agility}}
 +
|-
 +
| [[Signet of Agility]] || <code><nowiki>{{skill description|Signet of Agility|keeplinebreaks=y}}</nowiki></code> || {{skill description|Signet of Agility|keeplinebreaks=y}}
 
|}
 
|}
  
[[Category:Data templates]]
+
[[Category:Skill formatting templates]]
 
</noinclude>
 
</noinclude>

Версия 20:23, 10 августа 2019

Описание умения не найдено.

Usage

For a given skill, queries and displays Property:Has game description. Removes linebreaks by default so multi-line descriptions can be displayed entirely in one line.

{{skill description|<skill>}}

Parameters

Unnamed parameter 1
Skill name. Defaults to PAGENAME. Use appropriate qualifier when necessary.
keeplinebreaks
Optional. Set to preserve linebreaks in the skill description.

Examples

Skill Code Skill description
Smoke Screen {{skill description|Smoke Screen}} Хитрость. Создать дымовую завесу, которая блокирует снаряды и ослепляет противников.
Flame Burst {{skill description|Flame Burst}} Поджечь противников в выбранной области.
Hundred Blades {{skill description|Hundred Blades}} Нанести множество ударов по нескольким противникам. Последний удар наносит дополнительный урон.
Signet of Agility {{skill description|Signet of Agility}} Печать пассивна: Увеличивает Точность. Печать активна: Восстанавливает выносливость и снимает состояния с союзников поблизости.
Signet of Agility {{skill description|Signet of Agility|keeplinebreaks=y}} Печать пассивна: Увеличивает Точность.
Печать активна: Восстанавливает выносливость и снимает состояния с союзников поблизости.