Difference between revisions of "Template:Questlink"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Added "other" quests)
(Added support for unnamed parameters by order. Currently existing links using named parameters will still work.)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{type}}}}}
<includeonly>{{#if:{{{type|}}}|
{{#switch:{{lc:{{{type}}}}}
|mainscenario = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Main Scenario Quest]]
|mainscenario = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Main Scenario Quest]]
|main = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Main Scenario Quest]]
|main = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{large}}}}}|true=35px|#default=20px}}|Main Scenario Quest]]
Line 10: Line 11:
|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]]
|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 "type"}}[[{{{name}}}]]</includeonly><noinclude>
|#default = ERROR: Invalid value for parameter 1 "type"}}[[{{{name}}}]]|
{{#switch:{{lc:{{{1}}}}}
|mainscenario = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=35px|#default=20px}}|Main Scenario Quest]]
|main = [[File:Mainscenarioquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=35px|#default=20px}}|Main Scenario Quest]]
|side = [[File:Sidequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=15px}}|Side Quest]]
|daily = [[File:Dailyquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=15px}}|Daily Quest]]
|feature = [[File:Featurequest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=20px}}|Feature Quest]]
|repeatable = [[File:Dailyquest.png|link=|{{#switch:{{lc:{{{3}}}}}|large=30px|#default=15px}}|Repeatable Quest]]
|repeatablefeature = [[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]]
|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>
== Description ==
== Description ==
Use this for inline links to quests in text.
Use this for inline links to quests in text.
Line 17: Line 30:
== Parameters ==
== Parameters ==
; type
; type
: Mandatory.  Type of quest.  Valid values include:
: Parameter 1.  Mandatory.  Type of quest.  Valid values include:
:* '''mainscenario''': [[File:Mainscenarioquest.png|link=|20px|Main Scenario Quest]]Main scenario quests
:* '''mainscenario''': [[File:Mainscenarioquest.png|link=|20px|Main Scenario Quest]]Main scenario quests
:* '''main''': [[File:Mainscenarioquest.png|link=|20px|Main Scenario Quest]]Alias of mainscenario
:* '''main''': [[File:Mainscenarioquest.png|link=|20px|Main Scenario Quest]]Alias of mainscenario
Line 29: Line 42:
:* '''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
: Mandatory.  Name of the quest.
: Parameter 2.  Mandatory.  Name of the quest.
; large
; [large]
: Optional.  Will make the quest icon larger.  Set to true if using it in a section header.
: 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, '''<nowiki>{{questlink|type=main|name=It's Probably Pirates}}</nowiki>''' and '''<nowiki>{{questlink|main|It's Probably Pirates}}</nowiki>''' will both work, but '''<nowiki>{{questlink|type=main|It's Probably Pirates}}</nowiki>''' will not.


== Examples ==
== Examples ==
<pre>{{questlink|type=main|name=It's Probably Pirates}}</pre>
<pre>{{questlink|type=main|name=It's Probably Pirates}}
This: {{questlink|type=main|name=It's Probably Pirates}} is an example of an inline quest link.
{{questlink|main|It's Probably Pirates}}</pre>
 
This: {{questlink|type=main|name=It's Probably Pirates}} is an example of an inline quest link using named parameters, and this: {{questlink|main|It's Probably Pirates}} uses unnamed parameters by order.
<pre>{{questlink|type=side|name=Out to Dry}}</pre>
<pre>{{questlink|type=side|name=Out to Dry}}
{{questlink|side|Out to Dry}}</pre>
{{questlink|type=side|name=Out to Dry}}
{{questlink|type=side|name=Out to Dry}}
<pre>{{questlink|type=daily|name=A Nutty Initiation}}</pre>
<pre>{{questlink|type=daily|name=A Nutty Initiation}}
{{questlink|daily|A Nutty Initiation}}</pre>
{{questlink|type=daily|name=A Nutty Initiation}}
{{questlink|type=daily|name=A Nutty Initiation}}
<pre>{{questlink|type=repeatable|name=Resistance is (Not) Futile}}</pre>
<pre>{{questlink|type=repeatable|name=Resistance is (Not) Futile}}
{{questlink|repeatable|Resistance is (Not) Futile}}</pre>
{{questlink|type=repeatable|name=Resistance is (Not) Futile}}
{{questlink|type=repeatable|name=Resistance is (Not) Futile}}
<pre>{{questlink|type=feature|name=And We Shall Call it Eureka}}</pre>
<pre>{{questlink|type=feature|name=And We Shall Call it Eureka}}
{{questlink|feature|And We Shall Call it Eureka}}</pre>
{{questlink|type=feature|name=And We Shall Call it Eureka}}
{{questlink|type=feature|name=And We Shall Call it Eureka}}
<pre>{{questlink|type=repfeature|name=Resistance is (Not) Futile}}</pre>
<pre>{{questlink|type=repfeature|name=Resistance is (Not) Futile}}
{{questlink|repfeature|Resistance is (Not) Futile}}</pre>
{{questlink|type=repfeature|name=Resistance is (Not) Futile}}
{{questlink|type=repfeature|name=Resistance is (Not) Futile}}
<pre>{{questlink|type=levequest|name=A Feast in the Forest}}</pre>
<pre>{{questlink|type=levequest|name=A Feast in the Forest}}
{{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=other|name=Forged Anew}}</pre>
<pre>{{questlink|type=other|name=Forged Anew}}
{{questlink|other|Forged Anew}}</pre>
{{questlink|type=other|name=Forged Anew}}
{{questlink|type=other|name=Forged Anew}}


==Example in header: {{questlink|type=main|name=It's Probably Pirates|large=true}}==
==Example in header: {{questlink|type=main|name=It's Probably Pirates|large=true}}==
<pre>{{questlink|type=main|name=It's Probably Pirates|large=true}}</pre>
<pre>{{questlink|type=main|name=It's Probably Pirates|large=true}}
{{questlink|main|It's Probably Pirates|large}}</pre>
</noinclude>
</noinclude>

Revision as of 22:47, 26 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
  • 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=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}}