Difference between revisions of "Template:Quest list result format"
Jump to navigation
Jump to search
(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) |
Tag: Manual revert |
||
(94 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| [[{{{1|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]] | | [[{{{1|}}}|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}]] | ||
| style="text-align:left; padding-left:15px;" | {{#if:{{#var:quest-list-hide-type}}||{{!}} style="text-align:left; padding-left:15px;" {{!}} {{#if:{{{3|}}}|[[File:{{#switch: {{lc:{{{3|}}}}} | ||
| main scenario = | | main scenario = Mainscenarioquest.png | ||
| quest | side | side story = | | quest | side | side story = Sidequest.png | ||
| daily = | | daily = Dailyquest.png | ||
| feature | class | job | role | crystalline mean = | | feature | class | job | role | crystalline mean = Featurequest.png | ||
| repeatable feature | repfeature = Repeatablefeaturequest.png | | repeatable feature | repfeature = Repeatablefeaturequest.png | ||
| levequest = Levequest | | levequest = Levequest.png | ||
| other = Otherquest.png | | other = Otherquest.png | ||
| #default = | | #default = Sidequest.png}}|30px|{{#ifeq:{{{3|}}}|Sidequest|Sidequest|{{{3|}}} quest}}|link=Quest]]}} }} | ||
| style="padding-left:10px;" | {{{4|}}} | | style="padding-left:10px;" | {{{4|}}} | ||
| {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!-- | | {{#if:{{{5|}}}|[[{{{5|}}}]]}}<!-- | ||
-->{{#if:{{#var:quest-list-required-items}} | {{!!}} {{#if:{{{8|}}} | {{#arraymap:{{{8|}}}‡|)‡|@@@| | |||
{{#vardefine:tmp-name|{{#explode:{{#explode:@@@|(|1|2}}|,|0}}}} | |||
{{#vardefine:tmp-qty|{{#explode:@@@| |0}}}} | |||
{{#vardefine:tmp-hq|{{#explode:@@@|,|-1}}}} | |||
{{Item reward|{{#var:tmp-qty}}|{{#ifeq:{{#var:tmp-hq}}|true|HQ {{#var:tmp-name}}|{{#var:tmp-name}}}}|no-smw=y}}<br>|}}}} | |||
}}<!-- | |||
-->{{#if:{{#var:quest-list-unlocks}}| | -->{{#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 | ||
|AdventurerPlate=ap | |||
|Aetheryte=aet | |||
|Trait=tt | |Trait=tt | ||
|Dungeon=dg | |Dungeon=dg | ||
|DeepDungeon=dd | |||
|VariantDungeon=vc | |||
|StoneSkySea=sss | |||
|Emote=em | |Emote=em | ||
|Location=lc | |Location=lc | ||
|Other=ot | |Other=ot | ||
|Raid=ra | |Raid=ra | ||
|UltimateRaid=ul | |||
|Guildhest=gh | |||
|Trial=tr | |Trial=tr | ||
| | |PvPmode=pvp | ||
|AetherCurrent=cur | |AetherCurrent=cur | ||
|Achievement=ach | |Achievement=ach | ||
|MountSpeed=ms | |MountSpeed=ms | ||
|NewGamePlus=ngp | |||
|Reputation=r | |Reputation=r | ||
|Reputation Neutral=r1 | |Reputation Neutral=r1 | ||
Line 37: | Line 51: | ||
|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| | {{#vardefine:tmp-name|{{#explode:@@@|,|-4}}}} | ||
{{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}} | |||
{{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}} | {{#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}} | {{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}} | ||
{{#vardefine:tmp-optional|{{#explode:@@@|,|-2}}}} | |||
{{#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}}}}|}} | |||
}} {{#if:{{{9|}}}|'''<div style="margin-top:5px;">Options:</div>'''}}<!-- | |||
-->{{#if:{{{7|}}} | {{#arraymap:{{{7|}}}‡|)‡|@@@| | |||
{{#vardefine:tmp-name|{{#explode:@@@|,|-4}}}} | |||
{{#vardefine:tmp-minqty|{{#sub:{{#explode:@@@| |1}}|1|-1}}}} | |||
{{#vardefine:tmp-maxqty|{{#sub:{{#explode:@@@| |2}}|0|-1}}}} | |||
{{#vardefine:tmp-qty|{{#var:tmp-minqty}}{{#ifeq:{{#var:tmp-maxqty}}|0||-{{#var:tmp-maxqty}}}}}} | |||
{{#vardefine:tmp-optional|{{#explode:@@@|,|-2}}}} | |||
{{#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}}}}|}} | |||
}} | |||
}} | |||
</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 52: | Line 81: | ||
#Has system unlock (optional) | #Has system unlock (optional) | ||
#Has item reward (optional) | #Has item reward (optional) | ||
#Requires item (optional) | |||
#Is providing optional reward (optional) | |||
[[Category:Quest formatting templates]] | [[Category:Quest formatting templates]] | ||
[[Category:Semantic result templates]] | [[Category:Semantic result templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:00, 4 January 2024
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)