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:Quest infobox"

From DFO World Wiki
Jump to: navigation, search
m (Undo revision 169091 by Altair (talk))
(Tag: Undo)
m
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{BackToTop}}{{#set:
+
{{BackToTop}}{{#css:
 +
.dtab {
 +
border-left:1px solid black;
 +
padding-left:10px;
 +
}
 +
.action{
 +
  font-style: italic;
 +
  line-height: 16px;
 +
  display: inline-block;
 +
  width: 675px;
 +
  font-size: 12px;
 +
}
 +
}}{{#set:
 
| Has game context = Quest
 
| Has game context = Quest
 
| Has name = {{{Name|}}}
 
| Has name = {{{Name|}}}
Line 25: Line 37:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td style="background: #ccccff; padding-left: 6px; padding-right: 6px;">'''Quest Line'''</td>
+
<td style="background: #ccccff; padding-left: 6px; padding-right: 6px;">'''Quest Line(s)'''</td>
<td>[[Has quest line::{{{QuestLine|None}}}]]</td>
+
<td>{{#arraymap:{{{QuestLine|None}}}|;|@@@|[[Has quest line::@@@| ]]{{#if: {{{QuestLineLink|}}} |[[{{{QuestLineLink}}}|@@@]]|[[@@@]]}}|; <br/>}}
 +
</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 33: Line 46:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td style="background: #ccccff; padding-left: 6px; padding-right: 6px;">'''Dungeon(s)'''</td>
+
<td style="background: #ccccff; padding-left: 6px; padding-right: 6px;">'''Area - Dungeon / Town'''</td>
<td>[[Has quest area::{{{DungeonArea| }}}]] {{#if: {{{Dungeon|}}} | - {{#arraymap:{{{Dungeon}}}|,|@@@|[[Has quest location::@@@]]|, <nowiki />}}
+
<td>{{#arraymap:{{{DungeonArea}}}|;|@@@|[[Has quest area::@@@]]|; <nowiki />}} {{#if: {{{Dungeon|}}} | - {{#arraymap:{{{Dungeon}}}|;|@@@|[[Has quest location::@@@]]|; <nowiki />}}
 
| }}</td>
 
| }}</td>
 
</tr>
 
</tr>
Line 64: Line 77:
 
}}{{#if: {{{ConditionalRewardItem|}}} |
 
}}{{#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>}}
 
{{#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 0
 
|}}{{#vardefine:column 1
 
|}}{{#vardefine:column 2
 
 
|}}{{#arraymap:{{{ConditionalRewardItem}}}|;|@@@|
 
|}}{{#arraymap:{{{ConditionalRewardItem}}}|;|@@@|
  
 
{{#if:{{#var:condition {{#explode:@@@|::|0}} }}|
 
{{#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}}}}
+
{{#vardefine:column 0|{{#var:column 0}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}
 
}}<!-- end if -->
 
}}<!-- end if -->
  
 
}}<!-- end arraymap --><nowiki></nowiki>
 
}}<!-- end arraymap --><nowiki></nowiki>
 +
<div class="mw-collapsible mw-collapsed">
 
* Items rewarded based on condition:
 
* Items rewarded based on condition:
<table style="margin-left:1.5em;">
+
<div class="mw-collapsible-content">
  <tr>
+
: {{#var:column 0}}
    <td valign="top" style="border: 0;">{{#var:column 0}}</td>
+
</div>
    <td valign="top" style="border: 0;">{{#var:column 1}}</td>
+
</div>
    <td valign="top" style="border: 0;">{{#var:column 2}}</td>
 
  </tr>
 
</table>
 
 
}}{{#if: {{{ConditionalRewardItemChoice|}}} |<nowiki></nowiki>
 
}}{{#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>}}
 
{{#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 0
 
|}}{{#vardefine:column 1
 
|}}{{#vardefine:column 2
 
 
|}}{{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@|
 
|}}{{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@|
  
 
{{#if:{{#var:condition {{#explode:@@@|::|0}} }}|
 
{{#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}}}}
+
{{#vardefine:column 0|{{#var:column 0}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}
 
}}<!-- end if -->
 
}}<!-- end if -->
  
 
}}<!-- end arraymap --><nowiki></nowiki>
 
}}<!-- end arraymap --><nowiki></nowiki>
 +
<div class="mw-collapsible mw-collapsed">
 
* Choice of one of the following based on condition:
 
* Choice of one of the following based on condition:
<table style="margin-left:1.5em; border: 0;">
+
<div class="mw-collapsible-content">
  <tr>
+
: {{#var:column 0}}
    <td valign="top" style="border: 0;">{{#var:column 0}}</td>
+
</div>
    <td valign="top" style="border: 0;">{{#var:column 1}}</td>
+
</div>
    <td valign="top" style="border: 0;">{{#var:column 2}}</td>
 
  </tr>
 
</table>
 
 
}}{{#if: {{{RewardOther|}}} |<nowiki></nowiki>
 
}}{{#if: {{{RewardOther|}}} |<nowiki></nowiki>
 
{{{RewardOther}}}
 
{{{RewardOther}}}
Line 112: Line 115:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td style="border-right: 1px solid #8888aa;"> ◄ '''Previous Quest(s)''' <br/> {{#if: {{{PrevQuest|}}} | {{Quest list|name={{{PrevQuest}}}|type={{{PrevQuestType|}}} }} | None }}</td>
+
<td style="border-right: 1px solid #8888aa;"> ◄ '''Previous Quest(s)''' <br/> {{#if: {{{PrevQuest|}}} |  
<td style="text-align: right;"> '''Next Quest(s)''' ► <br/> {{#if: {{{NextQuest|}}} | {{Quest list|name={{{NextQuest}}}|type={{{NextQuestType|}}} }} | None }}</td>
+
{{#arraymap:{{{PrevQuest}}}|;|@@@|{{Quest list|name=@@@|type={{{PrevQuestType|}}} }}|<br>}} | None }}</td>
 +
<td style="text-align: right;"> '''Next Quest(s)''' ► <br/> {{#if: {{{NextQuest|}}} |  
 +
{{#arraymap:{{{NextQuest}}}|;|@@@|{{Quest list|name=@@@|type={{{NextQuestType|}}} }}|<br>}} | None }}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 125: Line 130:
 
{{#if: {{{Briefing|}}} |
 
{{#if: {{{Briefing|}}} |
 
<h3 id="Briefing">Briefing</h3>
 
<h3 id="Briefing">Briefing</h3>
:{{{!}} class="wikitable"
+
{{{!}} class="wikitable"
{{!}}style="width:875px;"{{!}}{{{Briefing}}}
+
{{!}}style="padding:10px; width:775px;"{{!}}{{{Briefing}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
Line 132: Line 137:
 
<hr>
 
<hr>
 
<h3 id="In-Dungeon">In-Dungeon</h3>
 
<h3 id="In-Dungeon">In-Dungeon</h3>
:{{{!}} class="wikitable"
+
{{{!}} class="wikitable"
{{!}}style="width:875px;"{{!}}{{{In-Dungeon}}}
+
{{!}}style="padding:10px; width:775px;"{{!}}{{{In-Dungeon}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
Line 139: Line 144:
 
<hr>
 
<hr>
 
<h3 id="Completion">Completion</h3>
 
<h3 id="Completion">Completion</h3>
:{{{!}} class="wikitable"
+
{{{!}} class="wikitable"
{{!}}style="width:875px;"{{!}}{{{Completion}}}
+
{{!}}style="padding:10px; width:775px;"{{!}}{{{Completion}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
Line 148: Line 153:
 
}}
 
}}
 
{{#if: {{{References|}}} |
 
{{#if: {{{References|}}} |
<h2 id="Notes">References</h2>
+
<h2 id="References">References</h2>
 
{{{References}}}
 
{{{References}}}
 
}}
 
}}
 
<h2 id="Navigation">Navigation</h2>
 
<h2 id="Navigation">Navigation</h2>
<table class="collapsible" cellpadding="2" cellspacing="2" style="width: 80em; padding: 6px; margin: 0 0 1em 1em; font-size: 0.83em; background-color: #f7f8ff; border:1px solid #8888aa; ; margin-left: auto; margin-right: auto;">
+
<table class="collapsible" cellpadding="2" cellspacing="2" style="width: 80em; padding: 6px; font-size: 0.83em; background-color: #f7f8ff; border:1px solid #8888aa; ; <!--margin-left: auto; margin-right: auto;-->">
 
<tr style="background: #ccccff;">
 
<tr style="background: #ccccff;">
<th colspan="2" style="text-align: center; color:#000; padding:5px;">'''Quest Line'''
+
<th colspan="2" style="text-align: center; color:#000; padding-right:5px;">'''Quest Line(s)'''
 
</th>
 
</th>
 
</tr>
 
</tr>
 +
{{#arraymap:{{{QuestLine}}}|;|@@@|
 
<tr>
 
<tr>
<td style="text-align: center; background: #ccccff; width: 15em; padding-left: 6px; padding-right: 6px;">'''[[{{{QuestLine}}}]]'''</td>
+
<td style="text-align: center; background: #ccccff; width: 15em; padding-left: 6px; padding-right: 6px;">'''{{#if: {{{QuestLineLink|}}} |[[{{{QuestLineLink|}}}|@@@]]|[[@@@]]}}'''</td>
 
<td style="padding-left: 10px; padding-right: 10px;">
 
<td style="padding-left: 10px; padding-right: 10px;">
{{#ask: [[Has quest line::{{{QuestLine}}}]]
+
{{#ask: [[Has quest line::@@@]]
 
|format=list
 
|format=list
 
|sep=&nbsp;•&nbsp;
 
|sep=&nbsp;•&nbsp;
Line 166: Line 172:
 
}}</td>
 
}}</td>
 
</tr>
 
</tr>
 +
| }}
 
</table>
 
</table>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
Line 181: Line 188:
 
** Objective
 
** Objective
 
** Reward List
 
** Reward List
** Previous Quest(s)
+
** Previous Quest(s) - Multiple values can be entered if split with ';' character.
** Next Quest(s)
+
** Next Quest(s) - Multiple values can be entered if split with ';' character.
  
 
* Values will be saved for reference in new quest list template.
 
* Values will be saved for reference in new quest list template.
Line 199: Line 206:
 
|Type=
 
|Type=
 
|QuestLine=
 
|QuestLine=
 +
|QuestLineLink=
 
|QuestNumber=
 
|QuestNumber=
 
|Level=
 
|Level=
Line 246: Line 254:
 
|Map=
 
|Map=
 
|Briefing=
 
|Briefing=
{{NPCDialog|Kiri-Face2|Lady Kiri|
+
{{NPCDialog|Kiri-Face2|Lady Kiri|Text=
 
<p>I should have known that he wouldn't come. He's either intentionally avoiding me or he's held captive again.</p>
 
<p>I should have known that he wouldn't come. He's either intentionally avoiding me or he's held captive again.</p>
 
<p>I'm sorry, but could you look for him one more time? You know his name, don't you? It's Neil. Left Straight Neil.</p>
 
<p>I'm sorry, but could you look for him one more time? You know his name, don't you? It's Neil. Left Straight Neil.</p>
 
}}
 
}}
{{NPCDialog|Kiri-Face2|Lady Kiri|
+
{{NPCDialog|Kiri-Face2|Lady Kiri|Text=
 
<p>Overflow text test</p>
 
<p>Overflow text test</p>
 
}}
 
}}
 
|In-Dungeon=
 
|In-Dungeon=
 
<u><b>(Upon entering Room C4)</b></u><br/>
 
<u><b>(Upon entering Room C4)</b></u><br/>
{{NPCDialog|Left Straight Neil|Left Straight Neil|
+
{{NPCDialog|Left Straight Neil|Left Straight Neil|Text=
 
<p>Errr, is it you again?</p>
 
<p>Errr, is it you again?</p>
 
<p>Haha! Thanks again for your help.</p>
 
<p>Haha! Thanks again for your help.</p>
Line 263: Line 271:
 
}}
 
}}
 
|Completion=
 
|Completion=
{{NPCDialog|Kiri-Face1|Lady Kiri|
+
{{NPCDialog|Kiri-Face1|Lady Kiri|Text=
 
<p>Oh, no... Did he ditch you again? Gosh, he's so stubborn! Geez... I need to ask him something.</p>
 
<p>Oh, no... Did he ditch you again? Gosh, he's so stubborn! Geez... I need to ask him something.</p>
 
}}
 
}}

Latest revision as of 03:00, 6 August 2024

'''Pseudocode:'''
* Displays a box on the right-hand side of the screen which provides the following:
** Quest name as the table heading, defaults to {{PAGENAME}}
** Quest type (Used for list filtering)
** Chapter / Episode / Quest Line main page (Used for list filtering)
** Quest Number (Not displayed - Used for list sorting)
** Level Requirement (Used for list sorting)
** Dungeon Area (Used for list filtering)
** Dungeon (Used for list filtering)
** Quest Giver (Used for list filtering)
** Objective
** Reward List
** Previous Quest(s) - Multiple values can be entered if split with ';' character.
** Next Quest(s) - Multiple values can be entered if split with ';' character.

* Values will be saved for reference in new quest list template.
* Outside the box are arguments that aren't use for sorting:
** Description
** Map
** Dialogue
** Notes

This is the "Quest infobox" template. It should be called in the following format:

{{Quest infobox
|Name=
|Type=
|QuestLine=
|QuestLineLink=
|QuestNumber=
|Level=
|NPC=
|DungeonArea=
|Dungeon=
|PrevQuest=
|PrevQuestType=
|NextQuest=
|NextQuestType=
|Objectives=
|ObjectiveItem=
|RewardEXP=
|RewardGold=
|RewardItem=
|RewardItemChoice=
|ConditionalRewardItem=
|ConditionalRewardItemChoice=
|Description=
|Map=
|Briefing=
|In-Dungeon=
|Completion=
|Notes=
}}

Edit the page to see the template text.

Test

Feat Quest Icon.png Captured Launcher 2
Type Feat Quest
Quest Line(s) Captured Launcher
Level Req. 53
Area - Dungeon / Town Citadel - Verderia
Quest Giver Lady Kiri
Objective(s)
  • Find and rescue Left Straight Neil in Verderia on Expert's Road or higher.
Rewards

  • Expicon.png 96,020 Exp
  • Goldicon.png 7,344 Gold
Previous Quest(s)
Feat Quest Icon.png Captured Launcher 1
Next Quest(s)
Feat Quest Icon.png Captured Launcher 3

Captured Launcher 2 is the second quest of the Captured Launcher Feat Quest storyline.

Dialogue

Briefing

Kiri-Face2.png Lady Kiri

I should have known that he wouldn't come. He's either intentionally avoiding me or he's held captive again.

I'm sorry, but could you look for him one more time? You know his name, don't you? It's Neil. Left Straight Neil.

Kiri-Face2.png Lady Kiri

Overflow text test


In-Dungeon

(Upon entering Room C4)
Left Straight Neil.png Left Straight Neil

Errr, is it you again?

Haha! Thanks again for your help.

Oh, don't look at me like that. I'm a Sniper, which means I become totally vulnerable once the enemy finds me.

But I'm most powerful when I'm hidden in the background. With me as backup, you'll have no trouble even defeating those Apostles!

Now, let's go!


Completion

Kiri-Face1.png Lady Kiri

Oh, no... Did he ditch you again? Gosh, he's so stubborn! Geez... I need to ask him something.

Notes

Quest Line(s)
Captured Launcher Captured Launcher 1 • Captured Launcher 2 • Captured Launcher 3