Template:Purchase: Difference between revisions
From Wiki³
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#if: {{{name|}}} | {{#if: {{{icon|}}} |<span style="display:inline-block;padding-left:16px;text-indent:-16px">{{icon|{{{icon}}}}}|* <span>}} {{{name}}}<br/>{{#if: {{{model|}}} | {{icon|barcode-2d}} {{{model}}}{{#if: {{{url|}}} | [{{{url}}} {{icon|globe}} | {{#if: {{{name|}}} | {{#if: {{{icon|}}} |<span style="display:inline-block;padding-left:16px;text-indent:-16px">{{icon|{{{icon}}}}}|* <span>}} {{{name}}}<br/>{{#if: {{{model|}}} | {{icon|barcode-2d}} {{{model}}}{{#if: {{{url|}}} | [{{{url}}} {{icon|globe}} Product] |}}<br/>|{{#if: {{{url|}}} | [{{{url}}} {{icon|globe}} Product]<br/>|}}}}{{#if: {{{date|}}} | {{icon|money-bag-dollar}} {{{price}}} — {{#if: {{{purl|}}} | [{{{purl}}} {{{shop}}}] | {{{shop}}}}} <span style="color:#cc0000">(Purchased: {{{date}}})</span> | {{icon|money-bag-dollar}} {{{price}}} — {{#if: {{{purl|}}} | [{{{purl}}} {{{shop}}}] | {{{shop}}}}}}}{{#if: {{{quantity|}}} | {{blackBold||}} {{icon|sort-quantity}} {{{quantity}}}|}}</span>|}}<noinclude>{{documentation}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 01:20, 21 November 2020
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
Product
9.99 — Shop Name