Template:Purchase: Difference between revisions

From Wiki³
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#if: {{{name|}}} | {{#if: {{{icon|}}} |<span style="display:block;margin-left:15px">{{icon|{{{icon}}}}}|* <span>}} {{{name}}}{{#if: {{{quantity|}}} |<span style="border:dashed 1px #969696;background-color:#dedede;padding:1px 5px;margin-left:20px;color:#666">{{icon|sort-quantity}} {{{quantity}}}</span>|}}<br/>{{#if: {{{date|}}} | {{icon|currency}}<del>[{{{url}}} {{{price}}}] &nbsp;&#151;&nbsp; {{{shop}}}</del> <span style="color:#cc0000">(Purchased: {{{date}}})</span> | {{icon|currency}}[{{{url}}} {{{price}}}] &nbsp;&#151;&nbsp; {{{shop}}}}}</span>|}}<noinclude>{{documentation}}
{{#if: {{{name|}}} | {{#if: {{{icon|}}} |<span style="display:block;margin-left:2px">{{icon|{{{icon}}}}}|* <span>}} {{{name}}}{{#if: {{{quantity|}}} |<span style="border:dashed 1px #969696;background-color:#dedede;padding:1px 5px;margin-left:20px;color:#666">{{icon|sort-quantity}} {{{quantity}}}</span>|}}<br/>{{#if: {{{date|}}} | {{icon|currency}}<del>[{{{url}}} {{{price}}}] &nbsp;&#151;&nbsp; {{{shop}}}</del> <span style="color:#cc0000">(Purchased: {{{date}}})</span> | {{icon|currency}}[{{{url}}} {{{price}}}] &nbsp;&#151;&nbsp; {{{shop}}}}}</span>|}}<noinclude>{{documentation}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 13:56, 12 August 2014

Usage

{{purchase| name=Item name| quantity=2|* model=ABC123|* shop=Shop Name| url=http://company.com/itemname| purl=http://store.com/itemsku|* price=9.99| date=2014/01/01|* }}

  * Optional field

Preview

  • Item name
    Icon9.99  &#151;  Shop Name
  • Item nameIcon 2
    Icon9.99  &#151;  Shop Name (Purchased: 2014/01/01)