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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Added a parameter to split Rewards column into two, one with optional rewards. Should move the arraymap internals into its own template, since it's essentially copypasted twice here.)
(Move optional rewards code into the preceding if clause to remove extra <br> in last column)
Line 37: Line 37:
|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:{{{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 45: Line 45:
                                     {{#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>}}
                                     {{#if:{{#var:quest-list-split-optional-rewards}}|{{#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:{{#var:quest-list-split-optional-rewards}}|
      }}
                  {{!!}} {{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@|
      {{#if:{{#var:quest-list-split-optional-rewards}}|{{!!}} {{#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 56: Line 54:
                                     {{#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>}}
                                     {{#if:{{#var:quest-list-split-optional-rewards}}|{{#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>
This is a semantic result template for use in {{tl|quest list row}}.  The input parameters generated by the semantic query are:
This is a semantic result template for use in {{tl|quest list row}}.  The input parameters generated by the semantic query are:

Revision as of 07:57, 24 January 2022

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)