Difference between revisions of "Template:Quest list result format"
Jump to navigation
Jump to search
Freedom4556 (talk | contribs) (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}}}} | {{!!}} {{#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:
- PAGENAME
- Has canonical name
- Has quest type
- Has quest level
- Has quest giver
- Has system unlock (optional)
- Has item reward (optional)
|}