Шаблон:Skill description — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
|||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
− | {{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default='' | + | {{#vardefine:description|{{#show:{{{1|{{PAGENAME}}}}}|?Has game description|default=''Описание умения не найдено.''}}}}{{#if:{{{keeplinebreaks|}}}|{{#var:description}}|{{#replace:{{#replace:{{#replace:{{#var:description}}|<br>| }}|<br/>| }}|<br />| }}}}<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: | + | [[Category:Skill formatting templates]] |
</noinclude> | </noinclude> |
Текущая версия на 20:27, 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}} |
Печать пассивна: Увеличивает Точность. Печать активна: Восстанавливает выносливость и снимает состояния с союзников поблизости. |