Difference between revisions of "Template:Vendingmachine"

From NSV13
Jump to navigationJump to search
imported>Kingofkosmos
(Testing different colors for this template.)
imported>Spike68
(Attempting to make backgrounds and font colors individually editable through the template)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{|width="600px" cellspacing="0" cellpadding="2"
 
{|width="600px" cellspacing="0" cellpadding="2"
|bgcolor = "#C7DCEC" align="center" colspan=2|<font color="{{{#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="#FFEDD4"|{{#if:{{{icon|}}}| [[File:{{{icon|}}}|48px]] | N/A}}
+
|width = 100 align=center bgcolor="{{{foundat_bg|#FFEDD4}}}"|{{#if:{{{icon|}}}| [[File:{{{icon|}}}|48px]] | N/A}}
|bgcolor="#FFEDD4"|'''Found at:''' {{{area|N/A}}}
+
|bgcolor="{{{foundat_bg|#FFEDD4"}}}|<font color="{{{foundat_font|#000000}}}">'''Found at:''' {{{area|N/A}}}</font>
 
|-
 
|-
|bgcolor="#FFF3D4" align="center" colspan=2|<font color="{{{#000000}}}">'''Sells'''</font>
+
|bgcolor="{{{sells_bg|#FFF3D4}}}" align="center" colspan=2|<font color="{{{sells_font|#000000}}}">'''Sells'''</font>
 
|-
 
|-
|bgcolor="#FFF3D4" align="left" colspan=2|<font color="{{{#000000}}}">{{{items|N/A}}}</font>
+
|bgcolor="{{{sells_bg|#FFF3D4}}}" align="left" colspan=2|<font color="{{{sells_font|#000000}}}">{{{items|N/A}}}</font>
 
|-
 
|-
|bgcolor="#CBD1EE" align="center" colspan=2|<font color="{{{#000000}}}">'''Hacked'''</font>
+
|bgcolor="{{{hacked_bg|#CBD1EE}}}" align="center" colspan=2|<font color="{{{hacked_font|#000000}}}">'''Hacked'''</font>
 
|-
 
|-
|bgcolor="#CBD1EE" align="left" colspan=2|<font color="{{{#000000}}}">{{{hackeditems|N/A}}}</font>
+
|bgcolor="{{{hacked_bg|#CBD1EE}}}" align="left" colspan=2|<font color="{{{hacked_font|#000000}}}">{{{hackeditems|N/A}}}</font>
 
|}
 
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
Example would be:
 
Example would be:
  
<code><nowiki>{{vendingmachine |
+
<pre>{{vendingmachine |
 
name=Whatever |
 
name=Whatever |
 +
name_bg=#C7DCEC |
 +
name_font=black|
 
icon=Rack.png |
 
icon=Rack.png |
 +
foundat_bg=#FFEDD4 |
 +
foundat_font=black |
 
area=Medical, Kitchen |
 
area=Medical, Kitchen |
 +
sells_bg=#FFF3D4 |
 +
sells_font=black |
 
items=Pliers<br>Knife |
 
items=Pliers<br>Knife |
 +
hacked_bg=#CBD1EE |
 +
hacked_font=red |
 
hackeditems=Zippo<br>Matches
 
hackeditems=Zippo<br>Matches
}}</nowiki></code>
+
}}</pre>
 +
 
 
which turns into
 
which turns into
 +
 
{{vendingmachine |
 
{{vendingmachine |
 
name=Whatever |
 
name=Whatever |
 +
name_bg=#C7DCEC |
 +
name_color=black|
 
icon=Rack.png |
 
icon=Rack.png |
 +
foundat_bg=#FFEDD4 |
 +
foundat_font=black |
 
area=Medical, Kitchen |
 
area=Medical, Kitchen |
 +
sells_bg=#FFF3D4 |
 +
sells_font=black |
 
items=Pliers<br>Knife |
 
items=Pliers<br>Knife |
 +
hacked_bg=#CBD1EE |
 +
hacked_font=red |
 
hackeditems=Zippo<br>Matches
 
hackeditems=Zippo<br>Matches
 +
}}
 +
 +
Simple version:
 +
 +
<pre>{{vendingmachine |
 +
name=Whatever |
 +
icon=Rack.png |
 +
area=Medical, Kitchen |
 +
items=Pliers<br>Knife |
 +
hackeditems=Zippo<br>Matches
 +
}}</pre>
 +
 +
which turns into
 +
 +
{{vendingmachine |
 +
name=VendSec |
 +
icon=Vendsec.gif |
 +
area=Security |
 +
items=8x Handcuffs<br>
 +
2x Flashbang<br>
 +
5x Flash<br>
 +
12x Donut  |
 +
hackeditems=2x Sunglasses<br>
 +
2x Donut Box
 
}}
 
}}
 
[[category:templates]]
 
[[category:templates]]
 
</noinclude>
 
</noinclude>

Revision as of 16:50, 14 October 2013

Example would be:

{{vendingmachine |
name=Whatever |
name_bg=#C7DCEC |
name_font=black|
icon=Rack.png |
foundat_bg=#FFEDD4 |
foundat_font=black |
area=Medical, Kitchen |
sells_bg=#FFF3D4 |
sells_font=black |
items=Pliers<br>Knife |
hacked_bg=#CBD1EE |
hacked_font=red |
hackeditems=Zippo<br>Matches
}}

which turns into


Whatever
Rack.png Found at: Medical, Kitchen
Sells
Pliers
Knife
Hacked
Zippo
Matches


Simple version:

{{vendingmachine |
name=Whatever |
icon=Rack.png |
area=Medical, Kitchen |
items=Pliers<br>Knife |
hackeditems=Zippo<br>Matches
}}

which turns into


VendSec
Vendsec.gif Found at: Security
Sells
8x Handcuffs

2x Flashbang
5x Flash
12x Donut

Hacked
2x Sunglasses

2x Donut Box