Difference between revisions of "Template:Item reward"
Jump to navigation
Jump to search
Freedom4556 (talk | contribs) |
|||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:rewardcnt|{{#expr:{{#var:rewardcnt|0}}+1}}}}{{#vardefine:min-qty|{{#explode:{{{1|}}}|-|0}}}}{{#vardefine:max-qty|{{#explode:{{{1|}}}|-|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|}}} | ||
| 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 = <!-- 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}}}}}} | | 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}}}}}} | ||
| 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 | Allagan Tomestone of Poetics | 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 16: | Line 16: | ||
; optional | ; 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 | ; no-smw | ||
: Set anything to prevent annotating data to SMW. | : Set anything to prevent annotating data to SMW. | ||
== Examples == | == Examples == | ||
* {{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|1-2|Frumenty}} is produced from <code><nowiki>{{Item reward|1-2|Frumenty}}</nowiki></code> | * {{Item reward|1-2|Frumenty}} is produced from <code><nowiki>{{Item reward|1-2|Frumenty}}</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|10|Allagan Tomestone of Poetics}} is produced from <code><nowiki>{{Item reward|10|Allagan Tomestone of Poetics}}</nowiki></code> |
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}}