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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 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}}}}}&#58; | {{cname|{{{1}}}}}&#58; }} [[{{#ifeq: {{{1}}} | {{{4}}} | {{{3}}} | {{{4}}} }}|{{{5}}}]] {{#if: {{{6|}}} | — ''{{{6}}}''&nbsp; | {{#if: {{{7|}}} | — ''{{{7}}}''&nbsp; }} }}(<!--
+
-->{{#if: {{{2|}}} | [[{{{2}}}|20px|link={{{1}}}]] {{cname|{{{1}}}}}&#58; | {{cname|{{{1}}}}}&#58; }} [[{{#ifeq: {{{1}}} | {{#if:{{{16|}}}|{{{4}}}#{{{16}}}|{{{4}}}}} | {{{3}}} | {{#ifeq: {{{4}}} | {{PAGENAME}} | {{{3}}} | {{#if:{{{16|}}}|{{{4}}}#{{{16}}}|{{{4}}}}} }} }}|{{{5}}}]] {{#if: {{{6|}}} | — ''{{#replace:{{{6}}}|<br>|&ensp;}}''&nbsp; | {{#if: {{{7|}}} | — ''{{#replace:{{{7}}}|<br>|&ensp;}}''&nbsp; }} }}(<!--
 
-->{{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=Title|Title: {{{14}}}]] }})<!--
+
-->{{#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 | &nbsp;(Historical)</span> }}</includeonly><noinclude>
 
-->{{#ifeq: {{lc:{{#show: {{{1}}} | ?Has achievement group }} }} | historical | &nbsp;(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:

  1. Has achievement category
  2. Has game icon
  3. Link to this achievement's entry on category page
  4. Has achievement page
  5. Has canonical name
  6. Has game description
  7. Has flavor text
  8. Has achievement tiers
  9. Gives mastery track region point
  10. Has achievement type
  11. Has AP cap
  12. Gives item
  13. Gives item quantity
  14. Gives title
  15. Is hidden achievement
  16. Has achievement page section