Difference between revisions of "Template:ZZZQuest list result format"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Line 11: Line 11:
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!--
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!--
-->{{#if:{{#var:quest-list-unlocks}}|
-->{{#if:{{#var:quest-list-unlocks}}|
{{!!}} {{#if:{{{6|}}} | {{#arraymap:{{{6|}}}‡|)‡|@@@|{{Unlock reward|{{#switch:{{#sub:{{#explode:@@@| |1}}|1|-1}}|Action=ac|Trait=tt|Dungeon=dg|Emote=em|Location=lc|Other=ot|Raid=ra|Trial=tr|AetherCurrent=cur|Achievement=ach|Reputation=r|Reputation Neutral=r1|Reputation Recognized=r2|Reputation Friendly=r3|Reputation Trusted=r4|Reputation Respected=r5|Reputation Honored=r6|Reputation Sworn=r7|Reputation Allied=r8}}|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}|no-smw=y}}|<br>}} }} }}<!--
{{!!}} {{#if:{{{6|}}} | {{#arraymap:{{{6|}}}‡|)‡|@@@|{{Unlock reward
|{{#switch:{{#sub:{{#explode:@@@| |1}}|1|-1}}
|Action=ac
|Trait=tt
|Dungeon=dg
|Emote=em
|Location=lc
|Other=ot
|Raid=ra
|Trial=tr
|AetherCurrent=cur
|Achievement=ach
|Reputation=r
|Reputation Neutral=r1
|Reputation Recognized=r2
|Reputation Friendly=r3
|Reputation Trusted=r4
|Reputation Respected=r5
|Reputation Honored=r6
|Reputation Sworn=r7
|Reputation Allied=r8}}|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}|no-smw=y}}|<br>}} }} }}<!--
-->{{#if:{{#var:quest-list-item-rewards}}|
-->{{#if:{{#var:quest-list-item-rewards}}|
{{!!}} {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|{{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}{{Item reward|{{#sub:{{#explode:@@@| |1}}|1|-1}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}|{{trim|{{#explode:@@@|, |2}}}}|no-smw=y}}|<br>}} }} }}
{{!!}} {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|{{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}{{Item reward|{{#sub:{{#explode:@@@| |1}}|1|-1}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}|{{trim|{{#explode:@@@|, |2}}}}|no-smw=y}}|<br>}} }} }}

Revision as of 01:56, 23 February 2020

This is a semantic result template for use in {{quest list row}}. The input parameters generated by the semantic query are:

  1. PAGENAME
  2. Has canonical name
  3. Has quest type
  4. Has quest level
  5. Has quest giver
  6. Has system unlock (optional)
  7. Has item reward (optional)