Шаблон:Achievement — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
− | <includeonly> | + | <includeonly>{{#ask: |
− | {{#ask:[[Has achievement category::{{{ | + | [[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --> |
− | + | [[Has canonical name::{{#titleparts:{{{1|{{#replace:{{PAGENAME}}|(achievement)}}}}}}}]] | |
− | + | {{#if: {{{id|}}} | [[Has game id::{{{id}}}]] }} | |
− | |?Has | + | | ?Has achievement category <!-- 1 --> |
− | |? | + | | ?Has game icon <!-- 2 --> |
− | |?Has | + | | ? <!-- 3 --> |
− | |?Has | + | | ?Has achievement page <!-- 4 --> |
− | |? | + | | ?Has canonical name <!-- 5 --> |
− | |? | + | | ?Has game description <!-- 6 --> |
− | |? | + | | ?Has flavor text <!-- 7 --> |
− | |? | + | | ?Has achievement tiers <!-- 8 --> |
− | |?Has achievement | + | | ?Gives mastery track region point <!-- 9 --> |
− | |?Has | + | | ?Has achievement type <!-- 10 --> |
− | |? | + | | ?Has AP cap <!-- 11 --> |
− | |? | + | | ?Gives item <!-- 12 --> |
− | |? | + | | ?Gives item quantity <!-- 13 --> |
− | |? | + | | ?Gives title <!-- 14 --> |
− | |?Has | + | | ?Is hidden achievement <!-- 15 --> |
− | |link = none | + | | ?Has achievement page section <!-- 16 --> |
− | |format = template | + | | mainlabel = - |
− | |template = Achievement result format | + | | link = none |
− | }} | + | | format = template |
− | + | | 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> | ||
+ | == 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 name>}} | |
− | {{achievement|<achievement>}} | + | {{achievement|<achievement name>|category=<achievement category>}} |
− | {{achievement|name=<achievement | + | {{achievement|<achievement name>|id=<achievement id>}} |
− | {{achievement|<achievement>|<achievement | ||
</pre> | </pre> | ||
− | == Parameters == | + | === 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 | |
− | :Achievement name. This parameter is used to specify an achievement | + | : Optional. For use to discriminate between two identically named achievements in the same category. |
− | : | ||
− | |||
− | |||
− | ; | ||
− | :Optional. | ||
− | == Examples == | + | === Examples === |
<pre> | <pre> | ||
− | {{achievement| | + | * {{achievement|Bounty Hunter}} |
+ | * {{achievement|New Afterlife for Quaggan|category=Shadow of the Mad King (2015 achievements)}} | ||
</pre> | </pre> | ||
− | {{achievement| | + | * {{achievement|Bounty Hunter}} |
+ | * {{achievement|New Afterlife for Quaggan|category=Shadow of the Mad King (2015 achievements)}} | ||
+ | |||
+ | == See also == | ||
+ | * {{tl|Achievement box}} — For displaying a full achievement box. | ||
− | [[Category:Achievement formatting templates | + | [[Category:Achievement formatting templates]] |
</noinclude> | </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.