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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
 
(35 intermediate revisions by the same user not shown)
Line 13: Line 13:
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!--
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!--
-->{{#if:{{#var:quest-list-required-items}} | {{!!}} {{#if:{{{8|}}} | {{#arraymap:{{{8|}}}‡|)‡|@@@|
-->{{#if:{{#var:quest-list-required-items}} | {{!!}} {{#if:{{{8|}}} | {{#arraymap:{{{8|}}}‡|)‡|@@@|
                                     {{#vardefine:tmp-name|{{#sub:{{#explode:@@@| |1|2}}|1|0}}}}
                                     {{#vardefine:tmp-name|{{#explode:{{#explode:@@@|(|1|2}}|,|0}}}}
                                     {{#vardefine:tmp-qty|{{#explode:@@@| |0}}}}
                                     {{#vardefine:tmp-qty|{{#explode:@@@| |0}}}}
                                     {{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>|}}}}
                                    {{#vardefine:tmp-hq|{{#explode:@@@|,|-1}}}}
                                     {{Item reward|{{#var:tmp-qty}}|{{#ifeq:{{#var:tmp-hq}}|true|HQ {{#var:tmp-name}}|{{#var:tmp-name}}}}|no-smw=y}}<br>|}}}}
   }}<!--
   }}<!--
-->{{#if:{{#var:quest-list-unlocks}}|
-->{{#if:{{#var:quest-list-unlocks}}|
Line 39: Line 40:
|MountSpeed=ms
|MountSpeed=ms
|NewGamePlus=ngp
|NewGamePlus=ngp
|UnendingCodex=uc
|ChaoticAllianceRaid=car
|Reputation=r
|Reputation=r
|Reputation Neutral=r1
|Reputation Neutral=r1
Line 50: Line 53:
|Reputation Allied=r9}}|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}|no-smw=y}}|<br>}} }} }}<!--
|Reputation Allied=r9}}|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}|no-smw=y}}|<br>}} }} }}<!--
-->{{#if:{{#var:quest-list-item-rewards}}|
-->{{#if:{{#var:quest-list-item-rewards}}|
     {{!!}} {{#if:{{{9|}}}|'''<div style="margin-top:5px;">Guaranteed:</div>'''}}<!--
     {{!!}} {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
        -->{{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
                                     {{#vardefine:tmp-name|{{#explode:@@@|,|-4}}}}
                                     {{#vardefine:tmp-name|{{#explode:@@@|,|-3}}}}
                                     {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
                                     {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
                                     {{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}
                                     {{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}
                                     {{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}}
                                     {{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}}
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-2}}}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                    {{#vardefine:tmp-hq|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#ifeq:{{#var:tmp-hq}}|true|HQ {{#var:tmp-name}}|{{#var:tmp-name}}}}|no-smw=y}}<br>}}
                                     {{#ifeq:{{#var:tmp-optional}}|false|{{#var:tmp-reward-line}}}}|}}
                                     {{#ifeq:{{#var:tmp-optional}}|false|{{#var:tmp-reward-line}}}}|}}
           }} {{#if:{{{9|}}}|'''<div style="margin-top:5px;">Options:</div>'''}}<!--
           }} {{#if:{{{9|}}}|'''<div style="margin-top:5px;">Options:</div>'''}}<!--
         -->{{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
         -->{{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
                                 {{#vardefine:tmp-name|{{#explode:@@@|,|-3}}}}
                                 {{#vardefine:tmp-name|{{#explode:@@@|,|-4}}}}
                                 {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
                                 {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
                                 {{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}
                                 {{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}
                                 {{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}}
                                 {{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}}
                                 {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                 {{#vardefine:tmp-optional|{{#explode:@@@|,|-2}}}}
                                 {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                {{#vardefine:tmp-hq|{{#explode:@@@|,|-1}}}}
                                 {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#ifeq:{{#var:tmp-hq}}|true|HQ {{#var:tmp-name}}|{{#var:tmp-name}}}}|no-smw=y}}<br>}}
                                 {{#ifeq:{{#var:tmp-optional}}|true|{{#var:tmp-reward-line}}}}|}}
                                 {{#ifeq:{{#var:tmp-optional}}|true|{{#var:tmp-reward-line}}}}|}}
             }}
             }}
Line 80: Line 84:
#Has item reward (optional)
#Has item reward (optional)
#Requires item (optional)
#Requires item (optional)
#Is providing optional reward (optional)


[[Category:Quest formatting templates]]
[[Category:Quest formatting templates]]
[[Category:Semantic result templates]]
[[Category:Semantic result templates]]
</noinclude>
</noinclude>

Latest revision as of 02:17, 9 December 2024

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)
  8. Requires item (optional)
  9. Is providing optional reward (optional)