Template:Quest infobox: Difference between revisions
No edit summary |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
;Region | |||
; | |||
: [[{{{starting zone}}}]] | : [[{{{starting zone}}}]] | ||
;Type | ;Type | ||
: ''{{#if:{{{type|}}}|{{{type}}}|Series}}'' | : ''{{#if:{{{type|}}}|[[List of {{lc:{{{type}}}}} quests|{{{type}}}]]|[[Quest|Series]]}}''{{#if:{{{class|}}}| | ||
;Req. class | |||
:{{#if:{{string split|{{{class|}}}|" "|1}}|[[{{string split|{{{class|}}}|" "|1}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|2}}|[[{{string split|{{{class|}}}|" "|2}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|3}}|[[{{string split|{{{class|}}}|" "|3}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|4}}|[[{{string split|{{{class|}}}|" "|4}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|5}}|[[{{string split|{{{class|}}}|" "|5}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|6}}|[[{{string split|{{{class|}}}|" "|6}}]]|{{clear}}}} {{#if:{{string split|{{{class|}}}|" "|7}}|[[{{string split|{{{class|}}}|" "|7}}]]|{{clear}}}}}} | |||
;Req. level | ;Req. level | ||
: {{{level}}} | : {{{level}}} | ||
; | ;Quest giver | ||
: {{#if:{{{ | : [[{{{start npc}}}]]{{#if:{{{previous|}}}| | ||
;Previous | |||
: [[{{{previous}}}]]}}{{#if:{{{previous2|}}}| | |||
; | |||
: [[{{{previous2}}}]]}}{{#if:{{{next|}}}| | |||
;Next | ;Next | ||
: [[{{{next}}}]]}}{{#if:{{{id|}}}| | : [[{{{next}}}]]}}{{#if:{{{next2|}}}| | ||
; | |||
: [[{{{next2}}}]]}}{{#if:{{{id|}}}| | |||
;id | ;id | ||
:''{{{id}}}''}}{{#if:{{{coordinates|}}}| | :''{{{id}}}''}}{{#if:{{{coordinates|}}}| | ||
Line 24: | Line 27: | ||
</div> | </div> | ||
{{clear}} | {{clear}} | ||
{{#if: {{{map|}}} | | {{#if: {{{map|}}} | | ||
{{{!}} style="width:100%" | {{{!}} style="width:100%" | ||
{{!}} ''' | {{!}} '''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:{{{ | </div>{{#switch:{{lc:{{{type|Series}}}}}|series=[[Category:Series quest]]|group=[[Category:Group quest]]|daily=[[Category:Daily quest]]}}{{#if:{{{class|]}}}|{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|1}}}} | ||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|2}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|3}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|4}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|5}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|6}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}{{#switch:{{ucfirst:{{string split|{{{class|}}}|" "|7}}}} | |||
|Wr=[[Category:Warrior quest]] | |||
|Kn=[[Category:Knight quest]] | |||
|Ac=[[Category:Archer quest]] | |||
|Pa=[[Category:Paladin quest]] | |||
|Wi=[[Category:Wizard quest]] | |||
|Cl=[[Category:Cleric quest]] | |||
|Sn=[[Category:Summoner quest]] | |||
}}|{{clear}}}} | |||
</includeonly><noinclude> | |||
== Description == | == Description == | ||
This is the '''{{PAGENAME}}''' template. | This is the '''{{PAGENAME}}''' template. | ||
Line 64: | Line 103: | ||
|start npc= | |start npc= | ||
|type= | |type= | ||
|class= | |||
|level= | |level= | ||
|previous= | |previous= | ||
|next= | |next= | ||
|id= | |id= | ||
|coordinates= | |coordinates= | ||
|map= | |map= | ||
|map-text= | |map-text= | ||
Line 80: | Line 115: | ||
== 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 class(es) required to start quest. Use shortened class name: Wr Kn Ac Pa Wi Cl Sn | |||
; 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. | ||
; 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. | ||
; 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. | ||
Line 98: | Line 129: | ||
== Example == | == Example == | ||
{{Quest infobox | {{Quest infobox | ||
|name= | |name= | ||
|starting zone= | |starting zone= | ||
|start npc= | |start npc= | ||
|type= | |type= | ||
|level= | |level= | ||
|previous= | |previous= | ||
|id= | |||
|id= | |||
|coordinates= | |coordinates= | ||
|map= | |map= | ||
|map-text= | |map-text= | ||
Line 119: | Line 142: | ||
<pre> | <pre> | ||
{{Quest infobox | {{Quest infobox | ||
|name= | |name= | ||
|starting zone= | |starting zone= | ||
|start npc= | |start npc= | ||
|type= | |type= | ||
|level= | |level= | ||
|previous= | |previous= | ||
|id= | |||
|id= | |||
|coordinates= | |coordinates= | ||
|map= | |map= | ||
|map-text= | |map-text= | ||
}} | }} | ||
</pre> | </pre> | ||
== TODO == | == TODO == | ||
:*Add properties to parameters | :*Add properties to parameters |
Latest revision as of 14:03, 24 October 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 class(es) required to start quest. Use shortened class name: Wr Kn Ac Pa Wi Cl Sn
- 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