Редактирование: Шаблон:Achievement
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | <includeonly>{{#ask: | + | <includeonly>{| {{STDT|mech1}} style="{{{style|}}}" |
− | + | {{#ask:[[Has achievement category::{{{2|+}}}]]<!--Unique to achievement subobjects--> | |
− | + | {{#if:{{{name|}}}||[[Has achievement page::~*{{#replace:{{#titleparts:{{{1|{{PAGENAME}}}}}}}| |?}}*]]<!-- Exists if achievement has article, allows anchoring if multiple achievements on one page -->}} | |
− | + | [[Has canonical name::{{{name|+}}}]]<!-- For displaying achievements on achievement category page --> | |
− | + | |?Has canonical name <!-- {{{2}}} --> | |
− | | ?Has | + | |?Has achievement type <!-- {{{3}}} --> |
− | | ? | + | |?Has game description <!-- {{{4}}} --> |
− | | ?Has | + | |?Has prerequisite <!-- {{{5}}} --> |
− | | ?Has | + | |?Gives item <!-- {{{6}}} --> |
− | | ? | + | |?Gives item quantity <!-- {{{7}}} --> |
− | | ? | + | |?Gives title <!-- {{{8}}} --> |
− | | ? | + | |?Has achievement tiers <!-- {{{9}}} --> |
− | | ? | + | |?Has achievement category <!-- {{{10}}} --> |
− | | ?Has achievement | + | |?Has flavor text <!-- {{{11}}} --> |
− | | ?Has | + | |?Has achievement page <!-- {{{12}}} --> |
− | | ? | + | |?Has unlock item <!-- {{{13}}} --> |
− | | ? | + | |?Has game icon <!-- {{{14}}} --> |
− | | ? | + | |?Gives mastery track region point <!-- {{{15}}} --> |
− | | ? | + | |?Has game id# <!-- {{{16}}} --> |
− | | ?Has | + | |link = none |
− | + | |format = template | |
− | | link = none | + | |template = Achievement result format |
− | | format = template | + | }} |
− | | template = Achievement result format | + | |}</includeonly><noinclude> |
− | |||
− | |||
− | |||
− | |||
== Usage == | == Usage == | ||
+ | Generate an individual achievement box. For generating a list of achievements, use {{tl|achievement list}}. Formatted using {{tl|Achievement result format}}. | ||
+ | |||
<pre> | <pre> | ||
− | {{achievement|<achievement | + | {{achievement}} |
− | {{achievement| | + | {{achievement|<achievement>}} |
− | {{achievement|<achievement | + | {{achievement|name=<achievement name>}} |
+ | {{achievement|<achievement>|<achievement category>}} | ||
</pre> | </pre> | ||
− | + | == Parameters == | |
− | ;1 | + | ;Unnamed parameter 1 |
− | : Achievement name. This parameter is used to specify the | + | : achievement. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. |
− | + | ;Unnamed parameter 2 | |
− | : | + | : achievement category. Defaults to <code>+</code>, i.e., any category. |
− | ; | + | ;name |
− | : Optional. | + | :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. | ||
+ | ;style | ||
+ | :Optional. If specified, adds additional styling to the table. | ||
− | + | == Examples == | |
<pre> | <pre> | ||
− | + | {{achievement|Speedy Reader}} | |
− | |||
</pre> | </pre> | ||
− | + | {{achievement|Speedy Reader}} | |
− | |||
− | |||
− | |||
− | |||
− | [[Category:Achievement formatting templates]] | + | [[Category:Achievement formatting templates|Achievement]] |
</noinclude> | </noinclude> |