Template:TestThisTemplate.dpl: Difference between revisions

From HorizonXI Wiki
(expanded on functionality in documentation, functionality not yet completely implemented)
(finished template testing, cleared page)
Tags: Blanking Manual revert
 
(29 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|}}}|
! Required Fame
{{!}}{{#switch: {{lc: {{{Fame}}}}}|
au| aht urhgan=[[Category:Aht Urhgan Quests]][[:Category:Aht Urhgan Quests|Aht Urhgan]] Fame Level:|
b| bastok=[[Category:Bastok Quests]][[:Category:Bastok Quests|Bastok]] Fame Level:|
j| jeuno=[[Category:Jeuno Quests]][[:Category:Jeuno Quests|Jeuno]] Fame Level:|
o| other=[[Category:Other Quests]][[:Category:Other Quests|Other]] Fame Level:|
ot| outlands=[[Category:Outlands Quests]][[:Category:Outlands Quests|Outlands]] Fame Level:|
s| san d'oria=[[Category:San d'Oria Quests]][[:Category:San d'Oria Quests|San d'Oria]] Fame Level:|
w| windurst=[[Category:Windurst Quests]][[:Category:Windurst Quests|Windurst]] Fame Level:|
n| norg=[[Category:Outlands Quests]][[Category:Norg Quests]][[:Category:Norg Quests|Norg]] Fame Level:|
k| kazham=[[Category:Outlands Quests]][[Category:Kazham Quests]][[:Category:Kazham Quests|Kazham]] Fame Level:|
r| rabao=[[Category:Outlands Quests]][[Category:Rabao Quests]][[:Category:Rabao Quests|Rabao]] Fame Level:|
a| abyssea=[[Category:Abyssea Quests]][[:Category:Abyssea Quests|Abyssea]] Fame Level:|
aalt| abyssea - altepa=[[Category:Abyssea Quests]][[Category:Abyssea - Altepa Quests]][[:Category:Abyssea - Altepa Quests|Abyssea - Altepa]] Fame Level:|
aatt| abyssea - attohwa=[[Category:Abyssea Quests]][[Category:Abyssea - Attohwa Quests]][[:Category:Abyssea - Attohwa Quests|Abyssea - Attohwa]] Fame Level:|
agra| abyssea - grauberg=[[Category:Abyssea Quests]][[Category:Abyssea - Grauberg Quests]][[:Category:Abyssea - Grauberg Quests|Abyssea - Grauberg]] Fame Level:|
akon| abyssea - konschtat=[[Category:Abyssea Quests]][[Category:Abyssea - Konschtat Quests]][[:Category:Abyssea - Konschtat Quests|Abyssea - Konschtat]] Fame Level:|
alth| abyssea - la theine=[[Category:Abyssea Quests]][[Category:Abyssea - La Theine Quests]][[:Category:Abyssea - La Theine Quests|Abyssea - La Theine]] Fame Level:|
amis| abyssea - misareaux=[[Category:Abyssea Quests]][[Category:Abyssea - Misareaux Quests]][[:Category:Abyssea - Misareaux Quests|Abyssea - Misareaux]] Fame Level:|
atah| abyssea - tahrongi=[[Category:Abyssea Quests]][[Category:Abyssea - Tahrongi Quests]][[:Category:Abyssea - Tahrongi Quests|Abyssea - Tahrongi]] Fame Level:|
aule| abyssea - uleguerand=[[Category:Abyssea Quests]][[Category:Abyssea - Uleguerand Quests]][[:Category:Abyssea - Uleguerand Quests|Abyssea - Uleguerand]] Fame Level:|
avun| abyssea - vunkerl=[[Category:Abyssea Quests]][[Category:Abyssea - Vunkerl Quests]][[:Category:Abyssea - Vunkerl Quests|Abyssea - Vunkerl]] Fame Level:|
adoulin| seekers of adoulin=[[Category:Adoulin Quests]][[Category:Adoulin Quests]][[:Category:Adoulin Quests|Adoulin]] Fame Level:|
#default=}} {{#if: {{{Fame Level|}}}|{{{Fame Level}}}|}}
{{!}}-}}<!--
-->
{{#if: {{{Level|}}}|
! Level Restriction:
{{!}} {{#switch: {{{Level}}}| N/A| None=None| {{{Level}}}=Level {{{Level}}}}}
{{!}}-}}<!--
-->
{{#if: {{{Start|}}}{{{Start Location|}}} |
! {{#if: {{{Start|}}}|Starting NPC|Start}}
{{!}} {{#ifexist:{{{Start}}}|[[{{{Start}}}]]|{{{Start}}}}}<!--
-->{{#if: {{{Start Location|}}}|<!--
  -->{{#if: {{{Start|}}}|,&nbsp;|}}<!--
  -->{{{Start Location}}}<!--
-->|}}
{{!}}-}}<!--
-->
{{#if: {{{Expansion|}}}|
! Pack
{{!}} {{#switch: {{lc:{{{Expansion}}}}}| chains of promathia| promathia| Chains of 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=Treasures of Aht Urhgan| wotg| wog| wg| Wings of the Goddess| wings of the goddess=Wings of the Goddess| a| Abyssea| abyssea=Abyssea| Seekers of Adoulin| adoulin=Seekers of Adoulin| #default=None}}
{{!}}-}}<!--
-->
{{#if: {{{Title|}}} |
! Title
{{!}} {{{Title}}}
{{!}}-}}<!--
-->
{{#if:{{{Repeatable|}}}|
! Repeatable
{{!}} {{#switch: {{lc:{{{Repeatable}}}}}| y| yes=''Yes''[[Category:Repeatable Quests|{{PAGENAME}}]] | af| mem=''Yes, after [[Memory reset]]'' | #default=''No''}}
{{!}}-}}<!--
-->
{{#if: {{{Description|}}} |
! Description
{{!}} {{{Description}}}}}
|}<!-- end main box. start previous/next 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= N/a
|Fame= San d'Oria
|Fame Level= 1
|Quest Reqs= [[Paladin]] Lvl. 15<br>{{KeyItem}}[[Adventurer's Certificate]]
|Item Reqs=[[Onion Sword]]<br>[[Chocobo Feather]]
|Level= 50
|Repeatable= no
|Previous= Last Quest Link{{!}}Last Quest Name
|Next= Next Quest Link{{!}}Next Quest Name
|Title=Lord of the Test Quest
|Reward=[[Pebble]]<br>[[Blue Chip]]<br>1,000 [[Gil]]
}}</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= N/a
|Fame= San d'Oria
|Fame Level= 1
|Quest Reqs= [[Paladin]] Lvl. 15<br>{{KeyItem}}[[Adventurer's Certificate]]
|Item Reqs=[[Onion Sword]]<br>[[Chocobo Feather]]
|Level= 50
|Repeatable= no
|Previous= Last Quest Link{{!}}Last Quest Name
|Next= Next Quest Link{{!}}Next Quest Name
|Title=Lord of the Test Quest
|Reward=[[Pebble]]<br>[[Blue Chip]]<br>1,000 [[Gil]]
}}
===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''' (mandatory): Quest Description as displayed in the Quest log. Will display {{Information Needed}} 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 refers to any level restriction (as a number) keep blank if none.
*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 16:11, 3 August 2024