Difference between revisions of "Template:Unlock reward"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Undo revision 705869 by Dr Agon (talk))
Tag: Undo
 
(27 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{no-smw|}}}||{{#vardefine:unlockrewardcnt|{{#expr:{{#var:unlockrewardcnt|0}}+1}}}}}}<!--
<includeonly>{{#if:{{{no-smw|}}}||{{#vardefine:unlockrewardcnt|{{#expr:{{#var:unlockrewardcnt|0}}+1}}}}}}<!--
-->{{#switch:{{lc:{{{1|}}}}}
-->{{#switch:{{lc:{{{1|}}}}}
   | r | r1 | r2 | r3 | r4 | r5 | r6 | r7 | r8 = <div style="display:inline-block;margin-left:2px;">[[File:Golden R.png|24px|Reputation up|link={{{2}}}]]</div> [[{{{2}}}|{{ucfirst:{{{2}}}}} Reputation Up{{#ifeq:{{#len:{{{1|}}}}}|2|&nbsp;({{#vardefineecho:rep-level|{{#switch:{{#sub:{{{1}}}|1|1}}
   | r | r1 | r2 | r3 | r4 | r5 | r6 | r7 | r8 | r9 = <div style="display:inline-block;margin-left:2px;">[[File:Golden R.png|24px|Reputation up|link={{{2}}}]]</div> [[{{{2}}}|{{ucfirst:{{{2}}}}} Reputation Up{{#ifeq:{{#len:{{{1|}}}}}|2|&nbsp;({{#vardefineecho:rep-level|{{#switch:{{#sub:{{{1}}}|1|1}}
                                                                                 | 1 = Neutral
                                                                                 | 1 = Neutral
                                                                                 | 2 = Recognized
                                                                                 | 2 = Recognized
Line 9: Line 9:
                                                                                 | 6 = Honored
                                                                                 | 6 = Honored
                                                                                 | 7 = Sworn
                                                                                 | 7 = Sworn
                                                                                 | 8 = Allied
                                                                                 | 8 = Bloodsworn
                                                                                | 9 = Allied
                                                                                 }}}})}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Reputation {{#var:rep-level}};{{{2}}}}}}}
                                                                                 }}}})}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Reputation {{#var:rep-level}};{{{2}}}}}}}
   | ac = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Action;{{{2}}}}}}}
   | ac = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Action;{{{2}}}}}}}
   | tt = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Trait;{{{2}}}}}}}
   | tt = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Trait;{{{2}}}}}}}
   | ach = <div style="display:inline-block;margin-left:2px;">[[File:Achievement.png|24px|link=Achievement]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Achievement;{{{2}}}}}}}
   | ach = {{item icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Achievement;{{{2}}}}}}}
   | dg = <div style="display:inline-block;margin-left:2px;">[[File:Dungeon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Dungeon;{{{2}}}}}}}
   | dg = <div style="display:inline-block;margin-left:2px;">[[File:Dungeon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Dungeon;{{{2}}}}}}}
   | em = <div style="display:inline-block;margin-left:2px;">[[File:{{{2}}}.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Emote;{{{2}}}}}}}
   | dd = <div style="display:inline-block;margin-left:2px;">[[File:Deep_Dungeon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};DeepDungeon;{{{2}}}}}}}
  | vc = <div style="display:inline-block;margin-left:2px;">[[File:Variant_Dungeon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};VariantDungeon;{{{2}}}}}}}
  | sss = <div style="display:inline-block;margin-left:2px;">[[File:Stone Sky Sea icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};StoneSkySea;{{{2}}}}}}}
  | gh = <div style="display:inline-block;margin-left:2px;">[[File:Guildhesticon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Guildhest;{{{2}}}}}}}
  | em = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Emote;{{{2}}}}}}}
   | ot = [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Other;{{{2}}}}}}}
   | ot = [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Other;{{{2}}}}}}}
   | lc = <div style="display:inline-block;margin-left:2px;">[[File:Location.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Location;{{{2}}}}}}}
   | lc = <div style="display:inline-block;margin-left:2px;">[[File:Map icon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Location;{{{2}}}}}}}
  | aet = <div style="display:inline-block;margin-left:2px;">[[File:Location.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Aetheryte;{{{2}}}}}}}
   | ra = <div style="display:inline-block;margin-left:2px;">[[File:Raid.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Raid;{{{2}}}}}}}
   | ra = <div style="display:inline-block;margin-left:2px;">[[File:Raid.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Raid;{{{2}}}}}}}
  | ul = {{#ifeq:{{{2}}}|(UltimateRaid, The Epic of Alexander (Ultimate)|<div style="display:inline-block;margin-left:2px;">[[File:Ultimate Raid.png|24px|The Epic of Alexander (Ultimate)|link=The Epic of Alexander (Ultimate)]]</div> [[The Epic of Alexander (Ultimate)]]|<div style="display:inline-block;margin-left:2px;">[[File:Ultimate Raid.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};UltimateRaid;{{{2}}}}}}}
   | cur = <div style="display:inline-block;margin-left:2px;">[[File:Aether_current_icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};AetherCurrent;{{{2}}}}}}}
   | cur = <div style="display:inline-block;margin-left:2px;">[[File:Aether_current_icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};AetherCurrent;{{{2}}}}}}}
   | ms = <div style="display:inline-block;margin-left:2px;">[[File:Marbledeye.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};MountSpeed;{{{2}}}}}}}
   | ms = <div style="display:inline-block;margin-left:2px;">[[File:Mount_speed_increase_icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};MountSpeed;{{{2}}}}}}}
   | tr = <div style="display:inline-block;margin-left:2px;">[[File:Trial.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Trial;{{{2}}}}}}} }}</includeonly><noinclude>
  | pvp = <div style="display:inline-block;margin-left:2px;">[[File:PvP icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};PvPmode;{{{2}}}}}}}
   | tr = <div style="display:inline-block;margin-left:2px;">[[File:Trial.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Trial;{{{2}}}}}}}
  | ap = <div style="display:inline-block;margin-left:2px;">[[File:Vanu vanu framers kit icon1.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};AdventurerPlate;{{{2}}}}}}}
  | ngp = <div style="display:inline-block;margin-left:2px;">[[File:New game plus icon2.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};NewGamePlus;{{{2}}}}}}} }}</includeonly><noinclude>
