Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!
Difference between revisions of "Template:EpicQuest2"
m (Woops forgot to change the names of the rows: Fixed) |
(Tag: Undo) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{| | + | <includeonly>{{#if:{{{Name|}}}| |
− | | | + | <!-- create a subobject here if Name is set --> |
− | | | + | |
− | + | {{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | {{#subobject:quest{{#vardefineecho:questnumber|{{#expr:{{#var:questnumber|-1}}+1}}}} | |
− | {{{Level|<span style="color:red">Unknown</span>}}} | + | | Has game context =Quest |
− | + | | Has name ={{{Name|}}} | |
− | + | | Has level requirement = {{#if:{{{Level|}}}|{{{Level|1}}}|1}} | |
− | + | | Has quest sort order = {{#var:questnumber}} | |
− | {{{NPC|<span style="color:red">Unknown</span>}}} | + | | Has quest type ={{#if:{{{Type|}}}|{{{Type}}}|}} |
− | + | | Has quest giver = {{{NPC|}}} | |
+ | | Has quest location = {{{Dungeon|}}} | ||
+ | | Has quest reward item = {{#arraymap:{{{RewardItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=### | ||
+ | | Has quest reward item = {{#arraymap:{{{RewardItemChoice|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=### | ||
+ | | Has quest reward item = {{#arraymap:{{{ConditionalRewardItem|}}}|;|@@@|{{#explode:{{#explode:@@@|::|1}}| |0}};{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}}|###}}|+sep=### | ||
+ | | Has quest reward item = {{#arraymap:{{{ConditionalRewardItemChoice|}}}|;|@@@|{{#explode:{{#explode:@@@|::|1}}| |0}};{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}}|###}}|+sep=### | ||
+ | | Has quest objective item = {{#arraymap:{{{ObjectiveItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=### | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | |}}<table class=wikitable id="quest{{#var:questnumber}}"> | ||
+ | <tr> | ||
+ | <th style="width:100px">'''Level'''</th> | ||
+ | <td style="vertical-align:middle;padding:1em;">{{{Level|<span style="color:red">Unknown</span>}}}</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>'''Quest Giver'''</th> | ||
+ | <td style="vertical-align:middle;padding:1em;">{{{NPC|<span style="color:red">Unknown</span>}}}</td> | ||
+ | </tr> | ||
{{#if: {{{Prerequisite|}}} | | {{#if: {{{Prerequisite|}}} | | ||
− | + | <tr> | |
− | + | <th>'''Prerequisite'''</th> | |
− | + | <td style="vertical-align:middle;padding:1em;">{{{Prerequisite}}}</td> | |
− | {{{Prerequisite}}} | + | </tr>}} |
− | }} | ||
{{#if: {{{Dungeon|}}} | | {{#if: {{{Dungeon|}}} | | ||
− | + | <tr> | |
− | + | <th>'''Dungeon'''</th> | |
− | + | <td style="vertical-align:middle;padding:1em;">{{{Dungeon}}}</td> | |
− | {{{Dungeon}}} | + | </tr>}} |
− | }} | ||
{{#if: {{{Briefing|}}} | | {{#if: {{{Briefing|}}} | | ||
− | + | <tr> | |
− | + | <th>'''Briefing'''</th> | |
− | + | <td style="vertical-align:middle;padding:1em;">{{{Briefing}}}</td> | |
− | {{{ | + | </tr>}} |
− | }} | + | <tr> |
− | | | + | <th>'''Objectives'''</th> |
− | + | <td style="vertical-align:middle;padding:1em;">{{#if:{{{Objectives|}}}{{{ObjectiveItem|}}} | | |
− | | | + | {{#if:{{{Objectives|}}}|{{{Objectives}}}}} |
− | + | {{#if:{{{ObjectiveItem|}}}|<ul>{{#arraymap:{{{ObjectiveItem}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul>}} | |
+ | | | ||
+ | <span style="color:red">Unknown</span>}}</td> | ||
+ | </tr> | ||
{{#if: {{{Dungeon Dialogue|}}} | | {{#if: {{{Dungeon Dialogue|}}} | | ||
− | {{!}}- style="- | + | <tr> |
− | {{ | + | <th>'''Dungeon Dialogue'''</th> |
− | {{ | + | <td style="vertical-align:middle;padding:1em;">{{{Dungeon Dialogue}}}</td> |
− | {{{ | + | </tr>}} |
+ | {{#if: {{{Upon Completion|}}}| | ||
+ | <tr> | ||
+ | <th>'''Upon Completion'''</th> | ||
+ | <td style="vertical-align:middle;padding:1em;">{{{Upon Completion}}}</td> | ||
+ | </tr> | ||
+ | }}{{#if: {{{RewardEXP|}}}{{{RewardGold|}}}{{{RewardItem|}}}{{{RewardItemChoice|}}}{{{ConditionalRewardItem|}}}{{{ConditionalRewardItemChoice|}}}{{{RewardOther|}}} | | ||
+ | <tr> | ||
+ | <th>'''Rewards'''</th> | ||
+ | <td>{{#if: {{{RewardEXP|}}} |<nowiki></nowiki> | ||
+ | * [[File:Expicon.png|20x20px]] {{{RewardEXP}}} Exp | ||
+ | }}{{#if: {{{RewardGold|}}} |<nowiki></nowiki> | ||
+ | * [[File:Goldicon.png|20x20px]] {{{RewardGold}}} Gold | ||
+ | }}{{#if: {{{RewardItem|}}} |<nowiki></nowiki> | ||
+ | <ul>{{#arraymap:{{{RewardItem}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul> | ||
+ | }}{{#if: {{{RewardItemChoice|}}} |<nowiki></nowiki> | ||
+ | * Choice of one of the following: | ||
+ | :<ul>{{#arraymap:{{{RewardItemChoice}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul> | ||
+ | }}{{#if: {{{ConditionalRewardItem|}}} | | ||
+ | {{#arraymap:{{{ConditionalRewardItem}}}|;|@@@|{{#vardefine:condition {{#explode:@@@|::|0}}|{{#var:condition {{#explode:@@@|::|0}}}}<li>{{Item|{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}} }} ({{#explode:{{#explode:@@@|::|1}}| |0}})</li>}} | ||
+ | |}}{{#vardefine:column count|0 | ||
+ | }}{{#vardefine:column 0 | ||
+ | |}}{{#vardefine:column 1 | ||
+ | |}}{{#vardefine:column 2 | ||
+ | |}}{{#arraymap:{{{ConditionalRewardItem}}}|;|@@@| | ||
+ | |||
+ | {{#if:{{#var:condition {{#explode:@@@|::|0}} }}| | ||
+ | {{#vardefine:column {{#var:column count}}|{{#var:column {{#var:column count}}}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}{{#vardefine:column count|{{#switch:{{#var:column count}}|0=1|1=2|2=0}}}} | ||
+ | }}<!-- end if --> | ||
+ | |||
+ | }}<!-- end arraymap --><nowiki></nowiki> | ||
+ | * Items rewarded based on condition: | ||
+ | <table style="margin-left:1.5em;"> | ||
+ | <tr> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 0}}</td> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 1}}</td> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 2}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | }}{{#if: {{{ConditionalRewardItemChoice|}}} |<nowiki></nowiki> | ||
+ | {{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@|{{#vardefine:condition {{#explode:@@@|::|0}}|{{#var:condition {{#explode:@@@|::|0}}}}<li>{{Item|{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}} }} ({{#explode:{{#explode:@@@|::|1}}| |0}})</li>}} | ||
+ | |}}{{#vardefine:column count|0 | ||
+ | }}{{#vardefine:column 0 | ||
+ | |}}{{#vardefine:column 1 | ||
+ | |}}{{#vardefine:column 2 | ||
+ | |}}{{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@| | ||
+ | |||
+ | {{#if:{{#var:condition {{#explode:@@@|::|0}} }}| | ||
+ | {{#vardefine:column {{#var:column count}}|{{#var:column {{#var:column count}}}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}{{#vardefine:column count|{{#switch:{{#var:column count}}|0=1|1=2|2=0}}}} | ||
+ | }}<!-- end if --> | ||
+ | |||
+ | }}<!-- end arraymap --><nowiki></nowiki> | ||
+ | * Choice of one of the following based on condition: | ||
+ | <table style="margin-left:1.5em; border: 0;"> | ||
+ | <tr> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 0}}</td> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 1}}</td> | ||
+ | <td valign="top" style="border: 0;">{{#var:column 2}}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | }}{{#if: {{{RewardOther|}}} |<nowiki></nowiki> | ||
+ | {{{RewardOther}}} | ||
+ | }}{{#if: {{{Reward|}}} |<nowiki></nowiki> | ||
+ | <span style="color:red">{{{Reward}}}</span> | ||
}} | }} | ||
− | {{#if: {{{ | + | </td> |
− | + | </tr> | |
− | + | }}{{#if: {{{Dungeon Map|}}} | | |
− | + | <tr> | |
− | + | <th>'''Dungeon Map'''</th> | |
− | + | <td style="vertical-align:middle;padding:1em;">{{{Dungeon Map}}}</td> | |
− | + | </tr>}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
{{#if: {{{Notes|}}} | | {{#if: {{{Notes|}}} | | ||
− | + | <tr> | |
− | + | <th>'''Notes'''</th> | |
− | + | <td style="vertical-align:middle;padding:1em;">{{{Notes}}}</td> | |
− | {{{Notes}}} | + | </tr>}} |
− | }} | + | |
− | + | </table></includeonly><noinclude>== Description == | |
− | <noinclude> | + | |
− | Usage | + | This template creates a box containing information about a quest. |
+ | |||
+ | Setting the ''Name'' parameter will create a subobject with the following properties: | ||
+ | |||
+ | * Has name | ||
+ | * Has level requirement | ||
+ | * Has quest type | ||
+ | * Has quest giver | ||
+ | * Has quest location | ||
+ | * Has quest objective item | ||
+ | * Has quest reward item | ||
+ | |||
+ | == Usage == | ||
+ | |||
+ | <pre> | ||
{{EpicQuest2 | {{EpicQuest2 | ||
− | |Level = | + | | Name = |
− | |NPC = | + | | Level = |
− | |Prerequisite = | + | | Type = |
− | |Dungeon = | + | | NPC = |
− | |Briefing = | + | | Prerequisite = |
− | |Objectives = | + | | Dungeon = |
− | |Dungeon Dialogue = | + | | Briefing = |
− | |Upon Completion = | + | | Objectives = |
− | |RewardEXP = | + | | ObjectiveItem = |
− | |RewardGold = | + | | Dungeon Dialogue = |
− | | | + | | Upon Completion = |
− | |RewardOther = | + | | RewardEXP = |
− | |Notes= | + | | RewardGold = |
+ | | RewardItem = | ||
+ | | RewardItemChoice = | ||
+ | | ConditionalRewardItem = | ||
+ | | ConditionalRewardItemChoice = | ||
+ | | RewardOther = | ||
+ | | Dungeon Map = | ||
+ | | Notes = | ||
}}</pre> | }}</pre> | ||
+ | |||
+ | === Parameter === | ||
+ | |||
+ | ; Name : Optional. Quest name. Setting this is required if you want items to display related quests on the item page. | ||
+ | ; Level : Quest level. | ||
+ | ; Type : Quest type. See [[Property:Has quest type]] for a list of allowed values. | ||
+ | ; NPC : Quest giver. | ||
+ | ; Prerequisite : Optional. How to obtain the quest. | ||
+ | ; Dungeon : Optional. Which dungeon do the quest take place. | ||
+ | ; Briefing : Text of quest briefing, as presented in quest details in-game (not your personal briefing). | ||
+ | ; Objectives : Steps required to complete the quest, as presented in quest details in-game. | ||
+ | ; ObjectiveItem : Required items to complete the quest. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon. | ||
+ | ; Dungeon Dialogue : Optional. Text of quest during the dungeon. | ||
+ | ; Upon Completion : Text of quest after completing the quest. | ||
+ | ; RewardEXP : Experience points rewarded (just the number). | ||
+ | ; RewardGold : Gold rewarded (just the number). | ||
+ | ; RewardItem : Items rewarded. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon. | ||
+ | ; RewardItemChoice : Selection of items that may be picked as a reward. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon. | ||
+ | ; ConditionalRewardItem : Items rewarded that differ based on a certain condition. Expected format is <code>condition::quantity item</code>. Separate multiple items with a semicolon. | ||
+ | ; ConditionalRewardItemChoice : Selection of items that differ based on a certain condition that may be picked as a reward. Expected format is <code>condition::quantity item</code>. Separate multiple items with a semicolon. | ||
+ | ; RewardOther : Bulleted list (*) of any other rewards. | ||
+ | ; Dungeon Map : Map for Scenario Dungeon. | ||
+ | ; Notes : Additional information. | ||
+ | |||
+ | [[Category:Formatting Templates]][[Category:Subobject Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:17, 31 January 2021
Description
This template creates a box containing information about a quest.
Setting the Name parameter will create a subobject with the following properties:
- Has name
- Has level requirement
- Has quest type
- Has quest giver
- Has quest location
- Has quest objective item
- Has quest reward item
Usage
{{EpicQuest2 | Name = | Level = | Type = | NPC = | Prerequisite = | Dungeon = | Briefing = | Objectives = | ObjectiveItem = | Dungeon Dialogue = | Upon Completion = | RewardEXP = | RewardGold = | RewardItem = | RewardItemChoice = | ConditionalRewardItem = | ConditionalRewardItemChoice = | RewardOther = | Dungeon Map = | Notes = }}
Parameter
- Name
- Optional. Quest name. Setting this is required if you want items to display related quests on the item page.
- Level
- Quest level.
- Type
- Quest type. See Property:Has quest type for a list of allowed values.
- NPC
- Quest giver.
- Prerequisite
- Optional. How to obtain the quest.
- Dungeon
- Optional. Which dungeon do the quest take place.
- Briefing
- Text of quest briefing, as presented in quest details in-game (not your personal briefing).
- Objectives
- Steps required to complete the quest, as presented in quest details in-game.
- ObjectiveItem
- Required items to complete the quest. Expected format is
quantity item
. Separate multiple items with a semicolon. - Dungeon Dialogue
- Optional. Text of quest during the dungeon.
- Upon Completion
- Text of quest after completing the quest.
- RewardEXP
- Experience points rewarded (just the number).
- RewardGold
- Gold rewarded (just the number).
- RewardItem
- Items rewarded. Expected format is
quantity item
. Separate multiple items with a semicolon. - RewardItemChoice
- Selection of items that may be picked as a reward. Expected format is
quantity item
. Separate multiple items with a semicolon. - ConditionalRewardItem
- Items rewarded that differ based on a certain condition. Expected format is
condition::quantity item
. Separate multiple items with a semicolon. - ConditionalRewardItemChoice
- Selection of items that differ based on a certain condition that may be picked as a reward. Expected format is
condition::quantity item
. Separate multiple items with a semicolon. - RewardOther
- Bulleted list (*) of any other rewards.
- Dungeon Map
- Map for Scenario Dungeon.
- Notes
- Additional information.