Шаблон:Achievement — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#ask: | <includeonly>{{#ask: | ||
[[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --> | [[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --> | ||
− | [[Has canonical name::{{#titleparts:{{{1|{{PAGENAME}}}}}}}]] | + | [[Has canonical name::{{#titleparts:{{{1|{{#replace:{{PAGENAME}}|(achievement)}}}}}}}]] |
{{#if: {{{id|}}} | [[Has game id::{{{id}}}]] }} | {{#if: {{{id|}}} | [[Has game id::{{{id}}}]] }} | ||
| ?Has achievement category <!-- 1 --> | | ?Has achievement category <!-- 1 --> | ||
Строка 17: | Строка 17: | ||
| ?Gives item quantity <!-- 13 --> | | ?Gives item quantity <!-- 13 --> | ||
| ?Gives title <!-- 14 --> | | ?Gives title <!-- 14 --> | ||
+ | | ?Is hidden achievement <!-- 15 --> | ||
+ | | ?Has achievement page section <!-- 16 --> | ||
| mainlabel = - | | mainlabel = - | ||
| link = none | | link = none | ||
| format = template | | format = template | ||
| template = Achievement result format | | template = Achievement result format | ||
+ | | default = ''No result for achievement "{{{1}}}". It may not have been added to the wiki yet.''{{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
+ | == Description == | ||
+ | Generates a simple line summarizing the achievement. Ideal for "Related achievements" sections. Formatted using {{tl|Achievement result format}}. | ||
== Usage == | == Usage == | ||
− | |||
− | |||
<pre> | <pre> | ||
− | {{achievement|<achievement>}} | + | {{achievement|<achievement name>}} |
− | {{achievement|<achievement>|category=<achievement category>}} | + | {{achievement|<achievement name>|category=<achievement category>}} |
+ | {{achievement|<achievement name>|id=<achievement id>}} | ||
</pre> | </pre> | ||
− | == Parameters == | + | === Parameters === |
;1 ''(unnamed parameter)'' | ;1 ''(unnamed parameter)'' | ||
− | : | + | : Achievement name. This parameter is used to specify the precise name of an achievement as it appears ingame. |
;category | ;category | ||
− | : Optional. | + | : Optional. Achievement category. This parameter should only be used if multiple achievements have the same name. |
;id | ;id | ||
: Optional. For use to discriminate between two identically named achievements in the same category. | : Optional. For use to discriminate between two identically named achievements in the same category. | ||
− | == Examples == | + | === Examples === |
<pre> | <pre> | ||
* {{achievement|Bounty Hunter}} | * {{achievement|Bounty Hunter}} | ||
Строка 50: | Строка 54: | ||
* {{tl|Achievement box}} — For displaying a full achievement box. | * {{tl|Achievement box}} — For displaying a full achievement box. | ||
− | [[Category:Achievement formatting templates]]</noinclude> | + | [[Category:Achievement formatting templates]] |
+ | </noinclude> |
Текущая версия на 12:37, 6 июня 2021
Содержание
Description[править]
Generates a simple line summarizing the achievement. Ideal for "Related achievements" sections. Formatted using {{Achievement result format}}.
Usage[править]
{{achievement|<achievement name>}} {{achievement|<achievement name>|category=<achievement category>}} {{achievement|<achievement name>|id=<achievement id>}}
Parameters[править]
- 1 (unnamed parameter)
- Achievement name. This parameter is used to specify the precise name of an achievement as it appears ingame.
- category
- Optional. Achievement category. This parameter should only be used if multiple achievements have the same name.
- id
- Optional. For use to discriminate between two identically named achievements in the same category.
Examples[править]
* {{achievement|Bounty Hunter}} * {{achievement|New Afterlife for Quaggan|category=Shadow of the Mad King (2015 achievements)}}
- No result for achievement "Bounty Hunter". It may not have been added to the wiki yet.
- No result for achievement "New Afterlife for Quaggan". It may not have been added to the wiki yet.
See also[править]
- {{Achievement box}} — For displaying a full achievement box.