Difference between revisions of "Template:Part discount"
Jump to navigation
Jump to search
Stealthify (talk | contribs) m |
Stealthify (talk | contribs) m |
||
Line 44: | Line 44: | ||
| GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Ground Zero Performance</span> | | GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Ground Zero Performance</span> | ||
| #default = [{{{url_path}}} {{{part_name}}}]}} <span style="font-size:85%;color:green;">{{#ifeq: {{{shipped}}} | 1 | '''(price shipped)''' |}}</span> | | #default = [{{{url_path}}} {{{part_name}}}]}} <span style="font-size:85%;color:green;">{{#ifeq: {{{shipped}}} | 1 | '''(price shipped)''' |}}</span> | ||
− | |style="text-align:right;color:gray;"|${{{normal_price}}} | + | |style="text-align:right;color:gray;"|${{#expr: {{{normal_price}}} round2}} |
− | |style="text-align:right;font-weight:bold;color:green;"|${{{discount_price}}} | + | |style="text-align:right;font-weight:bold;color:green;"|${{#expr: {{{discount_price}}} round2}} |
|style="text-align:right;"|{{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}% | |style="text-align:right;"|{{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}% | ||
</includeonly> | </includeonly> |
Revision as of 10:01, November 23, 2012
Overview[edit]
This template is used to create a new part discount line, generally used in Black Friday/Cyber Monday articles
- Vender Options: 3sx, ips, pampena, maximal, ninja, gzp
- Shipped Options: 0, 1
Display[edit]
| Fidanza Aluminum Flywheel via 3SX Performance (price shipped) |style="text-align:right;color:gray;"|$459.95 |style="text-align:right;font-weight:bold;color:green;"|$309.95 |style="text-align:right;"|33%
Usage[edit]
To add a new discount row, simple add the following to your article:
{{Part discount | part_name= | normal_price= | discount_price= | url_path= | vender= | shipped= }}