Template:Vendingmachine: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(added a slot for cost)
m (Fixed typo in documentation)
 
(2 intermediate revisions by 2 users not shown)
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 14: Line 13:
|bgcolor="{{{hacked_bg|#B0C4DE}}}" align="left" colspan=2|<font color="{{{hacked_font|#000000}}}">{{{hackeditems|N/A}}}</font>
|bgcolor="{{{hacked_bg|#B0C4DE}}}" align="left" colspan=2|<font color="{{{hacked_font|#000000}}}">{{{hackeditems|N/A}}}</font>
|-
|-
|bgcolor="{{{premium_bg|#C0C0C0}}}" align="center" colspan=2|<font color="{{{premium_font|#000000}}}">'''Premium items'''</font>
|bgcolor="{{{premium_bg|#C0C0C0}}}" align="center" colspan=2|<font color="{{{premium_font|#000000}}}">'''Premium items '''{{{premiumcost| }}}</font>
|-
|-
|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 can 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 |
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)
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>

Latest revision as of 21:25, 24 April 2020

About

Short details of the contents and prices of a vending machine, intended use in Vending machines.

Parameter-Usage

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 can 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

Examples

Bare

{{vendingmachine}}
N/A
N/A Found at: N/A
Sells
N/A
Hacked
N/A
Premium items
N/A

Simple

{{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)
}}
VendSec
Vendsec.gif Found at: Security
Sells ($5)
8x Handcuffs
2x Flashbang
5x Flash
12x Donut
Hacked ($2)
2x Sunglasses
2x Donut Box
Premium items
N/A

Full

{{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
}}
Whatever
Rack.png Found at: Medical, Kitchen
Sells ($5)
Pliers
Knife
Hacked ($2)
Zippo
Matches
Premium items ($50)
Pulse Rifle
Antag Token