Template:Quest infobox

From WildStar Wiki
Revision as of 06:54, 15 January 2014 by SBEyes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template-info.png Documentation

This template displays an infobox for a quest. If a data page for the quest is found, it will use the values from the data page unless values were provided to the appropriate parameters.

Finding the data page

The template finds a data page for a quest in one of three ways:

{{Quest infobox}} When neither the name or datapage parameter are given values, the infobox looks for a data page in Category:Imported quest data where Property:Has name is the same as the name of the page the infobox is being used on.

{{Quest infobox
  |name=quest name
}}

When the name parameter is given a value but datapage is not, the infobox looks for a data page in Category:Imported quest data where Property:Has name has that value.

{{Quest infobox
  |datapage=data page name
}}

When datapage is given a value, the infobox looks for that exact page, but will return it only if the page is in Category:Imported quest data.

Note that a quest data page should be set up with {{Quest data}}, and the name parameter on that template sets the value of Property:Has name. If the name parameter doesn't get a value, Property:Has name is set to the subpage name.

When there is no data page

If a quest doesn't have a data page for some reason, you can treat this as a normal infobox and supply the values yourself.

{{Quest infobox
  |name=name of the quest (optional, will use the page name when no value is provided)
  |faction=the faction the quest is for
  |race=required race
  |path=required path
  |req_item=required items
  |level=recommended level
  |req_level=required level
  |group_size=intended group size
  |desc=short in-game quest description
}}

Note that if a data page for the quest is imported later, the values of these parameters will be ignored.

Overriding data page values

If necessary, it is possible to override the values pulled from the data page. When data is simply outdated, it's probably better to just change it on the data page itself, as it would probably have been corrected in the next data import anyway. But if for some reason imports seem to be consistently bringing in incorrect data, you can override it by using the force parameters:

{{Quest infobox
  |force_name=name of the quest (optional, will use the page name when no value is provided)
  |force_faction=the faction the quest is for
  |force_race=required race
  |force_path=required path
  |force_req_item=required items
  |force_level=recommended level
  |force_req_level=required level
  |force_group_size=intended group size
  |force_desc=short in-game quest description
}}