Difference between revisions of "Template:Pricing info (PSP)"

From PSU Cyril Wiki
Jump to: navigation, search
m (Lots of cleaning to do here. Bear with me for a moment.)
 
m (Organizing: adding category)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>{| class="wikitable" style="text-align:center"
 
<includeonly>{| class="wikitable" style="text-align:center"
| {{#switch: {{{Type|}}}
+
| colspan="2" style="background:#e8e8e8" | '''Pricing information'''
|Weapon= colspan="4"
 
|Casino weapon= colspan="2"
 
|Line shield= colspan="4"
 
|Casino line shield= colspan="2"
 
|Unit= colspan="2"
 
|Casino unit= colspan="2"
 
|Event item= colspan="4"
 
|No board= colspan="2"
 
|#default= colspan="4"}} style="background:#e8e8e8" | '''Pricing information'''
 
{{#switch: {{{Type|}}}
 
|Weapon= {{!}}- style="background:#f2f2f2"
 
{{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board'''
 
|Casino weapon=
 
|Line shield= {{!}}- style="background:#f2f2f2"
 
{{!}} colspan="2" {{!}} '''Line shield''' {{!}}{{!}} colspan="2" {{!}} '''Board'''
 
|Casino line shield=
 
|Unit=
 
|Casino unit=
 
|Event item=
 
|No board=
 
|#default= {{!}}- style="background:#f2f2f2"
 
{{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board'''}}
 
 
|- style="background:#f9f9f9"
 
|- style="background:#f9f9f9"
| style="background:#f2f2f2" | '''Buy price''' || {{#if: {{{Buy|}}}|{{{Buy}}}|N/A}} {{#switch: {{{Type|}}}
+
| style="background:#f2f2f2" | '''Buy price''' || {{#if: {{{Buy|}}}|{{{Buy}}}|N/A}}
|Casino weapon=
 
|Casino line shield=
 
|Unit=
 
|Casino unit=
 
|Event item=
 
|No board=
 
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Buy price''' {{!}}{{!}} {{#if: {{{[B] buy|}}}|{{{[B] buy}}}|N/A}}
 
}}
 
 
|- style="background:#f9f9f9"
 
|- style="background:#f9f9f9"
| style="background:#f2f2f2" | '''Sell price''' || {{#if: {{{Sell|}}}|{{{Sell}}}|{{#switch: {{{Type|}}}
+
| style="background:#f2f2f2" | '''Sell price''' || {{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}
|Weapon= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|Casino weapon= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|Line shield= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.2}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|Casino line shield= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|Unit= {{#if: {{{Buy|}}}|{{#expr: {{{Buy}}}*0.1}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|Casino unit= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}
 
|#default= Unknown}}}} {{#switch: {{{Type|}}}
 
|Casino weapon=
 
|Casino line shield=
 
|Unit=
 
|Casino unit=
 
|Event item=
 
|No board=
 
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Sell price''' {{!}}{{!}} {{#if: {{{[B] sell|}}}|{{{[B] sell}}}|{{#switch: {{{Type|}}}
 
|Weapon= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Unknown}}}}
 
|Casino weapon= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Unknown}}}}
 
|Line shield= {{#if: {{{[B] buy|}}}|{{#expr: {{{[B] buy}}}*0.05}}|{{#if: {{{[B] sell|}}}|{{{[B} sell}}}|Unknown}}}}
 
|Casino line shield= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Unknown}}}}
 
|#default= Unknown}}}}
 
}}
 
 
|- style="background:#f9f9f9"
 
|- style="background:#f9f9f9"
| style="background:#f2f2f2" | '''Shop location''' || {{#if: {{{Shop|}}}|{{{Shop}}}|N/A}} {{#switch: {{{Type|}}}
+
| style="background:#f2f2f2" | '''Shop location''' || {{#if: {{{Shop|}}}|{{{Shop}}}|N/A}}
|Casino weapon=
+
|}</includeonly><noinclude>== Template parameters ==
|Casino line shield=
 
|Unit=
 
|#default= {{!}}{{!}} style="background:#f2f2f2" {{!}} '''Shop location''' {{!}}{{!}} {{#if: {{{[B] shop|}}}|{{{[B] shop}}}|N/A}}
 
}}  
 
|}</includeonly>
 
<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 Voloyal]], identify them as ''Casino weapon'', ''Casino line shield'' or ''Casino unit''.  ''No board'' can also be used to remove the synthesis board pricing columns.<br/>
 
 
* '''Buy:'''  If applicable, type the purchase price of the item here.  If unknown, leave this field blank.<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/>
 
* '''Sell:'''  Type the selling price of the item here.  If unknown, leave blank.<br/>
Line 73: Line 16:
 
== Blank template ==
 
== Blank template ==
 
<pre>{{Pricing info (PSP)
 
<pre>{{Pricing info (PSP)
|Type=
 
 
|Buy=  
 
|Buy=  
 
|Sell=  
 
|Sell=  
 
|Shop= }}</pre>
 
|Shop= }}</pre>
  
 +
== Example ==
 
{{Pricing info (PSP)
 
{{Pricing info (PSP)
|Type=
+
|Buy= 3400
|Buy=  
 
 
|Sell=  
 
|Sell=  
|Shop= }}
+
|Shop= [[T-WORKS Shop]]}}
</noinclude>
+
[[Category:Database Templates]]</noinclude>

Latest revision as of 07:16, 4 May 2009

Template parameters

  • 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.

In the case of an unknown value, leave the field blank! Do not enter question marks!

Blank template

{{Pricing info (PSP)
|Buy= 
|Sell= 
|Shop= }}

Example

Pricing information
Buy price 3400
Sell price Unknown
Shop location T-WORKS Shop