Template:Vendingmachine: Difference between revisions
Jump to navigation
Jump to search
imported>Spike68 (Attempting to make backgrounds and font colors individually editable through the template) |
m (Fixed typo in documentation) |
||
(15 intermediate revisions by 5 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> | ||
|- | |- | ||
|width = 100 align=center bgcolor="{{{foundat_bg|# | |width = 100 align=center bgcolor="{{{foundat_bg|#d4ebf2}}}"|{{#if:{{{icon|}}}| [[File:{{{icon|}}}|48px]] | N/A}} | ||
|bgcolor="{{{foundat_bg|# | |bgcolor="{{{foundat_bg|#d4ebf2}}}"|<font color="{{{foundat_font|#000000}}}">'''Found at:''' {{{area|N/A}}}</font> | ||
|- | |- | ||
|bgcolor="{{{sells_bg|# | |bgcolor="{{{sells_bg|#F0E68C}}}" align="center" colspan=2|<font color="{{{sells_font|#000000}}}">'''Sells '''{{{sellscost| }}}</font> | ||
|- | |- | ||
|bgcolor="{{{sells_bg|# | |bgcolor="{{{sells_bg|#FFEFD5}}}" align="left" colspan=2|<font color="{{{sells_font|#000000}}}">{{{items|N/A}}}</font> | ||
|- | |- | ||
|bgcolor="{{{hacked_bg|# | |bgcolor="{{{hacked_bg|#6495ED}}}" align="center" colspan=2|<font color="{{{hacked_font|#000000}}}">'''Hacked '''{{{hackedcost| }}}</font> | ||
|- | |- | ||
|bgcolor="{{{hacked_bg|# | |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 '''{{{premiumcost| }}}</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 | |||
|} | |} | ||
<pre>{{vendingmachine | == Examples == | ||
=== Bare === | |||
<pre>{{vendingmachine}}</pre> | |||
{{vendingmachine}} | |||
icon= | |||
=== Simple === | |||
<pre>{{vendingmachine | |||
|name=VendSec | |||
|icon=Vendsec.gif | |||
|area=Security | |||
items= | |sellscost=($5) | ||
|items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut | |||
|hackeditems=2x Sunglasses<br>2x Donut Box | |||
hackeditems= | |hackedcost=($2) | ||
}}</pre> | }}</pre> | ||
{{vendingmachine | |||
|name=VendSec | |||
|icon=Vendsec.gif | |||
{{vendingmachine | | |area=Security | ||
name= | |sellscost=($5) | ||
|items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut | |||
|hackeditems=2x Sunglasses<br>2x Donut Box | |||
icon= | |hackedcost=($2) | ||
items= | |||
hackeditems= | |||
}} | }} | ||
=== Full === | |||
<pre>{{vendingmachine | |||
<pre>{{vendingmachine | | |name=Whatever | ||
name=Whatever | | |name_bg=#C7DCEC | ||
icon=Rack.png | | |name_color=black | ||
area=Medical, Kitchen | | |icon=Rack.png | ||
items=Pliers<br>Knife | | |foundat_bg=#FFEDD4 | ||
hackeditems=Zippo<br>Matches | |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 | |||
}}</pre> | }}</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 | |||
}} | |||
[[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 | |
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 | |
Found at: Medical, Kitchen | |
Sells ($5) | |
Pliers Knife | |
Hacked ($2) | |
Zippo Matches | |
Premium items ($50) | |
Pulse Rifle Antag Token |