Difference between revisions of "Template:Questbox"
(hide start/end in world quest hover tooltips as well) |
(aaand breaking up the wall of code at the bottom bc whew) |
||
Line 36: | Line 36: | ||
|class12 = questshort |
|class12 = questshort |
||
|data12 = {{#if:{{{next|}}}|{{{next}}}}} |
|data12 = {{#if:{{{next|}}}|{{{next}}}}} |
||
+ | }}<!-- |
||
⚫ | |||
+ | |||
⚫ | |||
+ | DEFAULTLINK: |
||
⚫ | |||
+ | -->{{#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}}} {{#switch:{{lc:{{{faction}}}}}|kyrian|necrolord|night fae|venthyr=sigil|15}}.png{{#switch:{{lc:{{{faction}}}}}|kyrian|necrolord|night fae|venthyr={{!}}16px}}|alt={{#switch:{{ucfirst:{{{faction}}}}}|Horde=H|Alliance=A|N}}|link=]]}}<!-- |
||
+ | 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= |
||
+ | [[File:Ui-charactercreate-classes_{{lc:{{{class|{{{category}}}}}}}}.png|alt={{{class|{{{category}}}}}}|16px|{{{class|{{{category}}}}}}|link=]] }}<!-- |
||
+ | PROF. ICON -->{{#switch:{{lc:{{{category}}}}}|archaeology|alchemy|blacksmithing|cooking|enchanting|engineering|first aid|fishing|herbalism|inscription|jewelcrafting|leatherworking|mining|riding|skinning|tailoring={{ProfIcon|{{{category}}}|size=15px}} }}<!-- |
||
+ | LEVEL -->[{{#ifeq:{{{level}}}|-1|{{maxlevel}}|{{{level|??}}}}}<!-- |
||
⚫ | TYPE -->{{#switch:{{lc:{{{type}}}}}|group=G{{{groupsize|}}}|dungeon=D|raid=R|pvp=P|daily= Daily|daily group=G{{{groupsize|}}} Daily|daily pvp|pvp daily=P Daily|heroic=H|weekly=W|weekly group=WG|elite=E|bonus objective=B|battle pet world quest=BPWQ|rare world quest=RWQ|elite world quest=EWQ|rare elite world quest=REWQ|epic elite world quest=EEWQ|dungeon world quest=D WQ|raid world quest=R WQ|legion invasion world quest=LI WQ|legion invasion elite world quest=LIE WQ{{{groupsize|}}}|{{#ifeq:world quest|{{#sub:{{lc:{{{type}}}}}|-11}}|WQ}}}} |
||
⚫ | |||
+ | |||
+ | CATEGORIES: |
||
+ | --> |
||
{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{{name}}}}}}} |
{{#if:{{{nosort|}}}||{{DEFAULTSORT:{{{name}}}}}}} |
||
{{{doc|{{#ifeq:{{NAMESPACE}}|User||{{#if:{{{category|}}}|[[Category:{{#ifeq:{{{category}}}|Death Knight|Death knight|{{{category}}}}} quests]]}}{{#if:{{{class|}}}|[[Category:{{#ifeq:{{{class}}}|Death Knight|Death knight|{{{class}}}}} quests]]}} |
{{{doc|{{#ifeq:{{NAMESPACE}}|User||{{#if:{{{category|}}}|[[Category:{{#ifeq:{{{category}}}|Death Knight|Death knight|{{{category}}}}} quests]]}}{{#if:{{{class|}}}|[[Category:{{#ifeq:{{{class}}}|Death Knight|Death knight|{{{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}}}}}]]}} |
||
+ | }}}}}}}<!-- |
||
− | }}}}}}}<div style="display:none; text-align:center;" class="tooltip-content"><div style="float:left;">{{FactionIcon|{{{faction}}}}}</div>{{{name|Untitled}}}{{#if:{{{level|}}}|<br />Level: {{#ifeq:{{{level}}}|-1|{{maxlevel}}|{{{level}}}}}{{#if:{{{levelreq|}}}| (Requires {{{levelreq}}})}}}}{{#if:{{{type|}}}|<br />Type: {{{type}}} {{#if:{{{groupsize|}}}|({{{groupsize}}})}}}}{{#ifeq:world quest|{{#sub:{{lc:{{{type}}}}}|-11}}||<br />[[File:Availablequesticon.png|Start:]] {{{start|Unknown}}}<br />[[File:Activequesticon.png|End:]] {{#ifeq:{{{end|}}}||{{{start|Unknown}}}|{{{end}}}}}}}{{#if:{{{experience|}}}|<br />XP: {{{experience}}}}}{{#if:{{{reputation|}}}|<br />Rep: {{{reputation}}}}}{{#if:{{{rewards|{{{money|}}}}}}|<br />Rewards:{{#if:{{{rewards|}}}|<br />{{{rewards|}}}}}{{#if:{{{money|}}}|<br />{{{money|}}}}}}}</div><!-- |
||
+ | |||
+ | HOVER TOOLTIP CONTENT: |
||
+ | --><div style="display:none; text-align:center;" class="tooltip-content"><!-- |
||
+ | FACTION ICON --><div style="float:left;">{{FactionIcon|{{{faction}}}}}</div><!-- |
||
+ | NAME -->{{{name|Untitled}}}<!-- |
||
+ | LEVEL -->{{#if:{{{level|}}}|<br />Level: {{#ifeq:{{{level}}}|-1|{{maxlevel}}|{{{level}}}}}{{#if:{{{levelreq|}}}| (Requires {{{levelreq}}})}}}}<!-- |
||
+ | TYPE -->{{#if:{{{type|}}}|<br />Type: {{{type}}} <!-- |
||
+ | GROUP SIZE -->{{#if:{{{groupsize|}}}|({{{groupsize}}})}}}}<!-- |
||
+ | START -->{{#ifeq:world quest|{{#sub:{{lc:{{{type}}}}}|-11}}||<br />[[File:Availablequesticon.png|Start:]] {{{start|Unknown}}}<!-- |
||
+ | END --><br />[[File:Activequesticon.png|End:]] {{#ifeq:{{{end|}}}||{{{start|Unknown}}}|{{{end}}}}}}}<!-- |
||
+ | EXPERIENCE -->{{#if:{{{experience|}}}|<br />XP: {{{experience}}}}}<!-- |
||
+ | REPUTATION -->{{#if:{{{reputation|}}}|<br />Rep: {{{reputation}}}}}<!-- |
||
+ | REWARD/MONEY -->{{#if:{{{rewards|{{{money|}}}}}}|<br />Rewards:{{#if:{{{rewards|}}}|<br />{{{rewards|}}}}}{{#if:{{{money|}}}|<br />{{{money|}}}}}}}</div><!-- |
||
-->{{#if:{{{other-faction|}}}|<div class="qfordisambig disambig-for"> |
-->{{#if:{{{other-faction|}}}|<div class="qfordisambig disambig-for"> |
Revision as of 05:07, 23 January 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.
This template defines the table "Quests". View table.