Шаблон:Achievement box — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Новая страница: «<includeonly>{| {{STDT|mech1}} style="display:table; {{{style|}}}" {{#ask: [[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --…») |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | <includeonly>{| {{STDT|mech1}} style="display:table; {{{style|}}}" | + | <includeonly>{| {{STDT|mech1 achievementbox}} style="display:table; {{{style|}}}" |
{{#ask: | {{#ask: | ||
[[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --> | [[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --> | ||
− | [[Has canonical name::{{#titleparts:{{{ | + | [[Has canonical name::{{#titleparts:{{{1|{{#replace:{{PAGENAME}}|(achievement)}}}}}}}]] |
− | |?Has canonical name | + | {{#if: {{{id|}}} | [[Has game id::{{{id}}}]] }} |
− | |?Has achievement type | + | | ?Has canonical name <!-- {{{2}}} --> |
− | |?Has game description | + | | ?Has achievement type <!-- {{{3}}} --> |
− | |?Has prerequisite | + | | ?Has game description <!-- {{{4}}} --> |
− | |?Gives item | + | | ?Has prerequisite <!-- {{{5}}} --> |
− | |?Gives item quantity | + | | ?Gives item <!-- {{{6}}} --> |
− | |?Gives title | + | | ?Gives item quantity <!-- {{{7}}} --> |
− | |?Has achievement tiers | + | | ?Gives title <!-- {{{8}}} --> |
− | |?Has achievement category | + | | ?Has achievement tiers <!-- {{{9}}} --> |
− | |?Has flavor text | + | | ?Has achievement category <!-- {{{10}}} --> |
− | |?Has achievement page | + | | ?Has flavor text <!-- {{{11}}} --> |
− | |?Has unlock item | + | | ?Has achievement page <!-- {{{12}}} --> |
− | |?Has game icon | + | | ?Has unlock item <!-- {{{13}}} --> |
− | |?Gives mastery track region point <!-- {{{15}}} --> | + | | ?Has game icon <!-- {{{14}}} --> |
− | |?Has game id# | + | | ?Gives mastery track region point <!-- {{{15}}} --> |
− | |link = none | + | | ?Has game id# <!-- {{{16}}} --> |
− | |format = template | + | | ?Is hidden achievement <!-- {{{17}}} --> |
− | |template = Achievement box result format | + | | ?Has achievement tier rewards <!-- {{{18}}} --> |
+ | | ?Has achievement collection <!-- {{{19}}} --> | ||
+ | | ?Has achievement objectives <!-- {{{20}}} --> | ||
+ | | ?Has achievement page section <!-- {{{21}}} --> | ||
+ | | ?Gives mastery track region point quantity <!-- {{{22}}} --> | ||
+ | | ?Has achievement category.Has canonical name <!-- {{{23}}} --> | ||
+ | | link = none | ||
+ | | format = template | ||
+ | | template = Achievement box result format{{!}}expanded={{#if: {{{expanded|}}}|true|false}}{{!}}source=Achievement box | ||
+ | | default = {{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}} | ||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
− | == | + | == Description == |
Generates an individual achievement box. For generating a list of achievements, use {{tl|achievement list}}. Formatted using {{tl|Achievement box result format}}. | Generates an individual achievement box. For generating a list of achievements, use {{tl|achievement list}}. Formatted using {{tl|Achievement box result format}}. | ||
+ | == Usage == | ||
<pre> | <pre> | ||
{{achievement box}} | {{achievement box}} | ||
− | {{achievement box| | + | {{achievement box|<achievement name>}} |
− | {{achievement box|name=<achievement name>| | + | {{achievement box|<achievement name>|category=<achievement category>}} |
+ | {{achievement box|<achievement name>|id=<achievement id>}} | ||
</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. | : Achievement name. This parameter is used to specify the precise name of an achievement as it appears ingame. | ||
;category | ;category | ||
: Optional. Achievement category. This parameter should only be used if multiple achievements have the same name. | : 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. | ||
;style | ;style | ||
: Optional. If specified, adds additional HTML styling to the table. Avoid quote marks. | : Optional. If specified, adds additional HTML styling to the table. Avoid quote marks. | ||
+ | ;expanded | ||
+ | :Optional. If set, fully expands the collapsed tier, objectives and tier rewards subtables. | ||
− | == Examples == | + | === Examples === |
<pre> | <pre> | ||
− | {{achievement box| | + | {{achievement box|Speedy Reader}} |
</pre> | </pre> | ||
− | {{achievement box| | + | {{achievement box|Speedy Reader}} |
== See also == | == See also == |
Текущая версия на 21:47, 14 апреля 2021
Содержание
Description[править]
Generates an individual achievement box. For generating a list of achievements, use {{achievement list}}. Formatted using {{Achievement box result format}}.
Usage[править]
{{achievement box}} {{achievement box|<achievement name>}} {{achievement box|<achievement name>|category=<achievement category>}} {{achievement box|<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.
- style
- Optional. If specified, adds additional HTML styling to the table. Avoid quote marks.
- expanded
- Optional. If set, fully expands the collapsed tier, objectives and tier rewards subtables.
Examples[править]
{{achievement box|Speedy Reader}}
Speedy Reader | Explorer | 10 |
---|---|---|
Read the complete history of the founding of Ebonhawke in one day.Broken into twenty volumes for easy reading! | Explorer Achievement | 10 |
See also[править]
- {{Achievement}} — A minimalist alternative.