Difference between revisions of "Template:Unlock reward"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user 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 | 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}}
   | 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}}} Daily Quests]]</div> [[{{{2}}} Daily Quests|{{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 12: Line 12:
                                                                                 | 9 = Allied
                                                                                 | 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}}}|size=mid}}{{#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}}}|size=mid}}{{#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 = {{item icon|{{{2}}}|size=mid}}{{#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}}}}}}}
   | 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}}}}}}}
   | 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}}}}}}}
Line 20: Line 20:
   | 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}}}}}}}
   | 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}}}}}}}
   | 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}}}|size=mid}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};Emote;{{{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:Map icon.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}}}}}}}
Line 31: Line 31:
   | 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}}}}}}}
   | 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}}}}}}}
   | 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>
   | 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}}}}}}}
  | uc = <div style="display:inline-block;margin-left:2px;">{{item icon|Unending Codex|x}}</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};UnendingCodex;{{{2}}}}}}}
  | car = <div style="display:inline-block;margin-left:2px;">[[File:Chaotic Alliance Raid.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};ChaoticAllianceRaid;{{{2}}}}}}} }}</includeonly><noinclude>
== Description ==
== Description ==
<pre>{{Unlock reward|<type>|<unlock name>}}</pre>
<pre>{{Unlock reward|<type>|<unlock name>}}</pre>
Line 39: Line 41:
=== 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)'', ''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 +)''.
: 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)'', ''ngp (New Game +)'', ''uc (Unending Codex)'', or ''car (Chaotic Alliance Raid)''.
; ''unnamed parameter'' 2
; ''unnamed parameter'' 2
: Unlock name. The system unlock name.
: Unlock name. The system unlock name.
Line 60: Line 62:
* {{Unlock reward|dd|Palace of the Dead}} is produced from <code><nowiki>{{Unlock reward|dd|Palace of the Dead}}</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>
* {{Unlock reward|gh|Guildhests}} is produced from <code><nowiki>{{Unlock reward|gh|Guildhests}}</nowiki></code>
* {{Unlock reward|uc|Unending Codex: Eorzea}} is produced from <code><nowiki>{{Unlock reward|uc|Unending Codex: Eorzea}}</nowiki></code>
* {{Unlock reward|car|The Cloud of Darkness (Chaotic)}} is produced from <code><nowiki>{{Unlock reward|car|The Cloud of Darkness (Chaotic)}}</nowiki></code>


== See also==
== See also==

Latest revision as of 23:37, 7 January 2025

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), ngp (New Game +), uc (Unending Codex), or car (Chaotic Alliance Raid).
unnamed parameter 2
Unlock name. The system unlock name.
no-smw
Set anything to prevent annotating data to SMW.

Examples

See also