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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 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)
 +
| The Icebrood Saga
 +
| Icebrood Saga = (Icebrood Saga)
 +
| End of Dragons
 +
| End of Dragons = (End of Dragons)
 +
| #default = large
 +
}}.png|x20px|link=Mastery point|Очки мастерства {{#if: {{{region|}}} | {{#switch: {{{region|}}}  
 +
| Central Tyria = Центральной Тирии
 +
| The Icebrood Saga
 +
| Icebrood Saga = Саги об Исчадиях Льда
 +
| #default = {{{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>
  
; ''unnamed parameter'' 1
+
== Parameters ==
: Number of points.
+
All parameters are optional.
 +
 
 +
;1 ''(unnamed parameter)''
 +
: 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}}
 +
:* <code>Icebrood Saga</code>: {{mastery point|region=Icebrood Saga}}
 +
:* <code>End of Dragons</code>: {{mastery point|region=End of Dragons}}
  
=== 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>

Текущая версия на 17:16, 31 марта 2023

Usage[править]

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

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

Parameters[править]

All parameters are optional.

1 (unnamed parameter)
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
  • Icebrood Saga: Очки мастерства Саги об Исчадиях Льда
  • End of Dragons: Очки мастерства End of Dragons

Examples[править]

{{mastery point|3}}

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

{{mastery point|region=Central Tyria}}

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

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

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