Difference between revisions of "Template:Item"

From Rebel Alliance Wiki
Jump to: navigation, search
m
Line 6: Line 6:
 
|style="width:20%;text-align:right;"|{{{category}}}
 
|style="width:20%;text-align:right;"|{{{category}}}
 
|style="width:20%;"|'''NR Price:'''
 
|style="width:20%;"|'''NR Price:'''
|style="width:20%;text-align:right;"|{{Credit|{{{nrPrice}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{#expr:{{{price}}}*(1-{{:Sales Discounts|discount=Products NR}}/100)}}}}}}
 
|-
 
|-
 
|style="width:20%;"|'''Url:'''
 
|style="width:20%;"|'''Url:'''
 
|style="width:20%;text-align:right;"|[{{{link}}} Combine Rules Page]
 
|style="width:20%;text-align:right;"|[{{{link}}} Combine Rules Page]
 
|style="width:20%;"|'''GA Price:'''
 
|style="width:20%;"|'''GA Price:'''
|style="width:20%;text-align:right;"|{{Credit|{{{gaPrice}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{#expr:{{{price}}}*(1-{{:Sales Discounts|discount=Products GA}}/100)}}}}}}
 
|-
 
|-
 
|style="width:20%;"|'''Sold By:'''
 
|style="width:20%;"|'''Sold By:'''
 
|style="width:20%;text-align:right;"|[[{{{soldBy}}}]]
 
|style="width:20%;text-align:right;"|[[{{{soldBy}}}]]
 
|style="width:20%;"|'''External Price:'''
 
|style="width:20%;"|'''External Price:'''
|style="width:20%;text-align:right;"|{{Credit|{{{externalPrice}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{{price}}}}}}}
 
|-
 
|-
 
|style="width:20%;"|'''Available:'''
 
|style="width:20%;"|'''Available:'''
 
|style="width:20%;text-align:right;"|{{#ifeq: {{{available}}}|true|Yes|Sales are currently closed}}
 
|style="width:20%;text-align:right;"|{{#ifeq: {{{available}}}|true|Yes|Sales are currently closed}}
 
|style="width:20%;"|'''NR Datacard Fee:'''
 
|style="width:20%;"|'''NR Datacard Fee:'''
|style="width:20%;text-align:right;"|{{Credit|{{{nrDCFee}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{#expr:{{{dcFee}}}*(1-{{:Sales Discounts|discount=Products NR}}/100)}}}}}}
 
|-
 
|-
 
|style="width:20%;"|'''Batch Size:'''
 
|style="width:20%;"|'''Batch Size:'''
 
|style="width:20%;text-align:right;"|{{{batchSize}}}
 
|style="width:20%;text-align:right;"|{{{batchSize}}}
 
|style="width:20%;"|'''GA Datacard Fee:'''
 
|style="width:20%;"|'''GA Datacard Fee:'''
|style="width:20%;text-align:right;"|{{Credit|{{{gaDCFee}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{#expr:{{{dcFee}}}*(1-{{:Sales Discounts|discount=Products GA}}/100)}}}}}}
 
|-
 
|-
 
|style="width:20%;"|
 
|style="width:20%;"|
 
|style="width:20%;text-align:right;"|
 
|style="width:20%;text-align:right;"|
 
|style="width:20%;"|'''External Datacard Fee:'''
 
|style="width:20%;"|'''External Datacard Fee:'''
|style="width:20%;text-align:right;"|{{Credit|{{{externalDCFee}}}}}
+
|style="width:20%;text-align:right;"|{{Credit|{{#number_format:{{{dcFee}}}}}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 
===Usage===
 
===Usage===
Line 40: Line 40:
 
| soldBy =  
 
| soldBy =  
 
| link =  
 
| link =  
| externalPrice =  
+
| price =  
| gaPrice =
+
| dcFee =  
| nrPrice =
 
| externalDCFee =
 
| gaDCFee =
 
| nrDCFee =  
 
 
| batchSize =  
 
| batchSize =  
 
| available = true|false (or empty)
 
| available = true|false (or empty)
Line 57: Line 53:
 
| soldBy = Merr-Sonn Technologies
 
| soldBy = Merr-Sonn Technologies
 
| link = http://www.swcombine.com/rules/?Tools&ID=24
 
| link = http://www.swcombine.com/rules/?Tools&ID=24
| externalPrice = 200,000
+
| price = 200000
| gaPrice = 170,000
+
| dcFee = 100000
| nrPrice = 160,000
 
| externalDCFee = 100,000
 
| gaDCFee = 80,000
 
| nrDCFee = 70,000
 
 
| batchSize = 22
 
| batchSize = 22
 
| available = true
 
| available = true
Line 71: Line 63:
 
| soldBy = Merr-Sonn Technologies
 
| soldBy = Merr-Sonn Technologies
 
| link = http://www.swcombine.com/rules/?Tools&ID=24
 
| link = http://www.swcombine.com/rules/?Tools&ID=24
| externalPrice = 200,000
+
| price = 200000
| gaPrice = 170,000
+
| dcFee = 100000
| nrPrice = 160,000
 
| externalDCFee = 100,000
 
| gaDCFee = 80,000
 
| nrDCFee = 70,000
 
 
| batchSize = 22
 
| batchSize = 22
 
| available = true
 
| available = true

Revision as of 12:14, 16 January 2016

Usage

{{Item
| name = 
| category = 
| soldBy = 
| link = 
| price = 
| dcFee = 
| batchSize = 
| available = true|false (or empty)
}}


Examples

{{Item
| name = Restraining Bolt
| category = Tools
| soldBy = Merr-Sonn Technologies
| link = http://www.swcombine.com/rules/?Tools&ID=24
| price = 200000
| dcFee = 100000
| batchSize = 22
| available = true
}}
Restraining Bolt
Restraining Bolt
Category: Tools NR Price: Cr First argument to "number_format" must be a number.
Url: Combine Rules Page GA Price: Cr First argument to "number_format" must be a number.
Sold By: Merr-Sonn Technologies External Price: Cr 200,000
Available: Yes NR Datacard Fee: Cr First argument to "number_format" must be a number.
Batch Size: 22 GA Datacard Fee: Cr First argument to "number_format" must be a number.
External Datacard Fee: Cr 100,000