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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Line 57: Line 57:
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                     {{#ifeq:{{#var:tmp-optional}}|false|{{#var:tmp-reward-line}}}}|{{#var:tmp-reward-line}}}}
                                     {{#if:{{#var:quest-list-split-optional-rewards}}|{{#ifeq:{{#var:tmp-optional}}|false|{{#var:tmp-reward-line}}}}|{{#var:tmp-reward-line}}}}|}}
           }} {{#if:{{{9|}}}|'''Optional rewards:'''}}
           }} {{#if:{{{9|}}}|'''Optional rewards:'''}} {{#if:{{#var:quest-list-split-optional-rewards}}|
                        {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
                  {{!!}} {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
                                     {{#vardefine:tmp-name|{{#explode:@@@|,|-3}}}}
                                     {{#vardefine:tmp-name|{{#explode:@@@|,|-3}}}}
                                     {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
                                     {{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}}
Line 66: Line 66:
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-optional|{{#explode:@@@|,|-1}}}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                     {{#vardefine:tmp-reward-line|{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>}}
                                     {{#ifeq:{{#var:tmp-optional}}|true|{{#var:tmp-reward-line}}}}|{{#var:tmp-reward-line}}}}
                                     {{#if:{{#var:quest-list-split-optional-rewards}}|{{#ifeq:{{#var:tmp-optional}}|true|{{#var:tmp-reward-line}}}}|{{#var:tmp-reward-line}}}}|}}
          }}
                        }}
            }}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
Line 79: Line 80:
#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>

Revision as of 04:57, 1 December 2023

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)