Difference between revisions of "Template:Part expired"

From 3000GT/Stealth Wiki
Jump to navigation Jump to search
m
m (Modified display)
Line 36: Line 36:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
| {{#switch: {{{vender|}}}
+
| class="expiredRow" | {{{part_name}}} <span class="venderLabel">via {{#switch: {{{vender|}}}
 
| 3sx
 
| 3sx
| 3SX = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via 3SX Performance</span>
+
| 3SX = 3SX Performance
 
| ips
 
| ips
| IPS = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via IPS Motorsports</span>
+
| IPS = IPS Motorsports
 
| pampena
 
| pampena
| Pampena = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via Pampena Motorsports</span>
+
| Pampena = Pampena Motorsports
 
| maximal
 
| maximal
| Maximal = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via Maximal Performance</span>
+
| Maximal = Maximal Performance
 
| ninja
 
| ninja
| Ninja = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via Ninja Performance</span>
+
| Ninja = Ninja Performance
 
| gzp
 
| gzp
| GZP = <span class="expiredRow">{{{part_name}}}</span> <span style="font-size:85%;color:silver;">via Ground Zero Performance</span>
+
| GZP = Ground Zero Performance
| #default = [{{{url_path}}} {{{part_name}}}]}} <span style="font-size:85%;color:silver;">{{#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 gray" | ${{{normal_price}}}
|style="text-align:right;font-weight:bold;color:silver;"|${{{discount_price}}}
+
| class="right gray" | ${{{discount_price}}}
|style="text-align:right;"|{{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}%
+
| class="right gray" | {{#expr: (1-{{{discount_price}}}/{{{normal_price}}})*100 round0}}%
 
</includeonly>
 
</includeonly>

Revision as of 03:55, 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
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=
}}