== Description ==
== Description ==
<pre>{{Unlock reward|<type>|<unlock name>}}</pre>
<pre>{{Unlock reward|<type>|<unlock name>}}</pre>
Line 29: Line 39:
=== Parameters ===
=== Parameters ===
; ''unnamed parameter'' 1
; ''unnamed parameter'' 1
: Unlock type. Expects ''ac (Action)'', ''tt (Trait)'', ''dg (Dungeon)'', ''em (Emote)'', ''lc'' (Location), ''ot (Other)'', ''ra (Raid)'', or ''tr (Trial)'', or ''cur (Aether Current)'', or ''r<1-8> (Reputation rank up)''.
: Unlock type. Expects ''ac (Action)'', ''tt (Trait)'', ''dg (Dungeon)'', ''em (Emote)'', ''lc'' (Location), ''ot (Other)'', ''ra (Raid)'', ''ul (Ultimate Raid)'', or ''tr (Trial)'', ''pvp (PvP mode)'',''cur (Aether Current)'', ''ms (Mount Speed)'', ''r<1-9> (Reputation rank up)'', or ''ngp (New Game +)''.
; ''unnamed parameter'' 2
; ''unnamed parameter'' 2
: Unlock name. The system unlock name.
: Unlock name. The system unlock name.
Line 39: Line 49:
* {{Unlock reward|ra|Omega: Deltascape}} is produced from <code><nowiki>{{{Unlock reward|ra|Omega: Deltascape}}</nowiki></code>
* {{Unlock reward|ra|Omega: Deltascape}} is produced from <code><nowiki>{{{Unlock reward|ra|Omega: Deltascape}}</nowiki></code>
* {{Unlock reward|lc|Shirogane}} is produced from <code><nowiki>{{Unlock reward|lc|Shirogane}}</nowiki></code>
* {{Unlock reward|lc|Shirogane}} is produced from <code><nowiki>{{Unlock reward|lc|Shirogane}}</nowiki></code>
* {{Unlock reward|r2|Sylph}} is produced from <code><nowiki>{{Unlock reward|r2|Sylph}}</nowiki></code>
* {{Unlock reward|r8|Sylph}} is produced from <code><nowiki>{{Unlock reward|r8|Sylph}}</nowiki></code>
* {{Unlock reward|r|Kobold}} is produced from <code><nowiki>{{Unlock reward|r|Kobold}}</nowiki></code>
* {{Unlock reward|r|Kobold}} is produced from <code><nowiki>{{Unlock reward|r|Kobold}}</nowiki></code>
* {{Unlock reward|ach|Green Eyes}} is produced from <code><nowiki>{{Unlock reward|ach|Green Eyes}}</nowiki></code>
* {{Unlock reward|ach|Green Eyes}} is produced from <code><nowiki>{{Unlock reward|ach|Green Eyes}}</nowiki></code>
* {{Unlock reward|em|Haurchefant (Emote)}} is produced from <code><nowiki>{{Unlock reward|em|Haurchefant (Emote)}}</nowiki></code>
* {{Unlock reward|ac|Ruin}} is produced from <code><nowiki>{{Unlock reward|ac|Ruin}}</nowiki></code>
* {{Unlock reward|ac|Ruin}} is produced from <code><nowiki>{{Unlock reward|ac|Ruin}}</nowiki></code>
* {{Unlock reward|cur|Aether Current}} is produced from <code><nowiki>{{Unlock reward|cur|Aether Current}}</nowiki></code>
* {{Unlock reward|cur|Aether Current}} is produced from <code><nowiki>{{Unlock reward|cur|Aether Current}}</nowiki></code>
* {{Unlock reward|ms|Mount Speed Increase}} is produced from <code><nowiki>{{Unlock reward|ms|Mount Speed Increase}}</nowiki></code>
* {{Unlock reward|ms|Mount Speed Increase}} is produced from <code><nowiki>{{Unlock reward|ms|Mount Speed Increase}}</nowiki></code>
* {{Unlock reward|pvp|Frontline}} is produced from <code><nowiki>{{Unlock reward|pvp|Frontline}}</nowiki></code>
* {{Unlock reward|ngp|A Realm Reborn - Part 2}} is produced from <code><nowiki>{{Unlock reward|ngp|A Realm Reborn - Part 2}}</nowiki></code>
* {{Unlock reward|dd|Palace of the Dead}} is produced from <code><nowiki>{{Unlock reward|dd|Palace of the Dead}}</nowiki></code>
* {{Unlock reward|gh|Guildhests}} is produced from <code><nowiki>{{Unlock reward|gh|Guildhests}}</nowiki></code>


== See also==
== See also==
Line 50: Line 65:
* {{tl|Quest infobox}}
* {{tl|Quest infobox}}


[[Category:Data templates|Unlock reward]]
[[Category:Templates|Unlock reward]]
</noinclude>
</noinclude>

Latest revision as of 04:30, 22 January 2024

Description

{{Unlock reward|<type>|<unlock name>}}

Used by {{Quest infobox}} to define a single quest's unlock reward, be it action, dungeon, raid, trial, etc.

Parameters

unnamed parameter 1
Unlock type. Expects ac (Action), tt (Trait), dg (Dungeon), em (Emote), lc (Location), ot (Other), ra (Raid), ul (Ultimate Raid), or tr (Trial), pvp (PvP mode),cur (Aether Current), ms (Mount Speed), r<1-9> (Reputation rank up), or ngp (New Game +).
unnamed parameter 2
Unlock name. The system unlock name.
no-smw
Set anything to prevent annotating data to SMW.

Examples

See also