Difference between revisions of "Template:Pricing info test"

From PSU Cyril Wiki
Jump to: navigation, search
m (There are WAY too many variable prices for this to be feasible as an auto-fill template. XD)
m (I doubt I'll stick with this, but I still wanted to play with expressions for a moment. <_<)
Line 19: Line 19:
 
}}
 
}}
 
|- style="background:#f9f9f9"
 
|- style="background:#f9f9f9"
| style="background:#f2f2f2" | '''Sell price''' || {{#if: {{{Sell|}}}|{{{Sell}}}|N/A}} {{#switch: {{{Type|}}}
+
| style="background:#f2f2f2" | '''Sell price''' || {{#if: {{{Sell|}}}|{{#expr: {{{Buy}}}*0.2}}|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''' {{!}}{{!}} {{#if: {{{[B] sell|}}}|{{{[B] sell}}}|N/A}}
Line 29: Line 29:
 
}}  
 
}}  
 
|}</includeonly>
 
|}</includeonly>
<noinclude>== Necessary parameters ==
+
<noinclude>== Blank template ==
* This template should modify itself based on values which will identify it as a pricing table for a weapon, line shield or unit.  Weapons and line shields will include a section for boards while units will not.
 
* Prices (both buy and sell) should be researched and patterns documented for items based on manufacturer and rarity.  We should be able to have the template auto-populate cells for this information for most items.
 
* Versions of the game will have to be taken into account to ensure proper pricing.  For example, certain 8★ weapons are sold in ''PSU'' while weapons of the same rarity introduced by ''AOTI'' are not sold in stores.
 
 
 
== Blank template ==
 
 
<pre>{{Pricing info test
 
<pre>{{Pricing info test
 
|Type=  
 
|Type=  
Line 49: Line 44:
 
<pre>{{Pricing info test
 
<pre>{{Pricing info test
 
|Type= Weapon
 
|Type= Weapon
|Buy=  
+
|Buy= 8600
 
|Sell=  
 
|Sell=  
 
|Shop=  
 
|Shop=  

Revision as of 01:37, 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= 
|[B] sell= 
|[B] shop= 
}}

...produces...

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


Line shield

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

...produces...

Pricing information
Line shield Board
Buy price N/A Buy price N/A
Sell price Unknown Sell price Unknown
Shop location N/A Shop location N/A


Unit

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

...produces...

Pricing information
Buy price N/A
Sell price Unknown
Shop location N/A