Difference between revisions of "Template:Questbox"
(4 intermediate revisions by the same user not shown) | |||
Line 28: | Line 28: | ||
|data4 = {{#ifeq:{{lc:{{{type|}}}}}|solo||{{{type|}}} {{#if:{{{groupsize|}}}|({{{groupsize}}})}}}} |
|data4 = {{#ifeq:{{lc:{{{type|}}}}}|solo||{{{type|}}} {{#if:{{{groupsize|}}}|({{{groupsize}}})}}}} |
||
|label5 = Category |
|label5 = Category |
||
− | |data5 = {{#if:{{{zone|{{{displaycat|{{{category|}}}}}}}}}|[[:{{{zone|{{{displaycat|{{{category}}}}}}}}}]]}} |
+ | |data5 = {{#if:{{{zone|{{{displaycat|{{{category|}}}}}}}}}|{{#if:{{{disambigcat|}}}|[[{{{disambigcat}}}|{{{zone|{{{displaycat|{{{category}}}}}}}}}]]|[[:{{{zone|{{{displaycat|{{{category}}}}}}}}}]]}}}} |
|label6 = Experience |
|label6 = Experience |
||
|data6 = {{{experience|}}} |
|data6 = {{{experience|}}} |
||
Line 49: | Line 49: | ||
DEFAULTLINK: |
DEFAULTLINK: |
||
-->{{#if:{{{name|}}}|{{{noilink|{{DEFAULTLINK:<span class="nobreak"><span class="questlong-prefix linkicon"><!-- |
-->{{#if:{{{name|}}}|{{{noilink|{{DEFAULTLINK:<span class="nobreak"><span class="questlong-prefix linkicon"><!-- |
||
− | FACTION ICON -->{{#ifeq:{{#var:FactionSwitch|off}}|on|[[File:Both 15.png|alt=B|link=]]|[[File:{{{faction|Neutral}}} |
+ | FACTION ICON -->{{#ifeq:{{#var:FactionSwitch|off}}|on|[[File:Both 15.png|alt=B|link=]]|[[File:{{{faction|Neutral}}} 15.png|alt={{#switch:{{ucfirst:{{{faction}}}}}|Horde=H|Alliance=A|N}}|link=]]}}<!-- |
RACE ICON --> {{#if:{{{race|}}}|{{RaceIcon|{{{race}}}|Male|size=15px}}{{RaceIcon|{{{race}}}|Female|size=15px}} }}<!-- |
RACE ICON --> {{#if:{{{race|}}}|{{RaceIcon|{{{race}}}|Male|size=15px}}{{RaceIcon|{{{race}}}|Female|size=15px}} }}<!-- |
||
CLASS ICON -->{{#switch:{{lc:{{{class|{{{category}}}}}}}}|mage|warlock|priest|druid|rogue|shaman|hunter|warrior|paladin|death knight|monk|demon hunter= |
CLASS ICON -->{{#switch:{{lc:{{{class|{{{category}}}}}}}}|mage|warlock|priest|druid|rogue|shaman|hunter|warrior|paladin|death knight|monk|demon hunter= |
||
Line 61: | Line 61: | ||
--> |
--> |
||
{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{{name}}}}}}} |
{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{{name}}}}}}} |
||
+ | {{{doc|{{#ifeq:{{NAMESPACE}}|User||{{#if:{{{removed|-}}}| |
||
− | + | <!-- RETAIL START -->{{#if:{{{category|}}}|[[Category:{{#ifeq:{{{category}}}|Death Knight|Death knight|{{#ifeq:{{{category}}}|Demon Hunter|Demon hunter|{{{category}}}}}}} quests]]}}{{#if:{{{class|}}}|[[Category:{{#ifeq:{{{class}}}|Death Knight|Death knight|{{#ifeq:{{{class}}}|Demon Hunter|Demon hunter|{{{class}}}}}}} quests]]}} |
|
{{#if:{{{faction|Neutral}}}|{{#ifeq:{{lc:{{{faction|Neutral}}}}}|both|[[Category:Alliance quests]][[Category:Horde quests]]|[[Category:{{ucfirst:{{{faction|Neutral}}}}} quests]]}}}} |
{{#if:{{{faction|Neutral}}}|{{#ifeq:{{lc:{{{faction|Neutral}}}}}|both|[[Category:Alliance quests]][[Category:Horde quests]]|[[Category:{{ucfirst:{{{faction|Neutral}}}}} quests]]}}}} |
||
− | {{#if:{{{level|}}}|[[Category:Quests at {{#ifeq:{{{level}}}|-1|{{level|max}}|{{{level}}}}}]]}} |
+ | {{#if:{{{level|}}}|[[Category:Quests at {{#ifeq:{{{level}}}|-1|{{level|max}}|{{{level}}}}}]]}}| |
+ | <!-- REMOVED START -->{{#if:{{{category|}}}|[[Category:Removed {{#switch:{{{category}}}|Death Knight|Death knight=death knight|Demon Hunter|Demon hunter=demon hunter|Druid=druid|Hunter=hunter|Mage=mage|Monk=monk|Paladin=paladin|Priest=priest|Rogue=rogue|Shaman=shaman|Warlock=warlock|Warrior=warrior|Herbalism=herbalism|Mining=mining|Skinning=skinning|Alchemy=alchemy|Blacksmithing=blacksmithing|Enchanting=enchanting|Engineering=engineering|Inscription=inscription|Jewelcrafting=jewelcrafting|Leatherworking=leatherworking|Tailoring=tailoring|Archaeology=archaeology|Cooking=cooking|Fishing=fishing|First Aid=first aid|{{{category}}}}} quests]]}}{{#if:{{{class|}}}|[[Category:Removed {{lc:{{{class}}}}} quests]]}} |
||
⚫ | |||
+ | {{#if:{{{faction|Neutral}}}|{{#ifeq:{{lc:{{{faction|Neutral}}}}}|both|[[Category:Removed Alliance quests]][[Category:Removed Horde quests]]|[[Category:Removed {{ucfirst:{{{faction|Neutral}}}}} quests]]}}}} |
||
+ | {{#if:{{{level|}}}|[[Category:Removed quests at {{#ifeq:{{{level}}}|-1|{{level|max}}|{{{level}}}}}]]}} |
||
⚫ | |||
HOVER TOOLTIP CONTENT: |
HOVER TOOLTIP CONTENT: |
Latest revision as of 18:16, 12 April 2021
![]() | |
---|---|
Start |
![]() |
End | Caelestrasz |
Level | 60 (Requires 59) |
Type | Group (4) |
Category | Hellfire Peninsula |
Experience | 40-500 |
Reputation |
+500 Brood of Nozdormu +200 Cenarion Circle |
Rewards |
![]() ![]() ![]() 123 ![]() ![]() ![]() |
Repeatable | Yes |
Previous |
![]() |
Next |
![]() |
Use Questbox to help summarize the vital stats of a particular quest, leaving the body of the article to discuss lore and strategy. Including the following code creates the questbox to the right.
Example code
{{questbox | name = C'Thun's Legacy | faction = Alliance | level = 60 | levelreq = 59 | type = Group | groupsize = 4 | category = Hellfire Peninsula | start = [[Eye of C'Thun]] | end = [[Caelestrasz]] | reputation = +500 [[Brood of Nozdormu]]<br/>+200 [[Cenarion Circle]] | experience = 40-500 | rewards = [[Amulet of the Fallen God]],<br/> [[Cloak of the Fallen God]], or<br/> [[Ring of the Fallen God]] | money = {{Cost|123|45|67}} | shareable = No | repeatable = Yes | previous = [[Your Place In The World]] | next = [[The Savior of Kalimdor]] | id = 788 | other-faction = C'Thun's Legacy (Horde) }}
Required fields
- name
- The name of the quest as it appears in game. Defaults to "Untitled". This should never parentheticals like (Alliance), (Horde), or (2) unless they're actually a part of the quest name itself.
- faction
- "Alliance", "Horde", "Neutral", "Both", etc. Denotes which factions are eligible for the quest. Defaults to "Neutral". See Template:FactionIcon for all available options.
- start
- The NPC, item, or object responsible for initiating the quest. Brackets required. Defaults to "Unknown". Use "Automatic" with no brackets for quests given without interacting with anything. Add {{coords}} if the start location is relatively fixed
- end
- The NPC, item, or object responsible for ending the quest. Brackets required. Defaults to the value of start. Add {{coords}} if the end location is relatively fixed
- level
- The difficulty level of the quest, exposed by the quest API or an quest viewer add-on. Use -1 for quests that define a minimum level but no specified one. Depends on {{level}}
- levelreq
- The minimum level required to accept the quest. Get this from a database
- rewards
- A list of linked items rewarded by the quest. Use plain links with <br>s in between them
Recommended, but optional
- experience
- The amount of experience gained from completing the quest.
- previous
- A list of links to quests required to be completed before starting this quest.
- next
- A list of links to quests that directly follow this quest in a series.
Optional
- type
- "Group", "Dungeon", "Raid", "PvP", etc. Defaults to hidden. Don't include for normal solo quests.
- groupsize
- If this is a "Group" quest, provide the group size recommended by the quest. No default value.
- category
- The category under which the quest appears in the quest log (usually a class or a zone). No default value, braces not required.
- reputation
- The amount of reputation affected by the quest, written in the style +100 Wildhammer or -100 Undercity. Braces necessary.
- money
- The amount of money awarded by completing the quest. Use {{cost}}, e.g. 25
or 4
7
25
. Usual format is {{cost|<gold>|<silver>|<copper>}}; see Template:Cost.
- repeatable
- Accepts "Yes". Indicates if the quest is repeatable instantly, and not on a fixed timer like daily, weekly, monthly, or yearly (holiday) quests.
- shareable
- Accepts "Yes". Indicates if the quest is shareable. Defaults to hidden. Will not display if set to "No"
- class
- If the quest is restricted to one class. Hidden.
- race
- If the quest is restricted to one race. Hidden.
- zone
- Use with post-Cataclysm removed quests in order to have Category link pointing to post-Cataclysm zones instead of pre-Cataclysm ones.
- other-faction
- If Horde/Alliance has a version of this quest, provide the article name of that quest to generate a disambiguation link.
- doc
- if specified, prevents the Questbox template from adding the page to categories.
- removed
- if specified, switches the categories to the removed categories instead. Used for quests that have been removed from the Retail server.
This template defines the table "Quests". View table.