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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
<includeonly>{{#if:{{{1|}}}|{{formatnum:{{{1}}}}}&nbsp;|}}<span class="inline-icon">[[File:Mastery point {{#if:{{{region|}}}|({{{region|}}})|large}}.png|x20px|link=Mastery point|{{#if:{{{region|}}}|Очко мастерства {{#switch:{{{region}}}|Central Tyria=Центральной Тирии|Heart of Maguuma=Сердца Магуумы}}|Очко мастерства}}]]</span></includeonly><noinclude>
+
<includeonly>{{#if: {{{1|}}} | {{formatnum:{{{1}}}}}&nbsp; }}<span class="inline-icon">[[File:Mastery point {{#switch: {{{region|}}}
== Description ==
+
| Central Tyria = (Central Tyria)
=== Usage ===
+
| Heart of Thorns
Displays the mastery point icon and the cost. If the value is omitted or is 0, only the icon is displayed.
+
| Heart of Maguuma = (Heart of Thorns)
 +
| Crystal Desert
 +
| Path of Fire = (Path of Fire)
 +
| #default = large
 +
}}.png|x20px|link=Mastery point|Очко мастерства {{#if: {{{region|}}} | {{#ifeq:{{{region|}}}|Central Tyria|Центральной Тирии|{{{region|}}}}} }}]]</span></includeonly><noinclude>
 +
== Usage ==
 +
Use this template to display a mastery point icon and a quantity.
  
<nowiki>{{mastery point|<points>}}</nowiki>
+
<pre>{{mastery point|<quantity>|region=<region name>}}</pre>
 +
 
 +
== Parameters ==
 +
All parameters are optional.
  
 
; ''unnamed parameter'' 1
 
; ''unnamed parameter'' 1
: Number of points.
+
: Quantity of points. If omitted, the quantity is not displayed.
 
; region
 
; region
: The region for the mastery point - this determines which icon is selected.
+
: Mastery point region. If a value is specified, the icon will change accordingly. Options:
: Default: {{mastery point}}
+
:* Default appearance with no parameter specified: {{mastery point}}
: <code>Heart of Maguuma</code>: {{mastery point|region=Heart of Maguuma}}
+
:* <code>Central Tyria</code>: {{mastery point|region=Central Tyria}}
: <code>Central Tyria</code>: {{mastery point|region=Central Tyria}}
+
:* <code>Heart of Thorns</code>: {{mastery point|region=Heart of Thorns}}
 +
:* <code>Path of Fire</code>: {{mastery point|region=Path of Fire}}
  
=== Example ===
+
=== Examples ===
 
<pre>{{mastery point|3}}</pre>
 
<pre>{{mastery point|3}}</pre>
 
{{mastery point|3}}
 
{{mastery point|3}}
 +
 +
<pre>{{mastery point|region=Central Tyria}}</pre>
 +
{{mastery point|region=Central Tyria}}
 +
 +
<pre>{{mastery point|5|region=Heart of Thorns}}</pre>
 +
{{mastery point|5|region=Heart of Thorns}}
  
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Версия 11:09, 12 октября 2017

Usage

Use this template to display a mastery point icon and a quantity.

{{mastery point|<quantity>|region=<region name>}}

Parameters

All parameters are optional.

unnamed parameter 1
Quantity of points. If omitted, the quantity is not displayed.
region
Mastery point region. If a value is specified, the icon will change accordingly. Options:
  • Default appearance with no parameter specified: Очки мастерства
  • Central Tyria: Очки мастерства Центральной Тирии
  • Heart of Thorns: Очки мастерства Heart of Thorns
  • Path of Fire: Очки мастерства Path of Fire

Examples

{{mastery point|3}}

Очки мастерства

{{mastery point|region=Central Tyria}}

Очки мастерства Центральной Тирии

{{mastery point|5|region=Heart of Thorns}}

Очки мастерства Heart of Thorns