Difference between revisions of "Template:Part discount"

From 3000GT/Stealth Wiki
Jump to navigation Jump to search
(Created template)
 
m (Updated Pampena's template)
 
(27 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
  
 
==Display==
 
==Display==
 +
{| class="dealtable"
 +
! style="text-align:left;" | Product Name
 +
! Normal Price
 +
! Discounted Price
 +
! % Saved
 +
|-
 
{{Part discount
 
{{Part discount
 
| part_name=Fidanza Aluminum Flywheel
 
| part_name=Fidanza Aluminum Flywheel
 
| normal_price=459.95
 
| normal_price=459.95
 
| discount_price=309.95
 
| discount_price=309.95
| url_path=/store/comersus_viewItemBundle.asp?idProduct=24143
+
| url_path=/comersus_viewItemBundle.asp?idProduct=24143
 
| vender=3sx
 
| vender=3sx
 +
| shipped=1
 
}}
 
}}
 
+
|}
 
==Usage==
 
==Usage==
 
To add a new discount row, simple add the following to your article:
 
To add a new discount row, simple add the following to your article:
Line 24: Line 32:
 
| url_path=
 
| url_path=
 
| vender=
 
| vender=
 +
| shipped=
 
}}</nowiki>'''
 
}}</nowiki>'''
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div class="origin-info">This article originated from a thread or post on
+
| class="discountRow" | {{#switch: {{{vender|}}}
{{#switch: {{{forum|}}}
 
| 3si
 
| 3SI = [http://www.3si.org/forum/showthread.php?t={{{thread_id}}} 3000GT/Stealth International] {{#if:{{{author_username|}}}|by {{{author_username}}}.|}}
 
| 3sgto
 
| 3SGTO = the [http://www.3sgto.org/forum/showthread.php?t={{{thread_id}}} 3000GT / Stealth / GTO Forum] {{#if:{{{author_username|}}}|by {{{author_username}}}.|}}
 
| us3s
 
| US3S = the [http://www.us3s.org/freeforum/showthread.php?t={{{thread_id}}} United Society of 3000GT and Stealth Owners Forum] {{#if:{{{author_username|}}}|by {{{author_username}}}.|}}
 
| bawc
 
| BAWC = [http://www.bawcforums.org/vbb/showthread.php?t={{{thread_id}}} BAWC Forums] {{#if:{{{author_username|}}}|by {{{author_username}}}.|}}
 
| #default = a community forum {{#if:{{{author_username|}}}|by {{{author_username}}}.|}}
 
}}</div>
 
{| class="wikitable"
 
! Part Name
 
|-
 
| {{#switch: {{{vender|}}}
 
 
| 3sx
 
| 3sx
| 3SX = [http://www.3sx.com{{{url_path}}} {{{part_name}}}]
+
| 3SX = [http://www.3sx.com/store{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via 3SX Performance</span>
| #default = [{{{url_path}}} {{{part_name}}}]}}
+
| 3sw
|}
+
| 3SW = [http://www.3sw.co/index.php?p={{{url_path}}} {{{part_name}}}] <span class="venderLabel">via 3S Warehouse/GZP</span>
 +
| ips
 +
| IPS = [http://store.ipsmotorsports.net/catalog/product/view/id/{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via IPS Motorsports</span>
 +
| pampena
 +
| Pampena = [http://store.pampenamotorsports.com/catalog/product/view/id/{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Pampena Motorsports</span>
 +
| maximal
 +
| Maximal = [http://www.maximalperformance.com/store{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Maximal Performance</span>
 +
| ninja
 +
| Ninja = [http://www.ninjaperformance.com/product_info.php?products_id={{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Ninja Performance</span>
 +
| gzp
 +
| GZP = [http://www.groundzeroperformance.com/product{{{url_path}}} {{{part_name}}}] <span class="venderLabel">via Ground Zero Performance</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=
}}