Difference between revisions of "Template:Questlink"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Added support for unnamed parameters by order. Currently existing links using named parameters will still work.)
(Added FATE and GATE support)
Line 10: Line 10:
|repfeature = [[File:Repeatablefeaturequest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=30px|#default=20px}}|Repeatable Feature Quest]]
|repfeature = [[File:Repeatablefeaturequest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=30px|#default=20px}}|Repeatable Feature Quest]]
|levequest = [[File:Levequest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=30px|#default=15px}}|Levequest]]
|levequest = [[File:Levequest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=30px|#default=15px}}|Levequest]]
|fate = [[File:FATE_Slay_Enemies.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE]]
|fate-enemies = [[File:FATE_Slay_Enemies.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE: Slay Enemies]]
|fate-boss = [[File:FATE_Kill_Boss.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE: Kill Boss]]
|fate-escort = [[File:FATE_Escort.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE: Escort]]
|fate-defense = [[File:Defense_FATE_icon.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE: Defense]]
|fate-collect = [[File:Collection_FATE_icon.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|FATE: Collect Items]]
|gate = [[File:Npcs_that_initiate_gates_icon1.png|link=|{{#switch:{{lc:{{{large}}}}}|true=32px|#default=20px}}|GATE]]
|other = [[File:Otherquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Other Quest]]
|other = [[File:Otherquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Other Quest]]
|#default = ERROR: Invalid value for parameter 1 "type"}}[[{{{name}}}]]|
|#default = ERROR: Invalid value for parameter 1 "type"}}[[{{{name}}}]]|
Line 22: Line 29:
|repfeature = [[File:Repeatablefeaturequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=20px}}|Repeatable Feature Quest]]
|repfeature = [[File:Repeatablefeaturequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=20px}}|Repeatable Feature Quest]]
|levequest = [[File:Levequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=15px}}|Levequest]]
|levequest = [[File:Levequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=15px}}|Levequest]]
|fate = [[File:FATE_Slay_Enemies.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE]]
|fate-enemies = [[File:FATE_Slay_Enemies.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE: Slay Enemies]]
|fate-boss = [[File:FATE_Kill_Boss.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE: Kill Boss]]
|fate-escort = [[File:FATE_Escort.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE: Escort]]
|fate-defense = [[File:Defense_FATE_icon.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE: Defense]]
|fate-collect = [[File:Collection_FATE_icon.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|FATE: Collect Items]]
|gate = [[File:Npcs_that_initiate_gates_icon1.png|link=|{{#switch:{{lc:{{{3}}}}}|large=32px|#default=20px}}|GATE]]
|other = [[File:Otherquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=35px|#default=20px}}|Other Quest]]
|other = [[File:Otherquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=35px|#default=20px}}|Other Quest]]
|#default = ERROR: Invalid value for parameter 1 "type"}}[[{{{2}}}]]}}</includeonly><noinclude>
|#default = ERROR: Invalid value for parameter 1 "type"}}[[{{{2}}}]]}}</includeonly><noinclude>
Line 40: Line 54:
:* '''repfeature''': [[File:Repeatablefeaturequest.png|link=|20px|Repeatable Feature Quest]]Alias of repeatablefeature
:* '''repfeature''': [[File:Repeatablefeaturequest.png|link=|20px|Repeatable Feature Quest]]Alias of repeatablefeature
:* '''levequest''': [[File:Levequest.png|link=|15px|Levequest]]Levequests
:* '''levequest''': [[File:Levequest.png|link=|15px|Levequest]]Levequests
:* '''fate''': [[File:FATE_Slay_Enemies.png|link=|20px|FATE]]FATEs, Full Active Time Events (Generic)
:* '''fate-enemies''': [[File:FATE_Slay_Enemies.png|link=|20px|FATE: Slay Enemies]]FATE: Slay multiple enemies to fill the bar and complete the FATE.
:* '''fate-boss''': [[File:FATE_Kill_Boss.png|link=|20px|FATE: Kill Boss]]FATE: Kill a boss to complete the FATE.
:* '''fate-escort''': [[File:FATE_Escort.png|link=|20px|FATE: Escort]]FATE: Escort an NPC to a given location to complete the FATE.
:* '''fate-defense''': [[File:Defense_FATE_icon.png|link=|20px|FATE: Defense]]FATE: Defend critical NPCs or resources from enemies to complete the FATE.
:* '''fate-collect''': [[File:Collection_FATE_icon.png|link=|20px|FATE: Collect Items]]FATE: Collect items and turn them in to complete the FATE.
:* '''gate''': [[File:Npcs_that_initiate_gates_icon1.png|link=|20px|GATE]]GATEs, Gold Saucer Active Time Events
:* '''other''': [[File:Otherquest.png|link=|20px|Other Quest]]Other quests.  For quests and functions that don't fit any of the normal categories.  Used for chocobo porters, Eureka quests, Bozja resistance rank increases, etc.
:* '''other''': [[File:Otherquest.png|link=|20px|Other Quest]]Other quests.  For quests and functions that don't fit any of the normal categories.  Used for chocobo porters, Eureka quests, Bozja resistance rank increases, etc.
; name
; name
Line 70: Line 91:
{{questlink|levequest|A Feast in the Forest}}</pre>
{{questlink|levequest|A Feast in the Forest}}</pre>
{{questlink|type=levequest|name=A Feast in the Forest}}
{{questlink|type=levequest|name=A Feast in the Forest}}
<pre>{{questlink|type=fate-enemies|name=Supper Time}}
{{questlink|fate-enemies|Supper Time}}</pre>
{{questlink|fate-enemies|Supper Time}}
<pre>{{questlink|type=fate-boss|name=Behold Now Behemoth}}
{{questlink|fate-boss|Behold Now Behemoth}}</pre>
{{questlink|fate-boss|Behold Now Behemoth}}
<pre>{{questlink|type=fate-escort|name=The Ceruleum Road}}
{{questlink|fate-escort|The Ceruleum Road}}</pre>
{{questlink|fate-escort|The Ceruleum Road}}
<pre>{{questlink|type=fate-defense|name=The End of the Sentry}}
{{questlink|fate-defense|The End of the Sentry}}</pre>
{{questlink|fate-defense|The End of the Sentry}}
<pre>{{questlink|type=fate-collect|name=Treasure Island}}
{{questlink|fate-collect|Treasure Island}}</pre>
{{questlink|fate-collect|Treasure Island}}
<pre>{{questlink|type=gate|name=Air Force One}}
{{questlink|gate|Air Force One}}</pre>
{{questlink|gate|Air Force One}}
<pre>{{questlink|type=other|name=Forged Anew}}
<pre>{{questlink|type=other|name=Forged Anew}}
{{questlink|other|Forged Anew}}</pre>
{{questlink|other|Forged Anew}}</pre>

Revision as of 00:26, 27 April 2021

Description

Use this for inline links to quests in text.

{{questlink|type|name}}

Parameters

type
Parameter 1. Mandatory. Type of quest. Valid values include:
  • mainscenario: Main Scenario QuestMain scenario quests
  • main: Main Scenario QuestAlias of mainscenario
  • side: Side QuestSide quests
  • daily: Daily QuestDaily quests, mainly used for beast tribes
  • repeatable: Repeatable QuestRepeatable quests, not necessarily daily, but uses the same icon. Tooltip is different.
  • feature: Feature QuestFeature quests
  • repeatablefeature: Repeatable Feature QuestRepeatable feature quests, mainly used for quests related to relic weapons.
  • repfeature: Repeatable Feature QuestAlias of repeatablefeature
  • levequest: LevequestLevequests
  • fate: FATEFATEs, Full Active Time Events (Generic)
  • fate-enemies: FATE: Slay EnemiesFATE: Slay multiple enemies to fill the bar and complete the FATE.
  • fate-boss: FATE: Kill BossFATE: Kill a boss to complete the FATE.
  • fate-escort: FATE: EscortFATE: Escort an NPC to a given location to complete the FATE.
  • fate-defense: FATE: DefenseFATE: Defend critical NPCs or resources from enemies to complete the FATE.
  • fate-collect: FATE: Collect ItemsFATE: Collect items and turn them in to complete the FATE.
  • gate: GATEGATEs, Gold Saucer Active Time Events
  • other: Other QuestOther quests. For quests and functions that don't fit any of the normal categories. Used for chocobo porters, Eureka quests, Bozja resistance rank increases, etc.
name
Parameter 2. Mandatory. Name of the quest.
[large]
Parameter 3. Optional. Will make the quest icon larger. If using it in a section header, set to true. (Set to large instead if using unnamed parameters by order.)

You can specify parameters by name, or you can use unnamed parameters by order to make the code shorter and more convenient, but you cannot mix and match the two. For example, {{questlink|type=main|name=It's Probably Pirates}} and {{questlink|main|It's Probably Pirates}} will both work, but {{questlink|type=main|It's Probably Pirates}} will not.

Examples

{{questlink|type=main|name=It's Probably Pirates}}
{{questlink|main|It's Probably Pirates}}

This: Main Scenario QuestIt's Probably Pirates is an example of an inline quest link using named parameters, and this: Main Scenario QuestIt's Probably Pirates uses unnamed parameters by order.

{{questlink|type=side|name=Out to Dry}}
{{questlink|side|Out to Dry}}

Side QuestOut to Dry

{{questlink|type=daily|name=A Nutty Initiation}}
{{questlink|daily|A Nutty Initiation}}

Daily QuestA Nutty Initiation

{{questlink|type=repeatable|name=Resistance is (Not) Futile}}
{{questlink|repeatable|Resistance is (Not) Futile}}

Repeatable QuestResistance is (Not) Futile

{{questlink|type=feature|name=And We Shall Call it Eureka}}
{{questlink|feature|And We Shall Call it Eureka}}

Feature QuestAnd We Shall Call it Eureka

{{questlink|type=repfeature|name=Resistance is (Not) Futile}}
{{questlink|repfeature|Resistance is (Not) Futile}}

Repeatable Feature QuestResistance is (Not) Futile

{{questlink|type=levequest|name=A Feast in the Forest}}
{{questlink|levequest|A Feast in the Forest}}

LevequestA Feast in the Forest

{{questlink|type=fate-enemies|name=Supper Time}}
{{questlink|fate-enemies|Supper Time}}

FATE: Slay EnemiesSupper Time

{{questlink|type=fate-boss|name=Behold Now Behemoth}}
{{questlink|fate-boss|Behold Now Behemoth}}

FATE: Kill BossBehold Now Behemoth

{{questlink|type=fate-escort|name=The Ceruleum Road}}
{{questlink|fate-escort|The Ceruleum Road}}

FATE: EscortThe Ceruleum Road

{{questlink|type=fate-defense|name=The End of the Sentry}}
{{questlink|fate-defense|The End of the Sentry}}

FATE: DefenseThe End of the Sentry

{{questlink|type=fate-collect|name=Treasure Island}}
{{questlink|fate-collect|Treasure Island}}

FATE: Collect ItemsTreasure Island

{{questlink|type=gate|name=Air Force One}}
{{questlink|gate|Air Force One}}

GATEAir Force One

{{questlink|type=other|name=Forged Anew}}
{{questlink|other|Forged Anew}}

Other QuestForged Anew

Example in header: Main Scenario QuestIt's Probably Pirates

{{questlink|type=main|name=It's Probably Pirates|large=true}}
{{questlink|main|It's Probably Pirates|large}}