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 list"
(add type filter) |
(add name filter) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ask: [[Has game context::Quest]] | <includeonly>{{#ask: [[Has game context::Quest]] | ||
− | {{#if:{{{item objective|}}}{{{item reward|}}}{{{npc|}}}{{{dungeon|}}}{{{type|}}} | + | {{#if:{{{item objective|}}}{{{item reward|}}}{{{npc|}}}{{{dungeon|}}}{{{type|}}}{{{name|}}} |
| <!-- filter is set --> | | <!-- filter is set --> | ||
{{#if:{{{item objective|}}}|[[Has quest objective item::?;{{{item objective}}}]]}} | {{#if:{{{item objective|}}}|[[Has quest objective item::?;{{{item objective}}}]]}} | ||
Line 7: | Line 7: | ||
{{#if:{{{dungeon|}}}|[[Has quest location::{{{dungeon}}}]]}} | {{#if:{{{dungeon|}}}|[[Has quest location::{{{dungeon}}}]]}} | ||
{{#if:{{{type|}}}|[[Has quest type::{{{type}}}]]}} | {{#if:{{{type|}}}|[[Has quest type::{{{type}}}]]}} | ||
+ | {{#if:{{{name|}}}|[[Has name::{{{name}}}]]}} | ||
| <!-- no filter is set --> | | <!-- no filter is set --> | ||
[[Has quest reward item::?;{{PAGENAME}}]] | [[Has quest reward item::?;{{PAGENAME}}]] | ||
Line 16: | Line 17: | ||
|?Has quest reward item|+index=2 | |?Has quest reward item|+index=2 | ||
|?Has quest type | |?Has quest type | ||
− | | format = ul | + | | format = {{#if:{{{name|}}}|list|{{{format|ul}}}}} |
| template = Quest list result format | | template = Quest list result format | ||
| link = none | | link = none | ||
Line 31: | Line 32: | ||
== Usage == | == Usage == | ||
<pre>{{Quest list | <pre>{{Quest list | ||
+ | | name = | ||
| item objective = | | item objective = | ||
| item reward = | | item reward = | ||
| npc = | | npc = | ||
| dungeon = | | dungeon = | ||
+ | | type = | ||
+ | | format = | ||
}}</pre> | }}</pre> | ||
=== Parameters === | === Parameters === | ||
+ | ; name : Filter by the name of the quest. | ||
; item objective : Filter by the wiki page of the item that is required to complete the quest. | ; item objective : Filter by the wiki page of the item that is required to complete the quest. | ||
; item reward : Filter by the wiki page of the item that is rewarded upon quest completion. If no other filter is set, defaults to <code><nowiki>{{PAGENAME}}</nowiki></code> | ; item reward : Filter by the wiki page of the item that is rewarded upon quest completion. If no other filter is set, defaults to <code><nowiki>{{PAGENAME}}</nowiki></code> | ||
Line 44: | Line 49: | ||
; dungeon : Filter by the wiki page of the dungeon where the quest takes place. | ; dungeon : Filter by the wiki page of the dungeon where the quest takes place. | ||
; type : Filter by quest type. | ; type : Filter by quest type. | ||
+ | ; format : Result format. Set to ''ul'' for a bulleted list or ''list'' for a comma-separated list. Defaults to ''list'' if '''name''' is set, defaults to ''ul'' otherwise. | ||
=== Examples === | === Examples === |
Revision as of 12:40, 5 April 2016
Contents
Description
This template lists all quests that satisfy the search criteria.
Usage
{{Quest list | name = | item objective = | item reward = | npc = | dungeon = | type = | format = }}
Parameters
- name
- Filter by the name of the quest.
- item objective
- Filter by the wiki page of the item that is required to complete the quest.
- item reward
- Filter by the wiki page of the item that is rewarded upon quest completion. If no other filter is set, defaults to
{{PAGENAME}}
- npc
- Filter by the wiki page of the NPC that is offering the quest.
- dungeon
- Filter by the wiki page of the dungeon where the quest takes place.
- type
- Filter by quest type.
- format
- Result format. Set to ul for a bulleted list or list for a comma-separated list. Defaults to list if name is set, defaults to ul otherwise.
Examples
{{Quest list|item reward=Refined Interdimensional Crystal}}
- Supporting the Squad (The Watchers of Natram)
- Supporting the Squad (Twin Golem's Betrayal)
- Supporting the Squad (Sanctum of Kulunchad)
{{Quest list|npc=Bai Ming}}