Module:Quest/doc

Usage
This module implement two functions:
 * : Store quests into the wiki database and display them.
 * : Display quests from the wiki database.

defineQuest

 * 1: An ObjectArg list of hashes defining the groups of quests. Each hash contains the following parameters:
 * title: The name of the group.
 * wikiName: (Optional) An unique name that need to be specified when several groups with the same title begin at the same time.
 * startTime and endTime: Lists of start and end times of the group, coma separated.
 * availTime and cycleTime: (Optional) For recurring quests, correspond respectively to the time in seconds before the end of the quests and the time between two quests. By default, cycleTime = availTime.
 * sort: A number between 1 and 99. This is used to categorized and ordered groups of quests when querying. See below for a list of sort number. In case of doubt, use 0.
 * quests: An ObjectArg list of hash defining the quests related to this group. Each hash contains the following parameters:
 * name: The name of the quest.
 * description: The description of the quest.
 * times: (Optional) The amount of time the conditions of the quests have to be met before its completion. Default to 1.
 * reward: An ObjectArg similar to one used by Template:RewardText.
 * stage: (Optional) The page name of the stage related to the quest.
 * unit: (Optional) The page name of the unit needed to complete the quest. Only for quests needing a named unit.
 * difficulty: (Optional) The difficulty of the quests. Only for quests on group with several difficulty.
 * startTime and endTime: (Optional) Lists of minimal and maximal time for clearing the quest, coma separated. Only for quests that can't be completed at their released. This is only used for storing the rewards.
 * depth: (Optional) Depth use for the header. Default to 3.
 * collapse: (Optional) If true, make the table collapsible and collapse it.
 * no cargo: (Optional) If true, do not store any quests into the Cargo database.

queryQuest

 * conditions: (Optional) A string containing the conditions for the query. Referred to the database fields for the conditions. If none is given, query all quests related to the page.
 * depth: (Optional) Depth use for the header. Default to 3.
 * collapse: (Optional) If true, make the table collapsible and collapse it.

defineQuest
The following exemple contains two groups of regular quests, two groups of recurring quests and a group of quests with various difficulties.