Template:Mission Header: Difference between revisions

From HorizonXI Wiki
m (added code in plain text to example)
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[category:Missions]]
[[Category:Templates/Headers|{{PAGENAME}}]]
<div style="display:flex; flex-flow: row wrap; gap: 1em; align-items: flex-start; margin: 1em 0;">
<includeonly><onlyinclude><!--
{| border="0" style="max-width: 525px; width: 100%;"
 
| valign="top" width="50%"|
Cheat sheet that is only visible during preview
{| class="bdrwhite thwhite" style="background:#fbecf6; text-align:left; max-width: 525px" cellpadding="3" cellspacing="1" width="100%"
-->{{Preview Only Infobox|<pre>
! style="background:#bc73a1; text-align:center;" colspan="100%"| {{#if: {{{Mission Name|}}}|{{{Mission Name}}}|{{PAGENAME}}}}
{{Mission Header
|- style="color:#565657"
| Mission Name = {Name of the Mission}
|width="30%" style="background:#f2dbeb; text-align:center;"| '''Series'''
| Expansion = {Series of the Missions}
| [[{{#switch: {{lc:{{{Expansion}}}}}| chains of promathia| promathia| cop=Chains of Promathia| rise of zilart| rise of the 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| Adoulin| adoulin| seekers| seekers of adoulin=Seekers of Adoulin| ACP| acp| a crystalline prophecy | Crystalline=A Crystalline Prophecy | kupo | KDE | Kupo d'Etat = A Kupo d'Etat | shantotto | ASA | A Shantotto Ascension = A Shantotto Ascension | abyssea | vision | scars | heroes | Vision of Abyssea | Scars of Abyssea | Heroes of Abyssea = Abyssea | rov | rhapsodies | Rhapsodies of Vanadiel = Rhapsodies of Vana'diel | tvr | resurgence | The Voracious Resurgence = The Voracious Resurgence | #default=None}}]]
| Start = {NPC name that starts the quest}
|- style="color:#565657"
| Start Location = {Location template}
|style="background:#f2dbeb; text-align:center;"|'''Starting NPC'''
| Description = {Ingame Mission Description}
|{{#if: {{{Start|}}}|{{{Start}}}|N/A}}
| Level = {Required Level to complete the Mission}
|- style="color:#565657"
| Requirements = {Requirements to ACCEPT the Mission}
|style="background:#f2dbeb; text-align:center;"|'''Level'''
| Items Needed = {Items Needed to COMPLETE the Mission}
|{{#if: {{{Level|}}}|{{{Level}}}|}}
| Repeatable = {yes/no}
|- style="color:#565657"
| HAAP = {points earned, links to HAAP category}
|style="background:#f2dbeb; text-align:center;"|'''Item Needed'''
| Title = {Title(s) obtained thoughout the mission
|{{#if: {{{Item Needed|}}}|{{{Item Needed}}}|N/A}}
| Rewards = {Rewards obtained for COMPLETING the Mission}
|- style="color:#565657"
| Previous = {previous mission: link{{!}}name}
|style="background:#f2dbeb; text-align:center;"|'''Title'''
| Next = {next mission: link{{!}}name}
|{{#if: {{{Title|}}}|{{{Title}}}|None}}
}}
|- style="color:#565657"
</pre>}}<!--
|style="background:#f2dbeb; text-align:center;"|'''Repeatable'''
 
|{{#switch: {{lc:{{{Repeatable}}}}}| y| yes=''Yes''| #default=''No''}}
-->{{categorize|{{{1|}}}|[[Category:Missions]][[Category:{{Mission Header/ExpansionSwitch|{{{Expansion}}}}}_Missions]]}}__NOTOC__
|- style="color:#565657"
{| class="horizon-infobox {{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}} infobox-34-66"
|style="background:#f2dbeb; text-align:center;"|'''Description'''
|{{#if: {{{Description|}}}|{{{Description}}}|&nbsp;}}
|-
|-
! colspan="2" style="text-align: center;" | {{#if: {{{Mission Name|}}}|{{{Mission Name}}}|{{PAGENAME}}}}<!--
If expansion is given and recognize, display it. If it is given and not recognized, it will display a blank field.
-->
|- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Series
| [[{{Mission Header/ExpansionSwitch|{{{Expansion}}}}} Missions]]<!--
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)
-->
|- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! {{#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 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|}}}|&nbsp;
{{!}}- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Level Restriction:
{{!}} {{#switch: {{lc:{{{Level}}}}}|false|n|no|none=''None''| #default=Level {{{Level}}}}}
}}<!--
Items Needed. row vanishes if none are given (Item Needed is fallback because thats how the parameter was called in the past)
-->{{#if: {{{Items Needed|}}}{{{Item Needed|}}}|&nbsp;
{{!}}- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Items Needed
{{!}} {{{Items Needed|}}}{{{Item Needed|}}}
}}<!--
Requirements. row vanishes if none are given
-->{{#if: {{{Requirements|}}} |&nbsp;
{{!}}- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Additional Requirements
{{!}} {{{Requirements}}}
}}<!--
If a title is given, display it. If no input is given, assume that there is no title from this mission.
-->
|- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Title
| {{#if: {{{Title|}}} | {{{Title}}} | ''None'' }}<!--
If repeatable is given as y or yes, then yes. For anything else, display no.
-->
|- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Repeatable
| {{#switch: {{lc:{{{Repeatable}}}}}<!--
-->|y|yes=''Yes''[[Category:Repeatable Missions|{{PAGENAME}}]]<!--
-->|#default=''No''<!--
-->}}<!--
If a description is given, display it. If none is given, the row vanishes.
-->{{#if: {{{HAAP|}}}{{{HAAP|}}}|&nbsp;
{{!}}- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! HAAP
{{!}} [[:category:Horizon Adventuring Assistance Program|{{{HAAP|}}}]]
}}<!--
-->{{#if: {{{Description|}}}|&nbsp;
{{!}}- class="{{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}-alt"
! Description
{{!}} {{{Description}}}
}}<!--
Rewards. If Rewards are given, display it. If none are given, outputs ''None''
-->
|-
! colspan="2" style="text-align: center;" | Rewards
|-
| colspan="2" style="text-align: center;" | {{#if:{{{Rewards|}}}{{{Reward|}}}|{{{Rewards|}}}{{{Reward|}}}|''None''}}
|}<!--
end main box. start previous/next box
Will output the result as a link. Therefore, the notation Mission Link{{!}}Mission Name is valid. This is necessary because this is how missions were implemented and doing it differently would break all existing missions.
-->
{| class="horizon-infobox {{Mission Header/ExpansionSwitchCSS|{{{Expansion|}}}}}  infobox-50-50" style="text-align: center;"
|-
! style="text-align: center;" | &larr; Previous Mission
! style="text-align: center;" | Next Mission &rarr;
|-
| style="vertical-align: middle;" | {{#if:{{{Previous|}}}|[[{{{Previous}}}]]|''None''}}
| style="vertical-align: middle;" | {{#if:{{{Next|}}}|[[{{{Next}}}]]|''None''}}
|}
|}


<!--
{| class="bdrwhite thwhite" style="background:#fbecf6; text-align:center; margin-top:10px; max-width: 525px; width: 100%" cellpadding="3" cellspacing="1" width="100%"
{| class="bdrwhite thwhite" style="background:#fbecf6; text-align:center; margin-top:10px; max-width: 525px; width: 100%" cellpadding="3" cellspacing="1" width="100%"
! style="background:#bc73a1;" width="50%" colspan="1"| Previous Mission
! style="background:#bc73a1;" width="50%" colspan="1"| Previous Mission
Line 36: Line 138:
| style="color:#000000;" |{{#if: {{{Next|}}}|[[{{{Next}}}]]|None}}{{#if: {{{Nextalt|}}}|<br />[[{{{Nextalt}}}]]|}}
| style="color:#000000;" |{{#if: {{{Next|}}}|[[{{{Next}}}]]|None}}{{#if: {{{Nextalt|}}}|<br />[[{{{Nextalt}}}]]|}}
|-
|-
|}
|}-->
 
<!--
{| class="bdrwhite thwhite" style="background:#fbecf6; text-align:center; max-width: 525px; width: 100%;" cellpadding="3" cellspacing="1"
{| class="bdrwhite thwhite" style="background:#fbecf6; text-align:center; max-width: 525px; width: 100%;" cellpadding="3" cellspacing="1"
! style="background:#bc73a1;" colspan="1"| Rewards
! style="background:#bc73a1;" colspan="1"| Rewards
Line 43: Line 145:
|style="color:#000000;text-align: center"|{{#if: {{{Reward|}}}|{{{Reward}}}|None}}
|style="color:#000000;text-align: center"|{{#if: {{{Reward|}}}|{{{Reward}}}|None}}
|-
|-
|}
|}-->
|}
</onlyinclude></includeonly>
</div>
</includeonly><noinclude>
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Example Usage==
==Example Usage==
Line 52: Line 152:
{{Mission Header
{{Mission Header
|Mission Name=Journey Abroad
|Mission Name=Journey Abroad
|Expansion=None
|Expansion=sandoria
|Start=Any San d'Oria Gate Guard
|Start=Any [[San d'Oria Gate Guard]]
|Description=Visit the faraway nations of [[Bastok]] and [[Windurst]] and receive official recognition as an adventurer.
|Description=Visit the faraway nations of [[Bastok]] and [[Windurst]] and receive official recognition as an adventurer.
|Level=
|Level=
|Items Needed=
|Repeatable=No
|Repeatable=No
|HAAP=2 points
|Previous=San d'Oria Mission 2-2{{!}}The Davoi Report
|Previous=San d'Oria Mission 2-2{{!}}The Davoi Report
|Next=San d'Oria Mission 3-1{{!}}Infiltrate Davoi
|Next=San d'Oria Mission 3-1{{!}}Infiltrate Davoi
|Title=Black Dragon Slayer or Dark Dragon Slayer, Certified Adventurer
|Title=Black Dragon Slayer or Dark Dragon Slayer<br>Certified Adventurer
|Reward=Rank 3<br>3,000 gil<br>10 Mog Wardrobe Space<br>[[Adventurer's Certificate]]
|Rewards=Rank 3<br>3,000 [[gil]]<br>[[Mog Wardrobe]]: 10 Slots {{changes}}<br>{{KeyItem}}[[Adventurer's Certificate]]
|Image=
}}
}}
</pre>
</pre>


 
{{Mission Header|nc
 
{{Mission Header
|Mission Name=Journey Abroad
|Mission Name=Journey Abroad
|Expansion=None
|Expansion=sandoria
|Start=Any San d'Oria Gate Guard
|Start=Any [[San d'Oria Gate Guard]]
|Description=Visit the faraway nations of [[Bastok]] and [[Windurst]] and receive official recognition as an adventurer.
|Description=Visit the faraway nations of [[Bastok]] and [[Windurst]] and receive official recognition as an adventurer.
|Level=
|Level=
|Items Needed=
|Repeatable=No
|Repeatable=No
|HAAP=2 points
|Previous=San d'Oria Mission 2-2{{!}}The Davoi Report
|Previous=San d'Oria Mission 2-2{{!}}The Davoi Report
|Next=San d'Oria Mission 3-1{{!}}Infiltrate Davoi
|Next=San d'Oria Mission 3-1{{!}}Infiltrate Davoi
|Title=Black Dragon Slayer or Dark Dragon Slayer, Certified Adventurer
|Title=Black Dragon Slayer or Dark Dragon Slayer<br>Certified Adventurer
|Reward=Rank 3<br>3,000 gil<br>10 Mog Wardrobe Space<br>[[Adventurer's Certificate]]
|Rewards=Rank 3<br>3,000 [[gil]]<br>[[Mog Wardrobe]]: 10 Slots {{changes}}<br>{{KeyItem}}[[Adventurer's Certificate]]
|Image=
}}
 
{{Mission Header|nc
| Mission Name = {Name of the Mission}
| Expansion = bastok
| Start = {NPC name that starts the quest}
| Start Location = {Location template}
| Description = {Ingame Mission Description}
| Level = {Required Level to complete the Mission}
| Requirements = {Requirements to ACCEPT the Mission}
| Items Needed = {Items Needed to COMPLETE the Mission}
| Repeatable = {yes/no}
| Title = {Title(s) obtained thoughout the mission
| Rewards = {Rewards obtained for COMPLETING the Mission}
| Previous = {previous mission: link{{!}}name}
| Next = {next mission: link{{!}}name}
}}
}}
===Documentation===
*'''Mission Name''' (optional): Name of the mission. If not given, will take the page name.
*'''Expansion''' (mandatory): '''The Series the mission belongs to.''' This is in most cases the expansion, except the three starting nations. The Expansion parameter is case insensitive and can use the following inputs:
**{{fontaccent|san d'oria, sandoria or sandy}} will display as San d'Oria
**{{fontaccent|bastok}} will display as Bastok
**{{fontaccent|windurst}} will display as Windurst
**{{fontaccent|rise of the zilart, zilart or rotz}} will all display as Rise of the Zilart.
**{{fontaccent|chains of promathia, promathia or cop}} will all display as Chains of Promathia.
**{{fontaccent|treasures of aht urhgan, aht urhgan or toau}} will all display as Treasures of Aht Urhgan.
**{{fontaccent|wings of the goddess, wings or wotg}} will all display as Wings of the Goddess.
**{{fontaccent|seekers of adoulin, seekers, adoulin or soa}} will all display as Seekers of Adoulin.
**{{fontaccent|abyssea}} will display as Abyssea.
**{{fontaccent|a crystalline prophecy or acp}} will display as A Crystalline Prophecy
**{{fontaccent|a moogle kupo d'etat, kupo d'etat, amkd or kde}} will display as A Moogle Kupo d'Etat.
**{{fontaccent|a shantotto ascension or asa}} will display as A Shantotto Ascension.
**{{fontaccent|rhapsodies of vanadiel, rhapsodies of vana'diel, rhapsodies or rov}} will display as Rhapsodies of Vana'diel.
**{{fontaccent|the voracious resurgence or tvr}} will display as The Voracious Resurgence.
*'''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 mission. If the mission is triggered by entering an area, leave this field blank.
**'''Start Location''' refers to the position of the NPC or the area triggering the mission. Use [[Template:Location]] as input.
*'''Description''' (optional): Mission Description as displayed in the mission log. Row will vanish if left blank.
*'''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''. 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.
*'''HAAP''' (optional): If the mission gives HAAP points, enter "# points". Parameter will not appear if no value is set.
*'''Title''' (optional): Title obtained from the mission. If nothing is given, the assumption is there is no title and will display ''None''.
*'''Requirements''' and '''Item Needed'''/'''Items Needed''' (optional): (Item Needed is supported because its the fallback for how the parameter was named in the past.) Items Needed refers to any item or key item needed for this mission. Requirements refers to anything that is not an item, like having access to an area, a certain job unlocked, .... The box vanishes if neither Requirements nor Items Needed exist.
::'''Enter entries as links''' if possible like {{fontaccent|<nowiki>[[name]]</nowiki>}} and use {{fontaccent|<nowiki><br></nowiki>}} to separate multiple entries.
*'''Reward'''/'''Rewards''' (optional): (Reward is supported because its the fallback for how the parameter was named in the past.) Rewards obtained by completing the mission.
::'''Enter entries as links''' if possible like {{fontaccent|<nowiki>[[name]]</nowiki>}} and use {{fontaccent|<nowiki><br></nowiki>}} to separate multiple entries.
*'''Previous''' and '''Next''' (optional): Refer to the name of the corresponding missions (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 mission is "The greatest mission ever" but corresponding wiki page is found at "Great_Mission" then you would use: '''<span style="font-family:monospace;"><nowiki>Great_Mission{{!}}The greatest mission ever</nowiki></span>'''
*Categories are automatically added accordingly with this template.

Latest revision as of 09:16, 23 June 2024

Example Usage

{{Mission Header
|Mission Name=Journey Abroad
|Expansion=sandoria
|Start=Any [[San d'Oria Gate Guard]]
|Description=Visit the faraway nations of [[Bastok]] and [[Windurst]] and receive official recognition as an adventurer.
|Level=
|Items Needed=
|Repeatable=No
|HAAP=2 points
|Previous=San d'Oria Mission 2-2{{!}}The Davoi Report
|Next=San d'Oria Mission 3-1{{!}}Infiltrate Davoi
|Title=Black Dragon Slayer or Dark Dragon Slayer<br>Certified Adventurer
|Rewards=Rank 3<br>3,000 [[gil]]<br>[[Mog Wardrobe]]: 10 Slots {{changes}}<br>{{KeyItem}}[[Adventurer's Certificate]]
}}


Journey Abroad
Series San d'Oria Missions
Starting NPC Any San d'Oria Gate Guard
Title Black Dragon Slayer or Dark Dragon Slayer
Certified Adventurer
Repeatable No 
HAAP 2 points 
Description Visit the faraway nations of Bastok and Windurst and receive official recognition as an adventurer.
Rewards
Rank 3
3,000 gil
Mog Wardrobe: 10 Slots HorizonXI specific changes
Key ItemAdventurer's Certificate
← Previous Mission Next Mission →
The Davoi Report Infiltrate Davoi



{Name of the Mission}
Series Bastok Missions
Starting NPC {NPC name that starts the quest}{Location template} 
Level Restriction: Level {Required Level to complete the Mission} 
Items Needed {Items Needed to COMPLETE the Mission} 
Additional Requirements {Requirements to ACCEPT the Mission}
Title {Title(s) obtained thoughout the mission
Repeatable No 
Description {Ingame Mission Description}
Rewards
{Rewards obtained for COMPLETING the Mission}
← Previous Mission Next Mission →
[[{previous mission: link|name}]] [[{next mission: link|name}]]



Documentation

  • Mission Name (optional): Name of the mission. If not given, will take the page name.
  • Expansion (mandatory): The Series the mission belongs to. This is in most cases the expansion, except the three starting nations. The Expansion parameter is case insensitive and can use the following inputs:
    • san d'oria, sandoria or sandy will display as San d'Oria
    • bastok will display as Bastok
    • windurst will display as Windurst
    • rise of the zilart, zilart or rotz will all display as Rise of the Zilart.
    • chains of promathia, promathia or cop will all display as Chains of Promathia.
    • treasures of aht urhgan, aht urhgan or toau will all display as Treasures of Aht Urhgan.
    • wings of the goddess, wings or wotg will all display as Wings of the Goddess.
    • seekers of adoulin, seekers, adoulin or soa will all display as Seekers of Adoulin.
    • abyssea will display as Abyssea.
    • a crystalline prophecy or acp will display as A Crystalline Prophecy
    • a moogle kupo d'etat, kupo d'etat, amkd or kde will display as A Moogle Kupo d'Etat.
    • a shantotto ascension or asa will display as A Shantotto Ascension.
    • rhapsodies of vanadiel, rhapsodies of vana'diel, rhapsodies or rov will display as Rhapsodies of Vana'diel.
    • the voracious resurgence or tvr will display as The Voracious Resurgence.
  • 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 mission. If the mission is triggered by entering an area, leave this field blank.
    • Start Location refers to the position of the NPC or the area triggering the mission. Use Template:Location as input.
  • Description (optional): Mission Description as displayed in the mission log. Row will vanish if left blank.
  • 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. 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.
  • HAAP (optional): If the mission gives HAAP points, enter "# points". Parameter will not appear if no value is set.
  • Title (optional): Title obtained from the mission. If nothing is given, the assumption is there is no title and will display None.
  • Requirements and Item Needed/Items Needed (optional): (Item Needed is supported because its the fallback for how the parameter was named in the past.) Items Needed refers to any item or key item needed for this mission. Requirements refers to anything that is not an item, like having access to an area, a certain job unlocked, .... The box vanishes if neither Requirements nor Items Needed exist.
Enter entries as links if possible like [[name]] and use <br> to separate multiple entries.
  • Reward/Rewards (optional): (Reward is supported because its the fallback for how the parameter was named in the past.) Rewards obtained by completing the mission.
Enter entries as links if possible like [[name]] and use <br> to separate multiple entries.
  • Previous and Next (optional): Refer to the name of the corresponding missions (case-sensitive).
If an alternate name must be specified for Previous/Next (that isn't the name of the article), use the {{!}} template as a pipe | separator.
Example: Name of mission is "The greatest mission ever" but corresponding wiki page is found at "Great_Mission" then you would use: Great_Mission{{!}}The greatest mission ever
  • Categories are automatically added accordingly with this template.