Difference between revisions of "Template:Item reward"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:rewardcnt|{{#expr:{{#var:rewardcnt|0}}+1}}}}<!-- | <includeonly>{{#vardefine:rewardcnt|{{#expr:{{#var:rewardcnt|0}}+1}}}}<!-- | ||
-->{{#switch:{{{2|}}} | -->{{#vardefine:reward-type|{{#switch:{{{2|}}} | ||
| Amalj'aa Relations = | | Amalj'aa Relations = Reputation | ||
| Allagan Tomestone of Mythology | Allagan Tomestone of Poetics = Currency | |||
| #default = Item | |||
}}}}{{#switch:{{#var:reward-type}} | |||
| Currency | |||
| Reputation = {{{1}}} <div style="display:inline-block;margin-left:2px;">[[File:{{{2}}}.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#set:Has item reward={{#var:rewardcnt}};{{{1}}};{{{2}}};{{#var:reward-type}};{{#if:{{{3|}}}|true|false}}}} | |||
| Dungeon | |||
| Other | |||
| Raid | |||
| Trial = [[File:{{#var:reward-type}}.png|24px|{{{2}}}|link={{{2}}}]] [[{{{2}}}]]{{#set:Has item reward={{#var:rewardcnt}};{{{1}}};{{{2}}};{{#var:reward-type}};{{#if:{{{3|}}}|true|false}}}} | |||
| Action = {{action icon|{{{2}}}}}{{#set:Has item reward={{#var:rewardcnt}};{{{1}}};{{{2}}};Action;{{#if:{{{3|}}}|true|false}}}} | |||
| Item = {{{1}}} {{item icon|{{{2}}}}}{{#set:Has item reward={{#var:rewardcnt}};{{{1}}};{{{2}}};Item;{{#if:{{{3|}}}|true|false}}}} | |||
}}</includeonly><noinclude> | |||
== Description == | == Description == | ||
<pre>{{Item reward|<quantity>|<item name>|<optional>}}</pre> | <pre>{{Item reward|<quantity>|<item name>|<optional>}}</pre> |
Revision as of 20:17, 31 July 2017
Description
{{Item reward|<quantity>|<item name>|<optional>}}
Used by {{Quest infobox}} to define a single quest's reward, be it reputation, currency or an item.
Parameters
- unnamed parameter 1
- Reward quantity. The amount of such item/reputation/currency.
- unnamed parameter 2
- Reward name. The reward name (item, reputation or currency). Reward type will be defined through this parameter.
- unnamed parameter 3
- Optional. Set anything to make this item optional. Defaults to no.
Examples
- 1 Frumenty is produced from
{{Item reward|1|Frumenty}}
- 10 Allagan Tomestone of Mythology is produced from
{{Item reward|10|Allagan Tomestone of Mythology}}
- 5 Amalj'aa Relations is produced from
{{Item reward|5|Amalj'aa Relations}}