Template:Quest infobox: Difference between revisions

From FHX Wiki
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:
<div class="infobox quest">
<div class="infobox quest">
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper>{{#if:{{{previous|}}}|
<div class="wrapper">
;Previous
;Region
: [[{{{previous}}}]]}}
;Zone
: [[{{{starting zone}}}]]
: [[{{{starting zone}}}]]
;Quest giver
: [[{{{start npc}}}]]
;Type
;Type
: ''{{#if:{{{type|}}}|{{{type}}}|Series}}''
: ''{{#if:{{{type|}}}|[[List of {{lc:{{{type}}}}} quests|{{{type}}}]]|[[Quest|Series]]}}''{{#if:{{{class|}}}|
;Req. class
: [[{{{class}}}]][[Category:{{{class}}} quest]]}}
;Req. level
;Req. level
: {{{level}}}
: {{{level}}}
;Objective
;Quest giver
: {{#if:{{{objective|}}}|{{{objective}}}|''Objective needed.''}}{{#if:{{{next|}}}|
: [[{{{start npc}}}]]{{#if:{{{previous|}}}|
;Previous
: [[{{{previous}}}]]}}{{#if:{{{next|}}}|
;Next
;Next
: [[{{{next}}}]]}}{{#if:{{{id|}}}|
: [[{{{next}}}]]}}{{#if:{{{id|}}}|
Line 23: Line 23:
</div>
</div>
{{clear}}
{{clear}}
<div class="subheading">Reward(s)</div>
;EXP
:{{{experience}}}{{#if:{{{coin|}}}|
;MONEY
:{{money|value={{{coin}}}}}}}{{#if:{{{fame|}}}|
;FAME
:{{{fame}}}}}{{#if:{{{item1|}}}|
;Item(s)
:[[{{{item1}}}]]}}{{#if:{{{item2|}}}|
;
:[[{{{item2}}}]]}}{{#if:{{{item3|}}}|
;
:[[{{{item3}}}]]}}{{#if:{{{item4|}}}|
;
:[[{{{item4}}}]]}}{{#if:{{{item5|}}}|
;
:[[{{{item5}}}]]}}{{#if:{{{item6|}}}|
;
:''Update template''}}
</div>
{{#if: {{{map|}}} |  
{{#if: {{{map|}}} |  
{{{!}} style="width:100%"
{{{!}} style="width:100%"
{{!}} '''Image(s)'''
{{!}} '''Quest map'''
{{!}}- style="text-align:center;"
{{!}}- style="text-align:center;"
{{!}}
{{!}}
{{#if:{{{map|}}}|[[File:{{{map}}}]]
{{#if:{{{map|}}}|[[File:{{{map}}}|200px]]
<p style="font-size:.9em;">{{{map-text|Click to enlarge.}}}</p>}}
<p style="font-size:.9em;">{{{map-text|Click to enlarge.}}}</p>}}
{{!}}}
{{!}}}
| {{clear}} }}
| {{clear}} }}
{{#if:{{{type|}}}|[[Category:{{{type}}} quest]]|[[Category:Series quest]]}}
{{#switch:{{lc:{{{type|Series}}}}}|series=[[Category:Series quest]]|group=[[Category:Group quest]]|daily=[[Category:Daily quest]]}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Description ==
== Description ==
Line 63: Line 43:
|start npc=
|start npc=
|type=
|type=
|class=
|level=
|level=
|previous=
|previous=
|next=
|next=
|objective=
|id=
|id=
|coordinates=
|coordinates=
|experience=
|coin=
|fame=
|item1...item5=
|map=
|map=
|map-text=
|map-text=
Line 79: Line 55:
== Parameters ==
== Parameters ==
; name : Optional. Only include if the name of the quest differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>
; name : Optional. Only include if the name of the quest differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>
; starting zone : Required. The zone the quest is first acquired (e.g. Silent Woods).
; starting zone : Required. The region/zone the quest is first acquired (e.g. Silent Woods).
; start npc : Required. The NPC that gives the quest.
; start npc : Required. The NPC that gives the quest.
; type : Optional. The quest type (i.e. Series, Group, Class, Daily), defaults to ''Series''.
; type : Optional. The quest type (i.e. Series, Group, Class, Daily), defaults to ''Series''.
; class : Optional. Include required class if quest is a Class quest.
; level : Required. The required level to start this quest.
; level : Required. The required level to start this quest.
; previous : Optional. The previous quest in the chain that unlocks this one.
; previous : Optional. The previous quest in the chain that unlocks this one.
; next : Optional. The next quest in the chain that this quest unlocks.
; next : Optional. The next quest in the chain that this quest unlocks.
; objective : Optional. Quest objective (e.g. summary from the quest journal).
; id : Optional. Quest id (e.g. qsf00_192).
; id : Optional. Quest id (e.g. qsf00_192).
; coordinates : Optional. Map coordinates for the starting NPC.
; coordinates : Optional. Map coordinates for the starting NPC.
; experience : Required. EXP reward for completing the quest.
; coin : Optional. Money reward for completing the quest.
; fame : Optional. Fame reward for completing the quest.
; item1...item5 : Optional. Item rewards for completing the quest.
; map : Optional. Map image of the quest (can include starting NPC, objective locations, etc.).
; map : Optional. Map image of the quest (can include starting NPC, objective locations, etc.).
; map-text : Optional. Map image description.
; map-text : Optional. Map image description.


== Example ==
== Example ==
<pre>
{{Quest infobox
{{Quest infobox
|name=Dusty Hobgoblin's Final Attack
|name=
|starting zone=Dusty Gorge
|starting zone=
|start npc=Claudia Pink
|start npc=
|type=Group
|type=
|level=28
|level=
|previous=Spark of Uprising
|previous=
|next=
|id=
|objective=Capture 5 Dusty Hobgoblin Captains and the Dusty Hobgoblin Patriarch.
|id=qsf00_195
|coordinates=
|coordinates=
|experience=3261
|coin=238
|fame=
|item1=Chain Mail Helmet of Bravery
|item2=Half Helmet of Bravery
|item3=Novice Circlet of Bravery
|map=
|map=
|map-text=
|map-text=
}}
}}
</pre>
<pre>
{{Quest infobox
{{Quest infobox
|name=Dusty Hobgoblin's Final Attack
|name=
|starting zone=Dusty Gorge
|starting zone=
|start npc=Claudia Pink
|start npc=
|type=Group
|type=
|level=28
|level=
|previous=Spark of Uprising
|previous=
|next=
|id=
|objective=Capture 5 Dusty Hobgoblin Captains and the Dusty Hobgoblin Patriarch.
|id=qsf00_195
|coordinates=
|coordinates=
|experience=3261
|coin=238
|fame=
|item1=Chain Mail Helmet of Bravery
|item2=Half Helmet of Bravery
|item3=Novice Circlet of Bravery
|map=
|map=
|map-text=
|map-text=
}}
}}
</pre>
== TODO ==
== TODO ==
:*Add properties to parameters
:*Add properties to parameters

Latest revision as of 03:24, 16 September 2024

Description

This is the Quest infobox template. It should be transcluded in the following format:

{{Quest infobox
|name=
|starting zone=
|start npc=
|type=
|class=
|level=
|previous=
|next=
|id=
|coordinates=
|map=
|map-text=
}}

Parameters

name
Optional. Only include if the name of the quest differs from the article name. Defaults to the name of the article: {{PAGENAME}}
starting zone
Required. The region/zone the quest is first acquired (e.g. Silent Woods).
start npc
Required. The NPC that gives the quest.
type
Optional. The quest type (i.e. Series, Group, Class, Daily), defaults to Series.
class
Optional. Include required class if quest is a Class quest.
level
Required. The required level to start this quest.
previous
Optional. The previous quest in the chain that unlocks this one.
next
Optional. The next quest in the chain that this quest unlocks.
id
Optional. Quest id (e.g. qsf00_192).
coordinates
Optional. Map coordinates for the starting NPC.
map
Optional. Map image of the quest (can include starting NPC, objective locations, etc.).
map-text
Optional. Map image description.

Example

Quest infobox

Region
[[]]
Type
Series
Req. level
Quest giver
[[]]
{{Quest infobox
|name=
|starting zone=
|start npc=
|type=
|level=
|previous=
|id=
|coordinates=
|map=
|map-text=
}}

TODO

  • Add properties to parameters