Difference between revisions of "Template:Quest list result format"
Jump to navigation
Jump to search
Line 56: | Line 56: | ||
{{#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:@@@|,|-2}}}} | {{#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>'''}}<!-- | ||
Line 65: | Line 66: | ||
{{#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:@@@|,|-2}}}} | {{#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}}}}|}} | ||
}} | }} |
Revision as of 23:26, 6 December 2023
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)
- Requires item (optional)
- Is providing optional reward (optional)