Template:Vendingmachine: Difference between revisions

Jump to navigation Jump to search
Tidied up documentation. Trimmed linebreaks at start and end of includeonly-tag. Added a border around the whole box.
m (+ premium)
(Tidied up documentation. Trimmed linebreaks at start and end of includeonly-tag. Added a border around the whole box.)
Line 1: Line 1:
<includeonly>
<includeonly>{|width="600px" cellspacing="0" cellpadding="2" style="border: 1px solid black;"
{|width="600px" cellspacing="0" cellpadding="2"
|bgcolor = "{{{name_bg|#C7DCEC}}}" align="center" colspan=2|<font color="{{{name_font|#000000}}}">'''{{{name|N/A}}}'''</font>
|bgcolor = "{{{name_bg|#C7DCEC}}}" align="center" colspan=2|<font color="{{{name_font|#000000}}}">'''{{{name|N/A}}}'''</font>
|-
|-
Line 17: Line 16:
|-
|-
|bgcolor="{{{premium_bg|#DCDCDC}}}" align="left" colspan=2|<font color="{{{premium_font|#000000}}}">{{{premiumitems|N/A}}}</font>
|bgcolor="{{{premium_bg|#DCDCDC}}}" align="left" colspan=2|<font color="{{{premium_font|#000000}}}">{{{premiumitems|N/A}}}</font>
|}</includeonly><noinclude>
== About ==
Short details of the contents and prices of a vending machine, intended use in [[Vending machines]].
== Parameter-Usage ==
{| class="wikitable"
!Parameter
!Default value
!Description
|-
!name_font
| #000000 || Font-color of the vending machines name
|-
!name_bg
| #C7DCEC || Background-color of the vending machines name
|-
!name
| N/A || Name of the vending machine
|-
!icon
| N/A || Name of the vending machines icon
|-
!area
| N/A || Areas in which the vending machine can be found
|-
!foundat_font
| #000000 || Font-color of the main section
|-
!foundat_bg
| #d4ebf2 || Background-color of the main section
|-
!sells_font
| #000000 || Font-color of the 'sells'-section
|-
!sells_bg
| #F0E68C ||  Background-color of the 'sells'-section
|-
!sellscost
| || Price of normal items like '$5'
|-
!items
| N/A || List of normal items which can be bought without hacking. Use HTML-Linebreaks to separate.
|-
!hacked_font
| #000000 || Font-color of the 'hacked'-section
|-
!hacked_bg
| #6495ED || Background-color of the 'hacked'-section
|-
!hackedcost
| || Price of items listed in the 'hacked'-section like '$10'
|-
!hackeditems
| N/A|| List of items which only be bought at a hacked machine. Use HTML-Linebreaks to separate.
|-
!premium_font
| #000000 || Font-color of the 'premium'-section
|-
!premium_bg
| #C0C0C0 || Background-color of the 'premium'-section
|-
!premiumcost
| || Price of premium items like '$30'
|-
!premiumitems
| N/A || List of items listed as premium
|}
|}
</includeonly><noinclude>
Example would be:


<pre>{{vendingmachine |
== Examples ==
name=Whatever |
=== Bare ===
name_bg=#C7DCEC |
<pre>{{vendingmachine}}</pre>
name_font=black|
{{vendingmachine}}
icon=Rack.png |
 
foundat_bg=#FFEDD4 |
=== Simple ===
foundat_font=black |
<pre>{{vendingmachine
area=Medical, Kitchen |
|name=VendSec
sells_bg=#FFF3D4 |
|icon=Vendsec.gif
sells_font=black |
|area=Security
sellscost=testamount |
|sellscost=($5)
items=Pliers<br>Knife |
|items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut
hacked_bg=#CBD1EE |
|hackeditems=2x Sunglasses<br>2x Donut Box
hacked_font=red |
|hackedcost=($2)
hackedcost=$2|
hackeditems=Zippo<br>Matches |
premium_bg=#EEF2F2 |
premium_font=blue |
premiumcost=($50) |
premiumitems=Pulse Rifle<br>Antag Token
}}</pre>
}}</pre>
{{vendingmachine
|name=VendSec
|icon=Vendsec.gif
|area=Security
|sellscost=($5)
|items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut
|hackeditems=2x Sunglasses<br>2x Donut Box
|hackedcost=($2)
}}


which turns into
=== Full ===
 
<pre>{{vendingmachine
{{vendingmachine |
|name=Whatever
name=Whatever |
|name_bg=#C7DCEC
name_bg=#C7DCEC |
|name_color=black
name_color=black|
|icon=Rack.png
icon=Rack.png |
|foundat_bg=#FFEDD4
foundat_bg=#FFEDD4 |
|foundat_font=black
foundat_font=black |
|area=Medical, Kitchen
area=Medical, Kitchen |
|sells_bg=#FFF3D4
sells_bg=#FFF3D4 |
|sells_font=black
sells_font=black |
|sellscost=($5)
sellscost=($5) |
|items=Pliers<br>Knife
items=Pliers<br>Knife |
|hacked_bg=#CBD1EE
hacked_bg=#CBD1EE |
|hacked_font=red
hacked_font=red |
|hackedcost=($2)
hackedcost=($2)|
|hackeditems=Zippo<br>Matches
hackeditems=Zippo<br>Matches |
|premium_bg=#EEF2F2
premium_bg=#EEF2F2 |
|premium_font=blue
premium_font=blue |
|premiumcost=($50)
premiumcost=($50) |
|premiumitems=Pulse Rifle<br>Antag Token
premiumitems=Pulse Rifle<br>Antag Token
}}</pre>
{{vendingmachine
|name=Whatever
|name_bg=#C7DCEC
|name_color=black
|icon=Rack.png
|foundat_bg=#FFEDD4
|foundat_font=black
|area=Medical, Kitchen
|sells_bg=#FFF3D4
|sells_font=black
|sellscost=($5)
|items=Pliers<br>Knife
|hacked_bg=#CBD1EE
|hacked_font=red
|hackedcost=($2)
|hackeditems=Zippo<br>Matches
|premium_bg=#EEF2F2
|premium_font=blue
|premiumcost=($50)
|premiumitems=Pulse Rifle<br>Antag Token
}}
}}


Simple version:
<pre>{{vendingmachine |
name=VendSec |
icon=Vendsec.gif |
area=Security |
sellscost=($5) |
items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut  |
hackeditems=2x Sunglasses<br>2x Donut Box|
hackedcost=($2)|
}}}</pre>
which turns into
{{vendingmachine |
name=VendSec |
icon=Vendsec.gif |
area=Security |
sellscost=($5) |
items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut  |
hackeditems=2x Sunglasses<br>2x Donut Box|
hackedcost=($2)|
}}
[[category:templates]]
[[category:templates]]
</noinclude>
</noinclude>
1,133

edits

Navigation menu