Difference between revisions of "Template:Item reward"
Jump to navigation
Jump to search
m |
|||
(59 intermediate revisions by 7 users not shown) | |||
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}}}}{{#vardefine:is-hq|{{#ifeq:{{lc:{{#explode:{{{2}}}| |0}}}}|hq|true|false}}}}{{#vardefine:item-name|{{#ifeq:{{#var:is-hq}}|true|{{#sub:{{{2}}}|2}}|{{{2}}}}}}}<!-- | ||
-->{{#switch:{{{2|}}} | -->{{#switch:{{{2|}}} | ||
| Amalj'aa Relations = <!-- Reputation -->{{{1}}} [[File:{{{2}}}| | | Sylphic Relations | Sahagin Relations | Kobold Relations | Ixali Relations | Amalj'aa Relations | Vanu Relations | Vath Relations | Moogle Relations | Kojin Relations | Ananta Relations | Namazu Relations| Pixie Relations | Qitari Relations | Dwarf Relations | Arkasodara Relations | Omicron Relations | Loporrit Relations | Pelupelu Relations = <!-- Reputation -->{{{1}}} <span style="position:relative; bottom:2px;">[[File:{{{2}}}.png|{{{size|20}}}px|link={{{2}}}|{{{2}}}]]</span> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty}};{{#var:max-qty|0}};{{{2}}};Reputation;{{#if:{{{3|}}}|true|false}}}}}} | ||
| Allagan Tomestone of | | Venture | Company Seal | Storm Seals | Flame Seals | Serpent Seals | Steel Amalj'ok | Sylphic Goldleaf | Titan Cobaltpiece | Rainbowtide Psashp | Ixali Oaknot | Vanu Whitebone | Black Copper Gil | Carved Kupo Nut | Kojin Sango | Ananta Dreamstaff | Namazu Koban | Fae Fancy | Qitari Compliment | Hammered Frogment | Arkasodara Pana | Omicron Omnitoken | Loporrit Carat | Pelu Pelplume | Allagan Tomestone of Poetics | Allagan Tomestone of Causality | Allagan Tomestone of Comedy | Allagan Tomestone of Aesthetics | Allagan Tomestone of Heliometry = <!-- Currency -->{{{1}}} <div style="display:inline-block;margin-left:2px;">[[File:{{{2}}}.png|24px|{{{2}}}|link={{{2}}}]]</div> [[{{{2}}}]]{{#if:{{{no-smw|}}}||{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty}};{{#var:max-qty|0}};{{{2}}};Currency;{{#if:{{{3|}}}|true|false}}}}}} | ||
| #default = <!-- Item -->{{{1}}} {{item icon|{{{ | | #default = <!-- Item -->{{{1}}} {{item icon|{{#var:item-name}}|hq={{#ifeq:{{#var:is-hq}}|true|true}}|size={{{size|small}}}}} {{#ifeq:{{#var:is-hq}}|true|{{HQ}}}} {{#if:{{{no-smw|}}}||{{#set:Has item reward={{#var:rewardcnt}};{{#var:min-qty}};{{#var:max-qty|0}};{{#var:item-name}};Item;{{#if:{{{3|}}}|true|false}};{{#var:is-hq}}}}}} }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{Item reward|<quantity>|<item name>|<optional>}}</pre> | <pre>{{Item reward|<quantity>|<item name>|<optional>}}</pre> | ||
Line 10: | Line 10: | ||
=== Parameters === | === Parameters === | ||
; | ; quantity | ||
: 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. | ||
; | ; item name | ||
: 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. | ||
; | ; optional | ||
: Optional. Set anything to make this item optional. Defaults to no. | : Optional. Set anything to make this item optional. Defaults to no. | ||
; size | |||
: Optional. Set to medium or big to increase item icon size. Defaults to small. | |||
; no-smw | |||
: Set anything to prevent annotating data to SMW. | |||
== Examples == | == Examples == | ||
* {{Item reward|Frumenty}} is produced from <code><nowiki>{{Item reward|Frumenty}}</nowiki></code> | * {{Item reward|1|HQ Diadochos Armlets of Casting}} is produced from <code><nowiki>{{Item reward|1|HQ Diadochos Armlets of Casting}}</nowiki></code> | ||
* {{Item reward|Allagan Tomestone of | * {{Item reward|1-2|Frumenty}} is produced from <code><nowiki>{{Item reward|1-2|Frumenty}}</nowiki></code> | ||
* {{Item reward|Amalj'aa Relations}} is produced from <code><nowiki>{{Item reward|Amalj'aa Relations}}</nowiki></code> | * {{Item reward|10|Allagan Tomestone of Poetics}} is produced from <code><nowiki>{{Item reward|10|Allagan Tomestone of Poetics}}</nowiki></code> | ||
* {{Item reward|5|Amalj'aa Relations}} is produced from <code><nowiki>{{Item reward|5|Amalj'aa Relations}}</nowiki></code> | |||
* {{Item reward|5000|Company Seal}} is produced from <code><nowiki>{{Item reward|5000|Company Seal}}</nowiki></code> | |||
* {{Item reward|5000|Storm Seals}} is produced from <code><nowiki>{{Item reward|5000|Storm Seals}}</nowiki></code> | |||
* {{Item reward|5000|Flame Seals}} is produced from <code><nowiki>{{Item reward|5000|Flame Seals}}</nowiki></code> | |||
* {{Item reward|5000|Serpent Seals}} is produced from <code><nowiki>{{Item reward|5000|Serpent Seals}}</nowiki></code> | |||
== See also== | == See also== | ||
* {{tl|Quest infobox}} | |||
* {{tl|Unlock reward}} | |||
[[Category: | [[Category:Templates|Item reward]] | ||
</noinclude> | </noinclude> |
Latest revision as of 04:21, 19 November 2024
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
- quantity
- Reward quantity. The amount of such item/reputation/currency. Accepts the
<min qty>-<max qty>
format for variable quantities. - item name
- Reward name. The reward name (item, reputation or currency). Reward type will be defined through this parameter.
- optional
- Optional. Set anything to make this item optional. Defaults to no.
- size
- Optional. Set to medium or big to increase item icon size. Defaults to small.
- no-smw
- Set anything to prevent annotating data to SMW.
Examples
- 1 Diadochos Armlets of Casting is produced from
{{Item reward|1|HQ Diadochos Armlets of Casting}}
- 1-2 Frumenty is produced from
{{Item reward|1-2|Frumenty}}
- 10 Allagan Tomestone of Poetics is produced from
{{Item reward|10|Allagan Tomestone of Poetics}}
- 5 Amalj'aa Relations is produced from
{{Item reward|5|Amalj'aa Relations}}
- 5000 Company Seal is produced from
{{Item reward|5000|Company Seal}}
- 5000 Storm Seals is produced from
{{Item reward|5000|Storm Seals}}
- 5000 Flame Seals is produced from
{{Item reward|5000|Flame Seals}}
- 5000 Serpent Seals is produced from
{{Item reward|5000|Serpent Seals}}
See also
- {{Quest infobox}}
- {{Unlock reward}}