Difference between revisions of "Template:Sellsitem"
From Istaria Lexica
Easton West (talk | contribs) (setting up a subobject in addition to the record) |
|||
Line 1: | Line 1: | ||
− | <nowiki/><includeonly>{{#if:{{{1|}}}|{{#set:OffersItem={{{1}}};{{#ifeq:{{{m|0}}}||0|{{{m|0}}}}};{{#ifeq:{{{g|0}}}||0|{{{g|0}}}}};{{#ifeq:{{{s|0}}}||0|{{{s|0}}}}};{{#ifeq:{{{c|0}}}||0|{{{c|0}}}}};{{#ifeq:{{{altmethod|}}}||none|[[{{{altmethod}}}]]}};{{#ifeq:{{{altamount|0}}}||0|{{{altamount|0}}}}}}}}}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Table Templates]]</noinclude> | + | <nowiki/><includeonly>{{#if:{{{1|}}}| |
+ | {{#set: | ||
+ | OffersItem={{{1}}}; | ||
+ | {{#ifeq:{{{m|0}}}||0|{{{m|0}}}}}; | ||
+ | {{#ifeq:{{{g|0}}}||0|{{{g|0}}}}}; | ||
+ | {{#ifeq:{{{s|0}}}||0|{{{s|0}}}}}; | ||
+ | {{#ifeq:{{{c|0}}}||0|{{{c|0}}}}}; | ||
+ | {{#ifeq:{{{altmethod|}}}||none|[[{{{altmethod}}}]]}}; | ||
+ | {{#ifeq:{{{altamount|0}}}||0|{{{altamount|0}}}}} | ||
+ | }} | ||
+ | {{#subobject: | ||
+ | | Is offered by = {{PAGENAME}} | ||
+ | | Offers = {{{1}}} | ||
+ | | Has price in mithril = {{{m|0}}} | ||
+ | | Has price in gold = {{{g|0}}} | ||
+ | | Has price in silver = {{{s|0}}} | ||
+ | | Has price in copper = {{{c|0}}} | ||
+ | | Has alternative payment = {{{altmethod|none}}} | ||
+ | | Has price in alternative payment = {{{altamount|0}}} | ||
+ | }} | ||
+ | }}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Table Templates]]</noinclude> |
Revision as of 00:28, 3 October 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Functional part of a Vendor's items sold table. Adds a sold item and it's cost to the vendor NPC. Use Template:ShowSoldItems to print out all sold items.
- Try out this template in your sandbox
- Find pages using this template
Syntax[edit]
{{Sellsitem|Item name|m=|g=|s=|c=|altamount=|altmethod=}}
Parameters[edit]
{{Sellsitem |Item name The item's name, sets up the SMW-property [[Property:SellItem]] and links to it's article page. |m = mithril cost (optional) |g = gold cost (optional) |s = silver cost (optional) |c = copper cost (optional) |altamount = alternative payment method cost (optional) |altmethod = alternative payment method (optional) }}
Examples[edit]
{{Sellsitem|Jade Golem Chip|s=160}} {{Sellsitem|Black Widow Pet|s=1|c=300}} {{Sellsitem|Epic Armor: Reklar's Sash of Fury|altamount=24|altmethod=Epic Token}}
Visit Template:Sellsitem/doc to edit this text. (How to: document correctly)