Difference between revisions of "Template:Part expired"

From 3000GT/Stealth Wiki
Jump to navigation Jump to search
m
m (Protected "Template:Part expired" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(7 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
|-
 
|-
 
{{Part expired
 
{{Part expired
| part_name=Fidanza Aluminum Flywheel
+
| part_name=Brian Crower Camshafts
| normal_price=459.95
+
| normal_price=923.68
| discount_price=309.95
+
| discount_price=817.11
| url_path=/comersus_viewItemBundle.asp?idProduct=24143
+
| url_path=/brian-crower-3000gt-stealth-cams-set.html
| vender=gzp
+
| vender=ips
 
| shipped=1
 
| shipped=1
 
}}
 
}}
Line 36: Line 36:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
| {{#switch: {{{vender|}}}
+
| class="expiredRow" | {{{part_name}}} <span class="venderLabel">via {{#switch: {{{vender|}}}
 
| 3sx
 
| 3sx
| 3SX = {{{part_name}}} <span style="font-size:85%;color:gray;">via 3SX Performance</span>
+
| 3SX = 3SX Performance
 
| ips
 
| ips
| IPS = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:gray;">via IPS Motorsports</span>
+
| IPS = IPS Motorsports
 
| pampena
 
| pampena
| Pampena = [http://store.pampenamotorsports.com{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Pampena Motorsports</span>
+
| Pampena = Pampena Motorsports
 
| maximal
 
| maximal
| Maximal = [http://www.maximalperformance.com/store{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Maximal Performance</span>
+
| Maximal = Maximal Performance
 
| ninja
 
| ninja
| 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>
+
| Ninja = Ninja Performance
 
| gzp
 
| gzp
| GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span style="font-size:85%;color:gray;">via Ground Zero Performance</span>
+
| GZP = Ground Zero Performance
| #default = [{{{url_path}}} {{{part_name}}}]}} <span style="font-size:85%;color:green;">{{#ifeq: {{{shipped}}} | 1 | '''(price shipped)''' |}}</span>
+
| #default = {{{vender}}}}}</span> <span class="shippedLabel">{{#ifeq: {{{shipped}}} | 1 | '''(price shipped)''' |}}</span>
|style="text-align:right;color:gray;"|${{{normal_price}}}
+
| class="right silver" | ${{{normal_price}}}
|style="text-align:right;font-weight:bold;color:green;"|${{{discount_price}}}
+
| class="right gray" | ${{{discount_price}}}
|style="text-align:right;"|{{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}%
+
| class="right silver" | {{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}%
 
</includeonly>
 
</includeonly>

Latest revision as of 04:12, November 28, 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
Brian Crower Camshafts via IPS Motorsports (price shipped) $923.68 $817.11 12%

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=
}}