Шаблон:Achievement — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 29: | Строка 29: | ||
<pre> | <pre> | ||
{{achievement}} | {{achievement}} | ||
+ | {{achievement|<achievement>}} | ||
+ | {{achievement|name=<achievement name>}} | ||
+ | {{achievement|<achievement>|<achievement category>}} | ||
+ | </pre> | ||
+ | |||
+ | == Parameters == | ||
+ | ;Unnamed parameter 1 | ||
+ | : achievement. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | ||
+ | ;Unnamed parameter 2 | ||
+ | : achievement category. Defaults to <code>+</code>, i.e., any category. | ||
+ | ;name | ||
+ | :Achievement name. This parameter is used to specify an achievement on the achievement category. | ||
+ | :* This is required as the query uses [[Property:Has achievement page]] for finding achievements. Since the achievement is located on a section of the achievement category, this parameter is required to specify which achievement on the achievement category. | ||
+ | :* This can also be used to specify an achievement on an individual achievement page. | ||
+ | :* This is typically exclusive with the unnamed parameters. Using both may lead to unintended results. | ||
+ | ;category | ||
+ | :Alias for unnamed parameter 2. See above. | ||
+ | ;style | ||
+ | :Optional. If specified, adds additional styling to the table. | ||
+ | |||
+ | == Examples == | ||
+ | <pre> | ||
+ | {{achievement|Speedy Reader}} | ||
+ | </pre> | ||
+ | {{achievement|Speedy Reader}} | ||
+ | |||
+ | [[Category:Achievement formatting templates|Achievement]] | ||
+ | </noinclude> |
Версия 20:41, 17 ноября 2016
Usage
Generate an individual achievement box. For generating a list of achievements, use {{achievement list}}. Formatted using {{Achievement result format}}.
{{achievement}} {{achievement|<achievement>}} {{achievement|name=<achievement name>}} {{achievement|<achievement>|<achievement category>}}
Parameters
- Unnamed parameter 1
- achievement. Defaults to
{{PAGENAME}}
. - Unnamed parameter 2
- achievement category. Defaults to
+
, i.e., any category. - name
- Achievement name. This parameter is used to specify an achievement on the achievement category.
- This is required as the query uses Property:Has achievement page for finding achievements. Since the achievement is located on a section of the achievement category, this parameter is required to specify which achievement on the achievement category.
- This can also be used to specify an achievement on an individual achievement page.
- This is typically exclusive with the unnamed parameters. Using both may lead to unintended results.
- category
- Alias for unnamed parameter 2. See above.
- style
- Optional. If specified, adds additional styling to the table.
Examples
{{achievement|Speedy Reader}}
Explorer: Speedy Reader — Read the complete history of the founding of Ebonhawke in one day. (10 )