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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(adding PvP mode)
(Fix item reward parsing issue with >3-digit rewards; #explode matched delimiter ', ' (comma followed by space) with just a comma, splitting at the thousands separator)
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|}}}‡|)‡|@@@|{{#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-name|{{#ifeq:{{#explode:@@@|,|5}}||{{trim|{{#explode:@@@|,|2}}}}|{{trim|{{#explode:@@@|,|3}}}}}}}}
                                    {{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}}
                                    {{Item reward|{{#sub:{{#explode:@@@| |1}}|1|-1}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}|{{#var:tmp-name}}|no-smw=y}}|<br>}}
                        }}
      }}
</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:
Line 48: Line 53:
#Has item reward (optional)
#Has item reward (optional)


{{table footer}}
[[Category:Quest formatting templates]]
[[Category:Quest formatting templates]]
[[Category:Semantic result templates]]
[[Category:Semantic result templates]]
</noinclude>
</noinclude>

Revision as of 11:05, 11 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)

|}