Template:TestThisTemplate.dpl: Difference between revisions

From HorizonXI Wiki
(further improvements to the Quest Header Template)
m (cleared again)
Tags: Blanking Manual revert
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Templates/Headers|{{PAGENAME}}]]
<includeonly><onlyinclude>[[category:Quests]]__NOTOC__
{| class="horizon-infobox infobox-quest infobox-34-66"
|-
! colspan="2" style="text-align: center;" | {{#if: {{{Quest Name|}}}|{{{Quest Name}}}|{{PAGENAME}}}}
|-<!--


If Fame is not specified, the default output is ''None''
If Fame is given: if it is a recognized area, that area is displayed along with the Fame Level parameter (a number. {{Information Needed}} if none given. This is the best practice for use.). If it is not a recognized area, the parameter is given as is without outputting fame level (this is for backwards compatibility and the fallback for custom user input).
-->
! Required Fame
| {{#if:{{{Fame|}}}|<!--
-->{{#switch: {{lc: {{{Fame}}}}}|
au| aht urhgan=[[Category:Aht Urhgan Quests]][[:Category:Aht Urhgan Quests|Aht Urhgan]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
b| bastok=[[Category:Bastok Quests]][[:Category:Bastok Quests|Bastok]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
j| jeuno=[[Category:Jeuno Quests]][[:Category:Jeuno Quests|Jeuno]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
o| other=[[Category:Other Quests]][[:Category:Other Quests|Other]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
ot| outlands=[[Category:Outlands Quests]][[:Category:Outlands Quests|Outlands]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
s| san d'oria=[[Category:San d'Oria Quests]][[:Category:San d'Oria Quests|San d'Oria]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
w| windurst=[[Category:Windurst Quests]][[:Category:Windurst Quests|Windurst]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
n| norg=[[Category:Outlands Quests]][[Category:Norg Quests]][[:Category:Norg Quests|Norg]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
k| kazham=[[Category:Outlands Quests]][[Category:Kazham Quests]][[:Category:Kazham Quests|Kazham]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
r| rabao=[[Category:Outlands Quests]][[Category:Rabao Quests]][[:Category:Rabao Quests|Rabao]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
a| abyssea=[[Category:Abyssea Quests]][[:Category:Abyssea Quests|Abyssea]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
aalt| abyssea - altepa=[[Category:Abyssea Quests]][[Category:Abyssea - Altepa Quests]][[:Category:Abyssea - Altepa Quests|Abyssea - Altepa]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
aatt| abyssea - attohwa=[[Category:Abyssea Quests]][[Category:Abyssea - Attohwa Quests]][[:Category:Abyssea - Attohwa Quests|Abyssea - Attohwa]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
agra| abyssea - grauberg=[[Category:Abyssea Quests]][[Category:Abyssea - Grauberg Quests]][[:Category:Abyssea - Grauberg Quests|Abyssea - Grauberg]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
akon| abyssea - konschtat=[[Category:Abyssea Quests]][[Category:Abyssea - Konschtat Quests]][[:Category:Abyssea - Konschtat Quests|Abyssea - Konschtat]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
alth| abyssea - la theine=[[Category:Abyssea Quests]][[Category:Abyssea - La Theine Quests]][[:Category:Abyssea - La Theine Quests|Abyssea - La Theine]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
amis| abyssea - misareaux=[[Category:Abyssea Quests]][[Category:Abyssea - Misareaux Quests]][[:Category:Abyssea - Misareaux Quests|Abyssea - Misareaux]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
atah| abyssea - tahrongi=[[Category:Abyssea Quests]][[Category:Abyssea - Tahrongi Quests]][[:Category:Abyssea - Tahrongi Quests|Abyssea - Tahrongi]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
aule| abyssea - uleguerand=[[Category:Abyssea Quests]][[Category:Abyssea - Uleguerand Quests]][[:Category:Abyssea - Uleguerand Quests|Abyssea - Uleguerand]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
avun| abyssea - vunkerl=[[Category:Abyssea Quests]][[Category:Abyssea - Vunkerl Quests]][[:Category:Abyssea - Vunkerl Quests|Abyssea - Vunkerl]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
adoulin| seekers of adoulin=[[Category:Adoulin Quests]][[Category:Adoulin Quests]][[:Category:Adoulin Quests|Adoulin]] Fame Level: {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|{{Information Needed}}}}|
#default={{{Fame}}}}}<!--
-->|''None''}}
|-<!--
If no level restriction is given, the row will vanish
If one is given, false, n, no and none trigger ''None'',
else the output for XX is Level XX
-->
{{#if: {{{Level|}}}|
! Level Restriction:
{{!}} {{#switch: {{lc:{{{Level}}}}}|false|n|no|none=''None''| #default=Level {{{Level}}}}}
{{!}}-}}<!--
If Start is given (npc) then display left side as Starting NPC, otherwise just as Start
If Start is given, check if link exists and output as such. If Start is given but link does NOT exist AND Start Location does NOT exist, then display no comma and space or {{Information Needed}} (this is the fallback case and backwards compatibility for writing everything into the Start parameter). If with existing Start as link, Start Location exist, add a comma and a space (to display Start Location in the next step), otherwise display {{Information Needed}} as it is unclear where the npc is located.
If Start Location exists, display it.
If neither Start nor Start Location exist, display {{Information Needed}} (no information whatsoever)
-->
! {{#if: {{{Start|}}}|Starting NPC|Start}}
| {{#if: {{{Start|}}} |<!--
  -->{{#ifexist:{{{Start|}}}|[[{{{Start}}}]]<!--
    -->{{#if: {{{Start Location|}}}|,&nbsp;|, {{Information Needed}}}}<!--
    -->|{{{Start}}}<!--
  -->}}<!--
-->|}}<!--
-->{{#if: {{{Start Location|}}}|{{{Start Location}}}}}<!--
-->{{#if: {{{Start|}}}{{{Start Location|}}}| |{{Information Needed}}}}
|-<!--
If expansion is given and recognize, display it. If it is given and not recognized, display the input. If nothing is given, the row vanishes.
-->
{{#if: {{{Expansion|}}}|
! Pack
{{!}} {{#switch: {{lc:{{{Expansion}}}}}<!--
-->|chains of promathia|promathia|cop=Chains of Promathia<!--
-->|rise of zilart|rise of the zilart|rotz|zilart|roz=Rise of the Zilart<!--
-->|toau|tau|toa|treasures of aht urhgan=Treasures of Aht Urhgan<!--
-->|wotg|wog|wg|wings of the goddess=Wings of the Goddess<!--
-->|a|abyssea=Abyssea<!--
-->|seekers of adoulin|adoulin=Seekers of Adoulin<!--
-->|#default={{{Expansion}}}<!--
-->}}
{{!}}-}}<!--
If a title is given, display it. If no input is given, assume that there is no title from this quest.
-->
! Title
| {{#if: {{{Title|}}} | {{{Title}}} | ''None'' }}
|-<!--
If repeatable is given as y or yes, then yes. If given as af or mem, then yes after memory reset. For anything else, display no.
-->
! Repeatable
| {{#if:{{{Repeatable|}}}|<!--
-->{{#switch: {{lc:{{{Repeatable}}}}}<!--
-->|y|yes=''Yes''[[Category:Repeatable Quests|{{PAGENAME}}]]<!--
-->|af|mem=''Yes, after [[Memory reset]]''<!--
-->|#default=''No''<!--
-->}}<!--
-->}}
|-<!--
If a description is given, display it. If none is given, the row vanishes.
-->
{{#if: {{{Description|}}} |
! Description
{{!}} {{{Description}}}}}<!--
-->
|}<!--
end main box. start previous/next box
If either previous and/or next are given, then display the box. If neither are given, then no box.
-->
{{#if:{{{Previous|}}}{{{Next|}}}|
{<!--open table-->{{!}} class="horizon-infobox infobox-quest  infobox-50-50" style="text-align: center; margin-bottom:0;"
{{!}}-
! style="text-align: center;" {{!}} &larr; Previous Quest
! style="text-align: center;" {{!}} Next Quest &rarr;
{{!}}-
{{!}} {{#if:{{{Previous|}}}|[[{{{Previous}}}]]|''None''}}
{{!}} {{#if:{{{Next|}}}|[[{{{Next}}}]]|''None''}}
{{!}}<!--close table-->}
}}<!--
end previous/next box. start requirements box
-->
{{#if:{{{Quest Reqs|}}}{{{Item Reqs|}}}|
{<!--open table-->{{!}} class="horizon-infobox infobox-quest" style="text-align: center; margin-top:0; margin-bottom:0;"
! style="text-align:center;" {{!}} Requirements
{{!}}-
{{!}}<!--
-->{{#if: {{{Quest Reqs}}} |{{{Quest Reqs}}}<!--
  -->{{#if: {{{Item Reqs|}}} | <br><hr>|}}<!--
-->|}}<!--
-->{{#if: {{{Item Reqs|}}} | {{{Item Reqs}}} | }}
{{!}}<!--close table-->}
}}<!--
end requirements box. start reward box
-->
{{#if:{{{Reward|}}}|
{<!--open table-->{{!}} class="horizon-infobox infobox-quest" style="text-align: center; margin-top:0;"
! style="text-align:center;" {{!}} Rewards
{{!}}-
{{!}} {{{Reward}}}
{{!}}<!--close table-->}
}}<!--
--></onlyinclude></includeonly>
==Usage==
===Code===
<pre>{{Quest Header
|Quest Name=Secrets of San d'Oria
|Expansion= Chains of Promathia
|Start=Prishe
|Start Location={{Location|Tavnazian Safehold|H-9}}
|Description=
|Fame=San d'Oria
|Fame Level=1
|Level=50
|Repeatable= no
|Title=Lord of the Test Quest
|Quest Reqs= [[Paladin]] Lvl. 15<br>{{KeyItem}}[[Adventurer's Certificate]]
|Item Reqs=[[Onion Sword]]<br>[[Chocobo Feather]]
|Reward=[[Pebble]]<br>[[Blue Chip]]<br>1,000 [[Gil]]
|Previous= Last Quest Link{{!}}Last Quest Name
|Next= Next Quest Link{{!}}Next Quest Name
}}</pre>
===Example===
{{TestThisTemplate.dpl
|Quest Name=Secrets of San d'Oria
|Expansion= Chains of Promathia
|Start=Prishe
|Start Location={{Location|Tavnazian Safehold|H-9}}
|Description=
|Fame=San d'Oria
|Fame Level=1
|Level=50
|Repeatable= no
|Title=Lord of the Test Quest
|Quest Reqs= [[Paladin]] Lvl. 15<br>{{KeyItem}}[[Adventurer's Certificate]]
|Item Reqs=[[Onion Sword]]<br>[[Chocobo Feather]]
|Reward=[[Pebble]]<br>[[Blue Chip]]<br>1,000 [[Gil]]
|Previous= Last Quest Link{{!}}Last Quest Name
|Next= Next Quest Link{{!}}Next Quest Name
}}
===Documentation===
<!--*Parameters are self explanatory, if there is no answer to a field or it's "None", simply leave it blank.-->
*'''Quest Name''' (optional): Name of the quest. If not given, will take the page name.
*'''Expansion''' (optional): Expansion the Quest was shipped with. If not given, the row will not be displayed. The Expansion parameter can use nicknames:
**'''<span style="font-family:monospace;">RotZ, RoZ, Zilart, Rise of Zilart or Rise of the Zilart</span>''' will all display as Rise of the Zilart.
**'''<span style="font-family:monospace;">Promathia, CoP, or Chains of Promathia</span>''' will all display as Chains of Promathia.
**'''<span style="font-family:monospace;">ToAU, TAU, ToA, or Treasures of Aht Urhgan</span>''' will all display as Treasures of Aht Urhgan.
**'''<span style="font-family:monospace;">WotG, WoG, WG, or Wings of the Goddess</span>''' will all display as Wings of the Goddess.
**'''<span style="font-family:monospace;">Adoulin</span>''' will display as Seekers of Adoulin.
**'''<span style="font-family:monospace;">A, or Abyssea</span>''' will all display as Abyssea.
*'''Start''' and '''Start Location''' (mandatory): Will display {{Information Needed}} if both are left blank.
**'''Start''' refers to the NPC or Event that triggers the start of the Quest. If the Quest is triggered by entering an area, leave this field blank.
**'''Start Location''' refers to the position of the NPC or the area triggering the quest. Use [[Template:Location]] as input.
*'''Description''' (optional): Quest Description as displayed in the Quest log. Row will vanish if left blank.
*'''Fame''' (mandatory): Fame area or none. Will display {{Information Needed}} if left blank.
**Valid Fame areas: '''<span style="font-family:monospace;">Aht Urhgan (AU)</span>''', '''<span style="font-family:monospace;">Bastok (B)</span>''', '''<span style="font-family:monospace;">Jeuno (J)</span>''', '''<span style="font-family:monospace;">Kazham (K)</span>''', '''<span style="font-family:monospace;">Other (O)</span>''', '''<span style="font-family:monospace;">Outlands (OT)</span>''', '''<span style="font-family:monospace;">Rabao (Rabao)</span>''', '''<span style="font-family:monospace;">San d'Oria (S)</span>''', '''<span style="font-family:monospace;">Windurst (W)</span>''', '''<span style="font-family:monospace;">Norg (N)</span>''', '''<span style="font-family:monospace;">None (none)</span>'''.
::* Abyssea zones may be added in the following manner: '''<span style="font-family:monospace;">Abyssea - Altepa (aalt)</span>''', '''<span style="font-family:monospace;">Abyssea - Attohwa (aatt)</span>''', '''<span style="font-family:monospace;">Abyssea - Grauberg (agra)</span>''', '''<span style="font-family:monospace;">Abyssea - Konschtat (akon)</span>''', '''<span style="font-family:monospace;">Abyssea - La Theine (alth)</span>''', '''<span style="font-family:monospace;">Abyssea - Misareaux (amis)</span>''', '''<span style="font-family:monospace;">Abyssea - Tahrongi (atah)</span>''', '''<span style="font-family:monospace;">Abyssea - Uleguerand (aule)</span>''', '''<span style="font-family:monospace;">Abyssea - Vunkerl (avun)</span>'''.
*'''Fame Level''' (mandatory unless Fame is ''none''): Fame Level required in the ''Fame'' area to trigger the quest.
*'''Level''' (optional): If there is a level requirement, specify it here. If nothing is given, the row will vanish.
*'''Repeatable''' (optional): If yes, will display ''Yes''. Can put '''<span style="font-family:monospace;">af</span>''' or '''<span style="font-family:monospace;">mem</span>''' to display ''Yes, after [[Memory Reset]]''. Otherwise will display ''No'' by default. Still, best practice is to fill this field in case of no to signal to editors, that its not unknown.
*'''Title''' (optional): Title obtained from the Quest. If nothing is given, the assumption is there is no title and will display ''None''.
*'''Quest Reqs''' and '''Item Reqs''' ...
*'''Reward''' ...
*'''Previous''' and '''Next''' refers to the name of the corresponding quest (case-sensitive).
**If an alternate name must be specified for Previous/Next (that isn't the name of the article), use the <nowiki>{{!}}</nowiki> template as a pipe | separator.
::Example: Name of quest is "The greatest Quest ever" but corresponding wiki page is found at "Great_Quest" then you would use: '''<span style="font-family:monospace;"><nowiki>Great_Quest{{!}}The greatest Quest ever</nowiki></span>'''
*Categories are automatically added accordingly with this template.

Latest revision as of 00:09, 10 April 2024