Difference between revisions of "Template:Quest list result format"
Jump to navigation
Jump to search
(Move optional rewards code into the preceding if clause to remove extra <br> in last column) |
(Add optional Required Items column) |
||
Line 12: | Line 12: | ||
| style="padding-left:10px;" | {{{4|}}} | | style="padding-left:10px;" | {{{4|}}} | ||
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!-- | | {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!-- | ||
-->{{#if:{{#var:quest-list-unlocks}}| | -->{{#if:{{#var:quest-list-required-items}} | {{!!}} {{#if:{{{8|}}} | {{#arraymap:{{{8|}}}‡|)‡|@@@| | ||
{{#vardefine:tmp-name|{{#sub:{{#explode:@@@| |1|2}}|1|0}}}} | |||
{{#vardefine:tmp-qty|{{#explode:@@@| |0}}}} | |||
{{Item reward|{{#var:tmp-qty}}|{{#var:tmp-name}}|no-smw=y}}<br>|}}}} | |||
}} | |||
{{#if:{{#var:quest-list-unlocks}}| | |||
{{!!}} {{#if:{{{6|}}} | {{#arraymap:{{{6|}}}‡|)‡|@@@|{{Unlock reward|{{#switch:{{#sub:{{#explode:@@@| |1}}|1|-1}} | {{!!}} {{#if:{{{6|}}} | {{#arraymap:{{{6|}}}‡|)‡|@@@|{{Unlock reward|{{#switch:{{#sub:{{#explode:@@@| |1}}|1|-1}} | ||
|Action=ac | |Action=ac | ||
Line 66: | Line 71: | ||
#Has system unlock (optional) | #Has system unlock (optional) | ||
#Has item reward (optional) | #Has item reward (optional) | ||
#Requires item (optional) | |||
[[Category:Quest formatting templates]] | [[Category:Quest formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Revision as of 10:08, 24 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)
- Requires item (optional)