Шаблон:Achievement result format — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии 2 участников) | |||
Строка 1: | Строка 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#ifeq: {{lc:{{#show: {{{1}}} | ?Has achievement group }} }} | historical | <span style="color: #808080;"> }}<!-- |
− | {{ | + | -->{{#if: {{{2|}}} | [[{{{2}}}|20px|link={{{1}}}]] {{cname|{{{1}}}}}: | {{cname|{{{1}}}}}: }} [[{{#ifeq: {{{1}}} | {{#if:{{{16|}}}|{{{4}}}#{{{16}}}|{{{4}}}}} | {{{3}}} | {{#ifeq: {{{4}}} | {{PAGENAME}} | {{{3}}} | {{#if:{{{16|}}}|{{{4}}}#{{{16}}}|{{{4}}}}} }} }}|{{{5}}}]] {{#if: {{{6|}}} | — ''{{#replace:{{{6}}}|<br>| }}'' | {{#if: {{{7|}}} | — ''{{#replace:{{{7}}}|<br>| }}'' }} }}(<!-- |
− | {{# | + | -->{{ap |
− | + | | {{#if: {{{8|}}} | |
− | + | | {{#expr: {{#arraymap: {{{8|}}} | ~ | @@@ | {{#explode:@@@|;|-1}} | +}} }} | |
− | + | | 0 | |
− | + | }} | |
− | + | }}<!-- | |
− | + | -->{{#if: {{{9|}}} | [[File:Mastery point ({{{9}}}).png|16px|link=Mastery point|{{{9}}} mastery point]] }}<!-- | |
− | + | -->{{#ifeq: {{lc:{{{10|}}}}} | repeatable | [[File:Tango repeatable event.png|16px|link=|Repeatable {{#if: {{{11|}}} | (AP is capped at {{{11}}}) }}]] }}<!-- | |
− | + | -->{{#if: {{{12|}}} | {{#if: {{#pos: {{{12}}}|,}}|<!-- several rewards -->[[File:Chest icon.png|16px|link=|Several tier rewards]]|<!-- one reward -->[[File:Chest icon.png|16px|link={{{12}}}|{{{12}}} {{#if: {{{13|}}} | {{#ifexpr: {{{13|1}}}>1 | (x{{{13}}}) }} }}]] }} }}<!-- | |
− | + | -->{{#if: {{{14|}}} | [[File:Title icon.png|16px|link=|Title: {{{14}}}]] }}<!-- | |
− | + | -->{{#ifeq: {{{15|}}} | true | [[File:Awakened suspicious (Forearmed Is Forewarned map icon).png|20px|link=|This is a hidden achievement.]] }})<!-- | |
− | + | -->{{#ifeq: {{lc:{{#show: {{{1}}} | ?Has achievement group }} }} | historical | (Historical)</span> }}</includeonly><noinclude> | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{#if:{{{ | ||
− | |||
− | }}{{# | ||
− | : | ||
− | }}<!-- | ||
− | {{# | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | }}</includeonly><noinclude> | ||
− | This is a semantic result template for use in {{tl|achievement | + | This is a semantic result template for use in {{tl|achievement}}. It's designed to be a non-obtrusive alternative to {{tl|achievement box}}, for use in "Related achievements" sections. The input parameters generated by the semantic query are: |
− | # | + | #Has achievement category |
+ | #Has game icon | ||
+ | #Link to this achievement's entry on category page | ||
+ | #Has achievement page | ||
#Has canonical name | #Has canonical name | ||
+ | #Has game description | ||
+ | #Has flavor text | ||
+ | #Has achievement tiers | ||
+ | #Gives mastery track region point | ||
#Has achievement type | #Has achievement type | ||
− | #Has | + | #Has AP cap |
− | |||
#Gives item | #Gives item | ||
#Gives item quantity | #Gives item quantity | ||
#Gives title | #Gives title | ||
− | # | + | #Is hidden achievement |
− | + | #Has achievement page section | |
− | |||
− | #Has achievement page | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Achievement formatting templates]] | [[Category:Achievement formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Текущая версия на 12:37, 6 июня 2021
This is a semantic result template for use in {{achievement}}. It's designed to be a non-obtrusive alternative to {{achievement box}}, for use in "Related achievements" sections. The input parameters generated by the semantic query are:
- Has achievement category
- Has game icon
- Link to this achievement's entry on category page
- Has achievement page
- Has canonical name
- Has game description
- Has flavor text
- Has achievement tiers
- Gives mastery track region point
- Has achievement type
- Has AP cap
- Gives item
- Gives item quantity
- Gives title
- Is hidden achievement
- Has achievement page section