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}}}}{{#vardefine:min-qty|{{#explode:{{{1|}}}|-|0}}}}{{#vardefine:max-qty|{{#explode:{{{1|}}}|-|1}}}}<!-- | ||
-->{{#switch:{{{2|}}} | -->{{#switch:{{{2|}}} | ||
| Sylphic Relations = {{relations|sylphic|{{{ | | Sylphic Relations = {{relations|sylphic|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}};{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Sahagin Relations = {{relations|sahagin|{{{ | | Sahagin Relations = {{relations|sahagin|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Kobold Relations = {{relations|kobold|{{{ | | Kobold Relations = {{relations|kobold|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Ixali Relations = {{relations|ixali|{{{ | | Ixali Relations = {{relations|ixali|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Amalj'aa Relations = {{relations|amaljaa|{{{ | | Amalj'aa Relations = {{relations|amaljaa|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Vanu Vanu Relations | Vanu Relations = {{relations|vanu|{{{ | | Vanu Vanu Relations | Vanu Relations = {{relations|vanu|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Vath Relations = {{relations|vath|{{{ | | Vath Relations = {{relations|vath|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Moogle Relations = {{relations|Moogle|{{{ | | Moogle Relations = {{relations|Moogle|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Kojin Relations = {{relations|kojin|{{{ | | Kojin Relations = {{relations|kojin|{{#var:min-qty|}}|{{#var:max-qty|}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty|0}}|{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}} | ||
| Allagan Tomestone of Mythology | Allagan Tomestone of Poetics = <!-- Currency -->{{{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}}};Currency;{{#if:{{{3|}}}|true|false}}}} | | Allagan Tomestone of Mythology | Allagan Tomestone of Poetics = <!-- Currency -->{{{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}}};Currency;{{#if:{{{3|}}}|true|false}}}} | ||
| #default = <!-- Item -->{{{1}}} {{item icon|{{{2}}}}}{{#set:Has item reward={{#var:rewardcnt}};{{{ | | #default = <!-- Item -->{{{1}}} {{item icon|{{{2}}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty}};{{#var:max-qty|0}};{{{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> | ||
Line 19: | Line 19: | ||
=== Parameters === | === Parameters === | ||
; ''unnamed parameter'' 1 | ; ''unnamed parameter'' 1 | ||
: Reward quantity. The amount of such item/reputation/currency. | : Reward quantity. The amount of such item/reputation/currency. Accepts the <code><min qty>-<max qty></code> format for variable quantities. | ||
; ''unnamed parameter'' 2 | ; ''unnamed parameter'' 2 | ||
: Reward name. The reward name (item, reputation or currency). Reward type will be defined through this parameter. | : Reward name. The reward name (item, reputation or currency). Reward type will be defined through this parameter. |
Revision as of 13:18, 27 November 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. Accepts the
<min qty>-<max qty>
format for variable quantities. - 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 is produced from
{{Item reward|5|Amalj'aa Relations}}
See also
- {{Quest infobox}}
- {{Unlock reward}}