Редактирование: Шаблон:Achievement table header
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | < | + | <onlyinclude>{{#if:<!-- remove whitespace --> |
− | + | {{#set:Has canonical name={{{name|{{trim|{{#replace:{{PAGENAME}}|(achievements)|}}}}}}}}} | |
− | + | {{#ask:[[Has achievement category::{{{1|{{PAGENAME}}}}}]]|?Has achievement tiers|?Has AP cap#|mainlabel=-|format=template|template=Parse tier|limit=250}}<!-- Calculates total achievement points stored in #var:table_tier_total --> | |
− | }} | + | }}{| {{STDT|mech1}} |
− | {| {{STDT|mech1 | + | !style="font-size:large;" |<div style="position:absolute; top:0; left:5px; z-index:1;">[[Has game icon::File:{{{icon|{{PAGENAME}}.png}}}|48px]]</div> {{{title|Достижение}}} {{#if:{{{group|}}}|<small>([[Has achievement group::{{{group|}}}]])</small>}}<!-- Need better place for this, next to icon? --> |
− | ! style="font-size:large;" | <div style="position:absolute; top:0; left:5px;"> | + | ! Всего достижений: {{#ask:[[Has achievement category::{{{1|{{PAGENAME}}}}}]]|format=count}} |
− | + | ! style="text-align: right; border-left-width: 0;" | {{mastery point|{{#var_final:mastery_total|0}}|region={{#var_final:mastery_type|Default}}}} {{ap|{{#var:table_tier_total}}}}</onlyinclude> | |
− | + | |} | |
− | + | ||
− | |||
− | |||
− | }} {{#if:{{{group|}}} | ||
− | |||
− | |||
− | } | ||
− | |||
− | ! style="text-align: right; border-left-width: 0;" | ||
− | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{achievement table header}} | {{achievement table header}} | ||
{{achievement table header | {{achievement table header | ||
+ | | name = | ||
| icon = | | icon = | ||
− | | title = | + | | title = (optional) |
− | | group = | + | | group = (optional) |
}} | }} | ||
</pre> | </pre> | ||
− | + | == Parameters == | |
− | : | + | ;name |
+ | :The canonical name of the achievement category. Usually for categories requiring (achievements) qualifier. Defaults to <nowiki>{{PAGENAME}}</nowiki>, without the (achievements) text. | ||
;icon | ;icon | ||
− | : | + | :The icon for the achievement category. Defaults to <nowiki>File:{{PAGENAME}}.png</nowiki> |
;title | ;title | ||
− | :Optional. The header title. Defaults to | + | :Optional. The header title. Defaults to Achievement. |
;group | ;group | ||
− | :Optional. Displays next to the header title in smaller font. | + | :Optional. Displays next to the header title in smaller font. Assigns the ''Has achievement group'' property. |
− | + | == Example == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Achievement table header | {{Achievement table header | ||
− | | icon = Bazaar of the Four Winds.png | + | |icon=Bazaar of the Four Winds.png |
− | |||
| group = Historical | | group = Historical | ||
}} | }} | ||
Строка 59: | Строка 38: | ||
| description = Complete 16 Bazaar of the Four Winds Achievements. | | description = Complete 16 Bazaar of the Four Winds Achievements. | ||
| rewards = Gift of Quartz | | rewards = Gift of Quartz | ||
+ | |||
| meta = self | | meta = self | ||
| tiers = Bazaar Achievements: 16;50 | | tiers = Bazaar Achievements: 16;50 | ||
Строка 65: | Строка 45: | ||
[[Category:Achievement formatting templates]] | [[Category:Achievement formatting templates]] | ||
− |