Difference between revisions of "Template:Pricing info test"

From PSU Cyril Wiki
Jump to: navigation, search
m
m
Line 25: Line 25:
 
|#default= N/A}} {{#switch: {{{Type|}}}
 
|#default= N/A}} {{#switch: {{{Type|}}}
 
|Unit=  
 
|Unit=  
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Sell price''' {{!}}{{!}} {{#if: {{{[B] sell|}}}|{{{[B] sell}}}|N/A}}
+
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Sell price''' {{!}}{{!}} {{#switch: {{{Type|}}}
 +
|Weapon= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{{[B] sell}}}}}
 +
|Line shield= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{{[B] sell}}}}}
 +
|#default= N/A}}
 
}}
 
}}
 
|- style="background:#f9f9f9"
 
|- style="background:#f9f9f9"
Line 51: Line 54:
 
|Sell=  
 
|Sell=  
 
|Shop=  
 
|Shop=  
|[B] buy=  
+
|[B] buy= 4300
 
|[B] sell=  
 
|[B] sell=  
 
|[B] shop=  
 
|[B] shop=  
Line 61: Line 64:
 
|Sell=  
 
|Sell=  
 
|Shop=  
 
|Shop=  
|[B] buy=  
+
|[B] buy= 4300
 
|[B] sell=  
 
|[B] sell=  
 
|[B] shop=  
 
|[B] shop=  
Line 90: Line 93:
 
<pre>{{Pricing info test
 
<pre>{{Pricing info test
 
|Type= Line shield
 
|Type= Line shield
|Buy= 18000
+
|Buy= 45000
 
|Sell=  
 
|Sell=  
 
|Shop=  
 
|Shop=  
|[B] buy=  
+
|[B] buy= 15000
 
|[B] sell=  
 
|[B] sell=  
 
|[B] shop=  
 
|[B] shop=  
Line 100: Line 103:
 
{{Pricing info test
 
{{Pricing info test
 
|Type= Line shield
 
|Type= Line shield
|Buy= 18000
+
|Buy= 45000
 
|Sell=  
 
|Sell=  
 
|Shop=  
 
|Shop=  
|[B] buy=  
+
|[B] buy= 15000
 
|[B] sell=  
 
|[B] sell=  
 
|[B] shop=  
 
|[B] shop=  

Revision as of 02:00, 18 April 2008

Blank template

{{Pricing info test
|Type= 
|Buy= 
|Sell= 
|Shop= 
|[B] buy= 
|[B] sell= 
|[B] shop= 
}}

Examples

Weapon

{{Pricing info test
|Type= Weapon
|Buy= 8600
|Sell= 
|Shop= 
|[B] buy= 4300
|[B] sell= 
|[B] shop= 
}}

...produces...

Pricing information
Weapon Board
Buy price 8600 Buy price 4300
Sell price 1720 Sell price 215
Shop location N/A Shop location N/A


Weapon w/ no purchase price

{{Pricing info test
|Type= Weapon
|Buy= 
|Sell= 450
|Shop= 
|[B] buy= 
|[B] sell= 
|[B] shop= 
}}

...produces...

Pricing information
Weapon Board
Buy price N/A Buy price N/A
Sell price 450 Sell price Unknown
Shop location N/A Shop location N/A


Line shield

{{Pricing info test
|Type= Line shield
|Buy= 45000
|Sell= 
|Shop= 
|[B] buy= 15000
|[B] sell= 
|[B] shop= 
}}

...produces...

Pricing information
Line shield Board
Buy price 45000 Buy price 15000
Sell price 9000 Sell price 750
Shop location N/A Shop location N/A


Unit

{{Pricing info test
|Type= Unit
|Buy= 6000
|Sell= 
|Shop= 
|[B] buy= 
|[B] sell= 
|[B] shop= 
}}

...produces...

Pricing information
Buy price 6000
Sell price 600
Shop location N/A