Difference between revisions of "Template:Pricing info test"
From PSU Cyril Wiki
m (Copy-pasta. D:) |
m (And for those pesky Voloyal items...) |
||
Line 21: | Line 21: | ||
| style="background:#f2f2f2" | '''Sell price''' || {{#switch: {{{Type|}}} | | style="background:#f2f2f2" | '''Sell price''' || {{#switch: {{{Type|}}} | ||
|Weapon= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | |Weapon= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | ||
+ | |Casino weapon= {{{Sell}}} | ||
|Line shield= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | |Line shield= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | ||
+ | |Casino line shield= {{{Sell}}} | ||
|Unit= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.1}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | |Unit= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.1}}|{{#if: {{{Sell|}}}|{{{Sell}}}|N/A}}}} | ||
+ | |Casino unit= {{{Sell}}} | ||
|#default= N/A}} {{#switch: {{{Type|}}} | |#default= N/A}} {{#switch: {{{Type|}}} | ||
|Unit= | |Unit= | ||
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Sell price''' {{!}}{{!}} {{#switch: {{{Type|}}} | |#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Sell price''' {{!}}{{!}} {{#switch: {{{Type|}}} | ||
|Weapon= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|N/A}}}} | |Weapon= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|N/A}}}} | ||
+ | |Casino weapon= {{{[B] sell}}} | ||
|Line shield= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B} sell}}}|N/A}}}} | |Line shield= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B} sell}}}|N/A}}}} | ||
+ | |Casino line shield= {{{[B] sell}}} | ||
|#default= N/A}} | |#default= N/A}} | ||
}} | }} | ||
Line 36: | Line 41: | ||
}} | }} | ||
|}</includeonly> | |}</includeonly> | ||
− | <noinclude>== Blank template == | + | <noinclude>== Template parameters == |
+ | * '''Type:''' Identify the type of item this as ''Weapon'', ''Line shield'' or ''Unit''. This will ensure the proper table layout and price calculations. For items from [[Casino Voloya]], identify them as ''Casino weapon'', ''Casino line shield'' or ''Casino unit''.<br/> | ||
+ | * '''Buy:''' If applicable, type the purchase price of the item here. If unknown, leave this field blank.<br/> | ||
+ | * '''Sell:''' Type the selling price of the item here. If unknown, leave blank.<br/> | ||
+ | * '''Shop:''' If available for purchase, list the shops where this item can be bought.<br/> | ||
+ | * '''[B] buy:''' <br/> | ||
+ | * '''[B] sell:''' <br/> | ||
+ | * '''[B] shop:''' | ||
+ | |||
+ | == Blank template == | ||
<pre>{{Pricing info test | <pre>{{Pricing info test | ||
|Type= | |Type= | ||
Line 85: | Line 99: | ||
|Sell= 450 | |Sell= 450 | ||
|Shop= | |Shop= | ||
+ | |[B] buy= | ||
+ | |[B] sell= | ||
+ | |[B] shop= | ||
+ | }} | ||
+ | |||
+ | === Weapon from Casino Voloyal === | ||
+ | <pre>{{Pricing info test | ||
+ | |Type= Casino weapon | ||
+ | |Buy= {{Silver}} 04 | ||
+ | |Sell= | ||
+ | |Shop= [[Casino Voloyal]] | ||
+ | |[B] buy= | ||
+ | |[B] sell= | ||
+ | |[B] shop= | ||
+ | }}</pre> | ||
+ | ...produces... | ||
+ | {{Pricing info test | ||
+ | |Type= Casino weapon | ||
+ | |Buy= {{Silver}} 04 | ||
+ | |Sell= | ||
+ | |Shop= [[Casino Voloyal]] | ||
|[B] buy= | |[B] buy= | ||
|[B] sell= | |[B] sell= |
Revision as of 02:20, 18 April 2008
Contents
Template parameters
- Type: Identify the type of item this as Weapon, Line shield or Unit. This will ensure the proper table layout and price calculations. For items from Casino Voloya, identify them as Casino weapon, Casino line shield or Casino unit.
- Buy: If applicable, type the purchase price of the item here. If unknown, leave this field blank.
- Sell: Type the selling price of the item here. If unknown, leave blank.
- Shop: If available for purchase, list the shops where this item can be bought.
- [B] buy:
- [B] sell:
- [B] shop:
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 |
Weapon from Casino Voloyal
{{Pricing info test |Type= Casino weapon |Buy= {{Silver}} 04 |Sell= |Shop= [[Casino Voloyal]] |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |
Buy price | 04 |
Sell price | Unknown |
Shop location | Casino Voloyal |
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 |