Difference between revisions of "Template:Unlock reward"
Jump to navigation
Jump to search
m (→Parameters) |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:unlockrewardcnt|{{#expr:{{#var:unlockrewardcnt|0}}+1}}}}<!-- | <includeonly>{{#if:{{{no-smw|}}}||{{#vardefine:unlockrewardcnt|{{#expr:{{#var:unlockrewardcnt|0}}+1}}}}}}<!-- | ||
-->{{#switch:{{lc:{{{1|}}}}} | -->{{#switch:{{lc:{{{1|}}}}} | ||
| 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 ({{#switch:{{#sub:{{{1}}}|1|1}} | | 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 ({{#switch:{{#sub:{{{1}}}|1|1}} | ||
Line 11: | Line 11: | ||
| 8 = Allied | | 8 = Allied | ||
}})]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Reputation}} | }})]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Reputation}} | ||
| ac = {{action icon|{{{2}}}}}{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Action}} | | ac = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Action}}}} | ||
| tt = {{action icon|{{{2}}}}}{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Trait}} | | tt = {{action icon|{{{2}}}}}{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Trait}}}} | ||
| ach = <div style="display:inline-block;margin-left:2px;">[[File:Achievement.png|24px|link=Achievement]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Achievement}} | | 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}};{{{2}}};Achievement}}}} | ||
| dg = <div style="display:inline-block;margin-left:2px;">[[File:Dungeon.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Dungeon}} | | 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}};{{{2}}};Dungeon}}}} | ||
| em = <div style="display:inline-block;margin-left:2px;">[[File:{{{2}}}.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Emote}} | | 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}};{{{2}}};Emote}}}} | ||
| ot = [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Other}} | | ot = [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Other}}}} | ||
| lc = <div style="display:inline-block;margin-left:2px;">[[File:Location.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Location}} | | 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}};{{{2}}};Location}}}} | ||
| ra = <div style="display:inline-block;margin-left:2px;">[[File:Raid.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Raid}} | | 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}};{{{2}}};Raid}}}} | ||
| tr = <div style="display:inline-block;margin-left:2px;">[[File:Trial.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has system unlock={{#var:unlockrewardcnt}};{{{2}}};Trial}} }}</includeonly><noinclude> | | 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}};{{{2}}};Trial}}}} }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{Unlock reward|<type>|<unlock name>}}</pre> | <pre>{{Unlock reward|<type>|<unlock name>}}</pre> | ||
Line 30: | Line 30: | ||
; ''unnamed parameter'' 2 | ; ''unnamed parameter'' 2 | ||
: Unlock name. The system unlock name. | : Unlock name. The system unlock name. | ||
; no-smw | |||
: Set anything to prevent annotating data to SMW. | |||
== Examples == | == Examples == |
Revision as of 13:27, 28 December 2017
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), or tr (Trial), or r<1-8> (Reputation rank up).
- unnamed parameter 2
- Unlock name. The system unlock name.
- no-smw
- Set anything to prevent annotating data to SMW.
Examples
- Sastasha"Sastasha" is not in the list (Action, Achievement, AetherCurrent, Dungeon, Emote, Location, MountSpeed, Other, Raid, Reputation, ...) of allowed values for the "Has unlock type" property. is produced from
{{Unlock reward|dg|Sastasha}}
- Omega: Deltascape"Omega: Deltascape" is not in the list (Action, Achievement, AetherCurrent, Dungeon, Emote, Location, MountSpeed, Other, Raid, Reputation, ...) of allowed values for the "Has unlock type" property. is produced from
{{{Unlock reward|ra|Omega: Deltascape}}
- Shirogane"Shirogane" is not in the list (Action, Achievement, AetherCurrent, Dungeon, Emote, Location, MountSpeed, Other, Raid, Reputation, ...) of allowed values for the "Has unlock type" property. is produced from
{{Unlock reward|lc|Shirogane}}
- Sylph Reputation Up (Recognized)"Sylph" is not in the list (Action, Achievement, AetherCurrent, Dungeon, Emote, Location, MountSpeed, Other, Raid, Reputation, ...) of allowed values for the "Has unlock type" property. is produced from
{{Unlock reward|r2|Sylph}}
- Green Eyes"Green Eyes" is not in the list (Action, Achievement, AetherCurrent, Dungeon, Emote, Location, MountSpeed, Other, Raid, Reputation, ...) of allowed values for the "Has unlock type" property. is produced from
{{Unlock reward|ach|Green Eyes}}
See also
- {{Item reward}}
- {{Quest infobox}}