Difference between revisions of "Quest info"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m |
||
Line 33: | Line 33: | ||
! 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:{{{rewards|}}}|{{ | + | {{#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 | ||
-->|@|{{#vardefine:name|{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}}}<!-- get name | -->|@|{{#vardefine:name|{{#explode:{{#sub:@|{{#pos:@| }}}}|#|0}}}}<!-- get name | ||
Line 48: | Line 48: | ||
-->|quality={{#if:{{#explode:@|#|1}}<!-- if quality is specified | -->|quality={{#if:{{#explode:@|#|1}}<!-- if quality is specified | ||
-->|{{#explode:@|#|1}}}}}}<!-- use specified quality | -->|{{#explode:@|#|1}}}}}}<!-- use specified quality | ||
− | --> x{{#explode:@| |0}}}}}}}}}}<!-- item quantity --> | + | --> x{{#explode:@| |0}}}}}}}}}}<!-- item quantity -->}} |
|}</div><!-- | |}</div><!-- | ||
DESCRIPTION | DESCRIPTION |
Revision as of 00:35, 10 February 2024
Description
Displays an information page about a Quest.
Usage
{{Quest info|<image=image>|<name=name>|<description=description>|<category=category>|<quest giver=quest giver>|<previous=previous>|<rewards=rewards>}}
Parameters
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
No description was provided. Add a description parameter.