Difference between revisions of "Template:Part discount"
Jump to navigation
Jump to search
Stealthify (talk | contribs) m |
Stealthify (talk | contribs) m (Updated Pampena's template) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
This template is used to create a new part discount line, generally used in Black Friday/Cyber Monday articles | 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 | + | :'''Vender Options''': 3sx, ips, pampena, maximal, ninja, gzp, 3sw, supercar |
:'''Shipped Options''': 0, 1 | :'''Shipped Options''': 0, 1 | ||
Line 36: | Line 36: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | | {{#switch: {{{vender|}}} | + | | class="discountRow" | {{#switch: {{{vender|}}} |
| 3sx | | 3sx | ||
− | | 3SX = [http://www.3sx.com/store{{{url_path}}} {{{part_name}}}] <span | + | | 3SX = [http://www.3sx.com/store{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via 3SX Performance</span> |
+ | | 3sw | ||
+ | | 3SW = [http://www.3sw.co/index.php?p={{{url_path}}} {{{part_name}}}] <span class="venderLabel">via 3S Warehouse/GZP</span> | ||
| ips | | ips | ||
− | | IPS = [http://store.ipsmotorsports.net{{{url_path}}} {{{part_name}}}] <span | + | | IPS = [http://store.ipsmotorsports.net/catalog/product/view/id/{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via IPS Motorsports</span> |
| pampena | | pampena | ||
− | | Pampena = [http://store.pampenamotorsports.com{{{url_path}}} {{{part_name}}}] <span | + | | Pampena = [http://store.pampenamotorsports.com/catalog/product/view/id/{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Pampena Motorsports</span> |
| maximal | | maximal | ||
− | | Maximal = [http://www.maximalperformance.com/store{{{url_path}}} {{{part_name}}}] <span | + | | Maximal = [http://www.maximalperformance.com/store{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Maximal Performance</span> |
| ninja | | ninja | ||
− | | Ninja = [http://www.ninjaperformance.com/product_info.php?products_id={{{url_path}}} {{{part_name}}}] <span | + | | Ninja = [http://www.ninjaperformance.com/product_info.php?products_id={{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Ninja Performance</span> |
| gzp | | gzp | ||
− | | GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span | + | | GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Ground Zero Performance</span> |
− | | #default = [{{{url_path}}} {{{part_name}}}]}} <span | + | | supercar |
− | | | + | | Supercar = [http://www.supercar-engineering.com/sc2/product_info.php?products_id={{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Supercar Engineering</span> |
− | | | + | | #default = [{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via {{{vender}}}</span>}} <span class="shippedLabel">{{#ifeq: {{{shipped}}} | 1 | '''(price shipped)''' |}}</span> |
− | | | + | | class="right gray" | ${{{normal_price}}} |
+ | | class="right discountLabel" | ${{{discount_price}}} | ||
+ | | class="right" | {{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}% | ||
</includeonly> | </includeonly> |
Latest revision as of 03:59, November 30, 2013
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, 3sw, supercar
- Shipped Options: 0, 1
Display[edit]
Product Name | Normal Price | Discounted Price | % Saved |
---|---|---|---|
Fidanza Aluminum Flywheel via 3SX Performance (price shipped) | $459.95 | $309.95 | 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= }}