Шаблон:Achievement result format — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#ifeq: {{lc:{{#show: {{{1}}} | ?Has achievement group }} }} | historical | <span style="color: #808080;"> }}<!-- | <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}}} | {{{4}}} | {{{3}}} | {{{4}}} }}|{{{5}}}]] {{#if: {{{6|}}} | — ''{{{6}}}'' | {{#if: {{{7|}}} | — ''{{{7}}}'' }} }}(<!-- | + | -->{{#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 | -->{{ap | ||
| {{#if: {{{8|}}} | | {{#if: {{{8|}}} | ||
Строка 9: | Строка 9: | ||
-->{{#if: {{{9|}}} | [[File:Mastery point ({{{9}}}).png|16px|link=Mastery point|{{{9}}} mastery point]] }}<!-- | -->{{#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}}}) }}]] }}<!-- | -->{{#ifeq: {{lc:{{{10|}}}}} | repeatable | [[File:Tango repeatable event.png|16px|link=|Repeatable {{#if: {{{11|}}} | (AP is capped at {{{11}}}) }}]] }}<!-- | ||
− | -->{{#if: {{{12|}}} | [[File:Chest icon.png|16px|link={{{12}}}|{{{12}}} {{#if: {{{13|}}} | {{#ifexpr: {{{13|1}}}>1 | (x{{{13}}}) }} }}]] }}<!-- | + | -->{{#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= | + | -->{{#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> | -->{{#ifeq: {{lc:{{#show: {{{1}}} | ?Has achievement group }} }} | historical | (Historical)</span> }}</includeonly><noinclude> | ||
Строка 28: | Строка 29: | ||
#Gives item quantity | #Gives item quantity | ||
#Gives title | #Gives title | ||
+ | #Is hidden achievement | ||
+ | #Has achievement page section | ||
[[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