Difference between revisions of "Template:Sells"

m (Cleaned up template. Item trades are under the Trades template.)
(33 intermediate revisions by 5 users not shown)
Line 5: Line 5:
 
| namespace    =  
 
| namespace    =  
 
|  allowcachedresults=true
 
|  allowcachedresults=true
|  dplcache={{{1|x}}}sells2a
+
|  dplcache={{{1|x}}}sells-4
 
| format      =,,\n
 
| format      =,,\n
 
| suppresserrors=true
 
| suppresserrors=true
 
}}|style="width: 5%;" {{!}} {{!}}{{!}} [[{{{1}}}]]{{!}}{{!}} {{!}}{{!}} {{!}}{{!}} }}
 
}}|style="width: 5%;" {{!}} {{!}}{{!}} [[{{{1}}}]]{{!}}{{!}} {{!}}{{!}} {{!}}{{!}} }}
{{!}}&nbsp;{{#if:{{{Quantity|}}}|<small>x</small>&nbsp;{{{Quantity|}}}}}
+
{{!}}&nbsp;<small>x</small>&nbsp;{{{Quantity|1}}}{{#if:{{{HQItem|}}}|{{HQ|2}}}}
{{!}}{{#switch:{{lc:{{{Currency}}}}}
+
{{!}}{{Currencysellsswitch|1={{{1}}}|Currency={{{Currency}}}}}&nbsp;<small>x</small>&nbsp;{{formatnum:{{{2|}}}}}{{#if:{{{Requirement|}}}|[[File:Red-exclamation2.png|This item will not appear for sale until after the following requirements are met: {{{Requirement|}}}.|24px|link={{#ifexist: {{{Requirement}}} | {{{Requirement|}}} |}}]]}}[[Category:{{Fixand|{{{1}}}}} Sold by Merchant]][[Category:Merchant]]</includeonly><noinclude>__NOTOC__
|flame|flame seal= [[File:Flame Seal Icon.png|20px|link=Flame Seal]][[Category:Accepts Flame Seal]]
 
|storm|storm seal= [[File:Storm Seal Icon.png|20px|link=Storm Seal]][[Category:Accepts Storm Seal]]
 
|serpent|serpent seal= [[File:Serpent Seal Icon.png|20px|link=Serpent Seal]][[Category:Accepts Serpent Seal]]
 
|allied|allied seal= [[File:Allied Seal Icon.png|20px|link=Allied Seal]][[Category:Accepts Allied Seal]]
 
|wolf|wolf mark|pvp|wolfmark= [[File:Wolf Mark Icon.png|20px|link=Wolf Mark]][[Category:Accepts Wolf Mark]]
 
|allagan tomestone of poetics|poetics=[[File:Allagan_Tomestone_of_Poetics_Icon.png|20px|link=Allagan Tomestone of Poetics]][[Category:Accepts Allagan Tomestone of Poetics]]
 
|allagan tomestone of soldiery|soldiery=[[File:Allagan_Tomestone_of_Soldiery_Icon.png|20px|link=Allagan Tomestone of Soldiery]][[Category:Accepts Allagan Tomestone of Soldiery]]
 
|allagan tomestone of mythology|mythology= [[File:Allagan_Tomestone_of_Mythology_Icon.png|20px|link=Allagan Tomestone of Mythology]][[Category:Accepts Allagan Tomestone of Mythology]]
 
|allagan tomestone of philosophy|philosophy= [[File:Allagan_Tomestone_of_Philosophy_Icon.png|20px|link=Allagan Tomestone of Philosophy]][[Category:Accepts Allagan Tomestone of Philosophy]]
 
|gil|#default = [[File:Gil Icon.png|20px|link=Gil]][[Category:Accepts Gil]]}}&nbsp;<small>x</small>&nbsp;{{formatnum:{{{2|}}}}}[[Category:{{Fixand|{{{1}}}}} Sold by Merchant]][[Category:Merchant]]</includeonly><noinclude>
 
 
===Usage===
 
===Usage===
<nowiki>{{Sells|Item|Amount|Currency=|Quantity=}}</nowiki><br>
+
<nowiki>{{Sells|Item|Amount|Currency=|Quantity=|HQ=|HQItem=}}</nowiki><br>
* Currency can be one of the types found on the currency tab of your character info :  
+
* Currency can be one of the types found on the currency tab of your character info :
** Gil, Flame/Storm/Serpent/Allied Seal, Wolf Mark or Allagan Tomestone of Soldiery/Poetics. Default is Gil.
+
** Gil, Flame/Storm/Serpent/Allied/etc Seals, Wolf Marks or Allagan Tomestones. Default is Gil.
* Quantity is used when you buy items in sets.<br>
+
* Quantity is normally used when you receive more than 1 of the item (by default) upon purchase.<br>
 
Currency and Quantity are optional.
 
Currency and Quantity are optional.
  
 
When the item traded is not an actual currency, use the [[Template:Trades|'''<nowiki>{{Trades}}</nowiki>''']] template.
 
When the item traded is not an actual currency, use the [[Template:Trades|'''<nowiki>{{Trades}}</nowiki>''']] template.
  
 +
* If the currency required is HQ, use |HQ=x
 +
* If the item received is HQ, use |HQItem=x
 
===Examples===
 
===Examples===
 
<nowiki>{{Sells|Copper Ore|2}}</nowiki><br>
 
<nowiki>{{Sells|Copper Ore|2}}</nowiki><br>
 +
:(1 Copper Ore is sold for 2 gil)<br>
 
<nowiki>{{Sells|Venture|Quantity=5|1000|Currency=Flame Seal}}</nowiki><br>
 
<nowiki>{{Sells|Venture|Quantity=5|1000|Currency=Flame Seal}}</nowiki><br>
 +
:(5 Ventures are sold for 1,000 Flame Seals)<br>
 
<nowiki>{{Sells|Weathered Auroral Ring|Currency=Allagan Tomestone of Soldiery|375}}</nowiki><br>
 
<nowiki>{{Sells|Weathered Auroral Ring|Currency=Allagan Tomestone of Soldiery|375}}</nowiki><br>
 +
:(1 Weathered Auroral Ring is sold for 375 Allagan Tomestone of Soldiery)<br>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 16:19, 24 March 2020

Usage

{{Sells|Item|Amount|Currency=|Quantity=|HQ=|HQItem=}}

  • Currency can be one of the types found on the currency tab of your character info :
    • Gil, Flame/Storm/Serpent/Allied/etc Seals, Wolf Marks or Allagan Tomestones. Default is Gil.
  • Quantity is normally used when you receive more than 1 of the item (by default) upon purchase.

Currency and Quantity are optional.

When the item traded is not an actual currency, use the {{Trades}} template.

  • If the currency required is HQ, use |HQ=x
  • If the item received is HQ, use |HQItem=x

Examples

{{Sells|Copper Ore|2}}

(1 Copper Ore is sold for 2 gil)

{{Sells|Venture|Quantity=5|1000|Currency=Flame Seal}}

(5 Ventures are sold for 1,000 Flame Seals)

{{Sells|Weathered Auroral Ring|Currency=Allagan Tomestone of Soldiery|375}}

(1 Weathered Auroral Ring is sold for 375 Allagan Tomestone of Soldiery)