Шаблон:Achievement box — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<includeonly>{| {{STDT|mech1}} style="display:table; {{{style|}}}" {{#ask: [[Has achievement category::{{{category|+}}}]]<!-- Unique to achievement subobjects --…»)
 
 
Строка 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:{{{name|{{PAGENAME}}}}}}}]]
+
  [[Has canonical name::{{#titleparts:{{{1|{{#replace:{{PAGENAME}}|(achievement)}}}}}}}]]
|?Has canonical name               <!-- {{{2}}} -->
+
{{#if: {{{id|}}} | [[Has game id::{{{id}}}]] }}
|?Has achievement type             <!-- {{{3}}} -->
+
| ?Has canonical name                 <!-- {{{2}}} -->
|?Has game description             <!-- {{{4}}} -->
+
| ?Has achievement type               <!-- {{{3}}} -->
|?Has prerequisite                 <!-- {{{5}}} -->
+
| ?Has game description               <!-- {{{4}}} -->
|?Gives item                       <!-- {{{6}}} -->
+
| ?Has prerequisite                   <!-- {{{5}}} -->
|?Gives item quantity             <!-- {{{7}}} -->
+
| ?Gives item                         <!-- {{{6}}} -->
|?Gives title                     <!-- {{{8}}} -->
+
| ?Gives item quantity               <!-- {{{7}}} -->
|?Has achievement tiers           <!-- {{{9}}} -->
+
| ?Gives title                       <!-- {{{8}}} -->
|?Has achievement category         <!-- {{{10}}} -->
+
| ?Has achievement tiers             <!-- {{{9}}} -->
|?Has flavor text                 <!-- {{{11}}} -->
+
| ?Has achievement category           <!-- {{{10}}} -->
|?Has achievement page             <!-- {{{12}}} -->
+
| ?Has flavor text                   <!-- {{{11}}} -->
|?Has unlock item                 <!-- {{{13}}} -->
+
| ?Has achievement page               <!-- {{{12}}} -->
|?Has game icon                   <!-- {{{14}}} -->
+
| ?Has unlock item                   <!-- {{{13}}} -->
|?Gives mastery track region point <!-- {{{15}}} -->
+
| ?Has game icon                     <!-- {{{14}}} -->
|?Has game id#                     <!-- {{{16}}} -->
+
| ?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>
== Usage ==
+
== 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|name=<achievement name>}}
+
{{achievement box|<achievement name>}}
{{achievement box|name=<achievement name>|category=<achievement category>}}
+
{{achievement box|<achievement name>|category=<achievement category>}}
 +
{{achievement box|<achievement name>|id=<achievement id>}}
 
</pre>
 
</pre>
  
== Parameters ==
+
=== Parameters ===
;name
+
;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|name=Speedy Reader}}
+
{{achievement box|Speedy Reader}}
 
</pre>
 
</pre>
{{achievement box|name=Speedy Reader}}
+
{{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[править]