Редактирование: Шаблон:Achievement list
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | <includeonly>{| {{STDT|mech1 | + | <includeonly>{{#if:<!-- Hide whitespace --> |
− | {{#ask:[[Has achievement category::{{{category|+}}}]]<!-- Every achievement has a category --> | + | {{#vardefine:category_icon|{{#show:{{{category|}}}|?Has game icon|link=none}}}} |
− | {{#if: {{{activity|}}} | [[Is part of activity::{{{activity}}}]] }} | + | }}{| {{STDT|mech1}} {{#vardefine:table_tier_total|0}}<!-- Set to zero for each call --> |
− | {{#if: {{{parent|}}} | [[Is part of achievement::{{{parent}}}]] }} | + | !style="font-size:large;" | {{#if:{{{category|}}}|<div style="position:absolute; top:0; left:5px; z-index:1;">[[{{#var:category_icon}}{{!}}48px]]</div>}} Достижение |
− | {{#if: {{{reward|}}} | [[Gives item::{{{reward}}}]] }} | + | ! colspan="2" style="text-align: right; border-left-width: 0;" | {{mastery point|{{#var_final:mastery_total|0}}|region={{#var_final:mastery_type|Default}}}} {{ap|{{#var_final:table_tier_total}}}} <!-- Parsing takes place in template:Achievement list result format |
− | {{#if: {{{mastery|}}} | [[Gives mastery track region point::{{{mastery}}}]] }} | + | -->{{#ask:[[Has achievement category::{{{category|+}}}]]<!-- Every achievement has a category --> |
− | | ?Has canonical name | + | {{#if:{{{page|}}}|[[Has achievement page::~*{{#replace:{{{page}}}| |?}}*]]}}<!-- Value contains base page name, replace space with wildcard to query properly --> |
− | | ?Has achievement type | + | {{#if:{{{type|}}}|[[Has achievement type::{{{type}}}]]}} |
− | | ?Has game description | + | {{#if:{{{activity|}}}|[[Is part of activity::{{{activity}}}]]}} |
− | | ?Has prerequisite | + | {{#if:{{{parent|}}}|[[Is part of achievement::{{{parent}}}]]}} |
− | | ?Gives item | + | {{#if:{{{reward|}}}|[[Gives item::{{{reward}}}]]}} |
− | | ?Gives item quantity | + | {{#if:{{{mastery|}}}|[[Gives mastery track region point::{{{mastery}}}]]}} |
− | | ?Gives title | + | |?Has canonical name |
− | | ?Has achievement tiers | + | |?Has achievement type |
− | | ?Has achievement category | + | |?Has game description |
− | | ?Has flavor text | + | |?Has prerequisite |
− | | ?Has achievement page | + | |?Gives item |
− | | ?Has unlock item | + | |?Gives item quantity |
− | | ?Has game icon | + | |?Gives title |
− | | ?Gives mastery track region point | + | |?Has achievement tiers |
− | + | |?Has achievement category | |
− | + | |?Has flavor text | |
− | + | |?Has achievement page | |
− | + | |?Has unlock item | |
− | + | |?Has game icon | |
− | + | |?Gives mastery track region point | |
− | + | |link = none | |
− | + | |format = template | |
− | | link = none | + | |template = Achievement result format |
− | | format = template | + | |sort = {{#if: {{{mastery|}}} | Has achievement category, Has canonical name }}, |
− | |||
− | | template = Achievement | ||
− | | sort = | ||
| limit = 250 | | limit = 250 | ||
− | |||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
− | |||
− | |||
== Usage == | == Usage == | ||
+ | Generates a list of achievements for the activity. Format using {{tl|Achievement result format}}. | ||
+ | |||
<pre> | <pre> | ||
{{Achievement list | {{Achievement list | ||
− | | category = | + | | page = |
− | | activity = | + | | category = |
+ | | type = | ||
+ | | activity = | ||
| reward = | | reward = | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | == Parameters == | |
+ | ;page | ||
+ | :Query for achievements related to a specific article on the site. | ||
+ | :* Use {{tl|achievement}} for achievement-specific articles. | ||
+ | :* Use this to identify achievements related to existing articles on the wiki, usually identified by already having an infobox. | ||
+ | :* Keep in mind this is arbitrary and can pick up any other property that is a ''page'' property, such as ''activity'' and ''category''. | ||
;category | ;category | ||
− | : | + | :Constrain to achievements in a certain achievement category. |
+ | ;type | ||
+ | :Constrain achievements to a specific achievement type. | ||
;activity | ;activity | ||
− | : | + | :Constrain achievements to a related activity. |
;reward | ;reward | ||
− | : | + | :The item received upon completion of the achievement. |
;mastery | ;mastery | ||
− | : | + | :The mastery point reward given, e.g. "Central Tyria" or "Heart of Maguuma" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Examples == | |
− | < | + | <pre> |
− | {{achievement list | + | {{achievement list |
− | + | |activity=Sanctum Sprint | |
− | + | }} | |
− | + | </pre> | |
− | + | {{achievement list | |
− | + | |activity=Sanctum Sprint | |
− | {{achievement list|activity=Sanctum Sprint | + | }} |
− | |||
− | |||
− | |||
− | [[Category:Achievement formatting templates]] | + | [[Category:Achievement formatting templates|Achievement list]] |
</noinclude> | </noinclude> |