Difference between revisions of "Template:Item reward"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(62 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 -->{{#vardefineecho:smw_reward_qty|{{#explode:{{{2}}}| |0}}}} [[File:{{#vardefineecho:smw_reward_name|{{#sub:{{{2}}}|{{#pos:{{{2}}}| }}}}}}]] {{{2}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:smw_reward_qty}};{{#var:smw_reward_name}};Reputation;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}}}}}}
   | Allagan Tomestone of Mythology | Allagan Tomestone of Poetics = <!-- Currency -->{{#vardefineecho:smw_reward_qty|{{#explode:{{{2}}}| |0}}}} [[File:{{#vardefineecho:smw_reward_name|{{#sub:{{{2}}}|{{#pos:{{{2}}}| }}}}}}]] {{{2}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:smw_reward_qty}};{{#var:smw_reward_name}};Currency;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 | 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 -->{{#vardefineecho:smw_reward_qty|{{#explode:{{{2}}}| |0}}}} {{item icon|{{#vardefineecho:smw_reward_name|{{#sub:{{{2}}}|{{#pos:{{{2}}}| }}}}}}}}{{#set:Has item reward={{#var:rewardcnt}};{{#var:smw_reward_qty}};{{#var:smw_reward_name}};Item;false}} }}</includeonly><noinclude>
   | #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>}}</pre>
<pre>{{Item reward|<quantity>|<item name>|<optional>}}</pre>


Used by {{tl|Quest infobox}} to define a single quest's reward, be it reputation, currency or an item.
Used by {{tl|Quest infobox}} to define a single quest's reward, be it reputation, currency or an item.


=== Parameters ===
=== Parameters ===
; ''unnamed parameter'' 1
; 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.
; ''unnamed parameter'' 2
; 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.
; 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 ==
* {{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|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==
[[Template:Quest infobox]]
* {{tl|Quest infobox}}
* {{tl|Unlock reward}}


[[Category:Data templates|Item reward]]
[[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

See also