Difference between revisions of "Quest info"
Stratonian (talk | contribs) m (location parameter) |
Stratonian (talk | contribs) m |
||
(20 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
-->|{{sc|{{{category}}}}}<!-- use specified category | -->|{{sc|{{{category}}}}}<!-- use specified category | ||
-->|Quests}}]]}}<!-- else use Category:Quests | -->|Quests}}]]}}<!-- else use Category:Quests | ||
+ | |||
+ | succeeded quests | ||
+ | -->{{#arraydefine:succeeded by|{{#ask:[[Has previous::{{{name|{{PAGENAME}}}}}]]|format=plainlist|propsep=;}}|;}}<!-- | ||
reward items are comma-separated and in the format: | reward items are comma-separated and in the format: | ||
Line 33: | Line 36: | ||
! colspan="2" class="quest" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name --> | ! colspan="2" class="quest" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name --> | ||
|- | |- | ||
− | {{#if:{{#var:typeText}}|{{ | + | {{#if:{{#var:typeText}}|{{InfoboxRow|'''Type'''|{{#var:typeText}}}}}} |
|- | |- | ||
− | {{#if:{{{quest giver|}}}|{{ | + | {{#if:{{{quest giver|}}}|{{InfoboxRow|'''Quest Giver'''|[[{{{quest giver}}}]]}}}} |
|- | |- | ||
− | {{#if:{{{location|}}}|{{ | + | {{#if:{{{location|}}}|{{InfoboxRow|'''Location'''|[[{{{location}}}]]}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{previous|}}}|{{InfoboxRow|'''Preceded by'''|[[{{{previous}}}]]}}}} |
+ | |- | ||
+ | {{#if:{{#arrayprint:succeeded by}}|{{InfoboxRow|'''Succeeded by'''|{{#arrayprint:succeeded by|<br>}}}}}} | ||
+ | |- | ||
+ | {{#if:{{{rewards|}}}|{{InfoboxRow|'''Rewards'''|<!-- rewards row | ||
-->{{#arrayprint:rewards|<br><!-- print rewards array, separated by line breaks | -->{{#arrayprint:rewards|<br><!-- print rewards array, separated by line breaks | ||
− | -->|@|{{ | + | -->|@|{{reward<!-- |
− | --> | + | -->|{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}<!-- reward name |
− | + | -->|{{#explode:@| |0}}<!-- reward quantity | |
− | + | -->|{{#if:{{#explode:@|#|1}}|{{#explode:@|#|1}}}}<!-- reward quality | |
− | + | -->}}}}}}}} | |
− | -->|{{#if:{{#explode:@|#|1}} | ||
− | |||
− | |||
− | --> | ||
|}</div><!-- | |}</div><!-- | ||
DESCRIPTION | DESCRIPTION | ||
− | -->{{#if:{{{description|}}}|{{quotation|{{{description}}}|game}}}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> | + | -->{{#if:{{{description|}}}|{{quotation|{{{description}}}|game}}}}<!-- |
+ | SET PROPERTIES | ||
+ | -->{{#if:{{{name|}}}{{NAMESPACE}}|<!-- if there is a name parameter or namespace don't set any properties | ||
+ | -->|{{#if:{{{quest giver|}}}|{{#set:Has quest giver={{{quest giver}}}}}}}<!-- set 'Has quest giver' property | ||
+ | |||
+ | -->{{#if:{{{previous|}}}|{{#set:Has previous={{{previous}}}}}}}<!-- set 'Has previous' property | ||
+ | |||
+ | -->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Latest revision as of 10:43, 2 July 2024
Description[edit]
Displays an information page about a Quest.
Usage[edit]
{{Quest info|<image=image>|<name=name>|<description=description>|<category=category>|<quest giver=quest giver>|<previous=previous>|<rewards=rewards>}}
Parameters[edit]
image: A map or image of the quest location.
- Optional. Defaults to '
{{PAGENAME}}.jpg
'. - Notes: Only use if the image name differs from the name of the page.
name: The name of the quest.
- Optional. Defaults to '
{{PAGENAME}}
'. - Notes: Only use if the template is on a different page to the quest's main article.
Possible categories:
- •guild quests
- •main quests
- •side quests
rewards: A comma-separated list experience, gold, or items recieved upon quest completion.
- Optional.
- Notes: Only specify item quality if it differs from its default quality. e.g. '
[quantity1] [reward1]#[quality1], [quantity2] [reward2]#[quality2], etc
'. Useitem choice
to show a choice of one item.
Errors[edit]
No description was provided. Add a description parameter.