Difference between revisions of "Template:Part expired"

From 3000GT/Stealth Wiki
Jump to navigation Jump to search
m
m
Line 8: Line 8:
  
 
==Display==
 
==Display==
{| class="dealtable" style="border:1px solid red;"
+
{| class="dealtable"
 
! style="text-align:left;" | Product Name
 
! style="text-align:left;" | Product Name
 
! Normal Price
 
! Normal Price
Line 38: Line 38:
 
| {{#switch: {{{vender|}}}
 
| {{#switch: {{{vender|}}}
 
| 3sx
 
| 3sx
| 3SX = <span style="color:gray;">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via 3SX Performance</span>
+
| 3SX = [http://www.3sx.com/store{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via 3SX Performance</span>
 
| ips
 
| ips
| IPS = <span style="color:gray;">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via IPS Motorsports</span>
+
| IPS = [http://store.ipsmotorsports.net{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via IPS Motorsports</span>
 
| pampena
 
| pampena
| Pampena = <span style="color:gray;">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via Pampena Motorsports</span>
+
| Pampena = [http://store.pampenamotorsports.com{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Pampena Motorsports</span>
 
| maximal
 
| maximal
| Maximal = <span style="color:gray;">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via Maximal Performance</span>
+
| Maximal = [http://www.maximalperformance.com/store{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Maximal Performance</span>
 
| ninja
 
| ninja
| Ninja = <span style="color:gray;">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via Ninja Performance</span>
+
| Ninja = [http://www.ninjaperformance.com/product_info.php?products_id={{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Ninja Performance</span>
 
| gzp
 
| gzp
| GZP = <span style="color:gray;">{{{part_name}}}</span> <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 = <span style="color:gray;">{{{part_name}}}</span> <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;"|${{{normal_price}}}
|style="text-align:right;font-weight:bold;color:gray;"|${{{discount_price}}}
+
|style="text-align:right;font-weight:bold;color:green;"|${{{discount_price}}}
 
|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 21:13, November 23, 2012

Overview[edit]

This template is used to create a new part discount line (in the expired format), generally used in Black Friday/Cyber Monday articles

Vender Options: 3sx, ips, pampena, maximal, ninja, gzp
Shipped Options: 0, 1

Display[edit]

Product Name Normal Price Discounted Price % Saved
Fidanza Aluminum Flywheel via Ground Zero Performance (price shipped) $459.95 $309.95 33%

Usage[edit]

To add a new expired discount row, simple add the following to your article:

{{Part expired
| part_name=
| normal_price=
| discount_price=
| url_path=
| vender=
| shipped=
}}