Template:Purchase: Difference between revisions

From Wiki³
mNo edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{name|}}} | {{#if: {{{icon|}}} |<span style="display:block;padding-left:10px;text-indent:-10px">{{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:inline-block;padding-left:16px;text-indent:-16px">{{icon|{{{icon}}}}}|* <span>}} {{{name}}}{{#if: {{{model|}}} | &nbsp; &nbsp;{{icon|barcode-2d}} {{#if: {{{url|}}} | [{{{url}}} {{{model}}}] | {{{model}}}}}<br/>{{#if: {{{name2|}}} | {{{name2}}}<br/>|}}|{{#if: {{{url|}}} | &nbsp; &nbsp;[{{{url}}} {{icon|globe}} Manufacturer]<br/>|}}}}{{#if: {{{date|}}} | {{icon|money-bag-dollar}} {{{price}}} &nbsp;&nbsp; {{#if: {{{purl|}}} | [{{{purl}}} {{{shop}}}] | {{{shop}}}}} <span style="color:#cc0000">(Purchased: {{{date}}})</span> | {{icon|money-bag-dollar}} {{{price}}} &nbsp;—&nbsp; {{#if: {{{purl|}}} | [{{{purl}}} {{{shop}}}] | {{{shop}}}}}}}{{#if: {{{quantity|}}} | &nbsp;&nbsp; {{blackBold|&#124;}} &nbsp; {{icon|sort-quantity}} {{{quantity}}}|}}</span>|}}<noinclude>{{documentation}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 14:34, 17 January 2021

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   Icon ZXY321
    Icon 9.99  —  Shop Name (Purchased: 2014/01/01)   |   Icon 2