Difference between revisions of "User:White In Sky/Template"

From Paradise Station Wiki
Jump to navigation Jump to search
(Created page with "{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{stra...")
 
(fixed it a bit)
Line 1: Line 1:
{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}|contents={{{contents}}}}} | {{#if:{{{description|}}}| {{ItemMedium|name={{{name}}}|image={{{image}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}}} | {{#if:{{{name|}}}| {{Template:ItemSimple|name={{{name}}}|image={{{image}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}}} | <font color='red'>'''The item needs to have the name defined.'''</font> }} }} }}<noinclude>
== How to use ==
== How to use ==


Line 7: Line 5:
=== With no parameters ===
=== With no parameters ===


   <nowiki>{{Item}}</nowiki>
   <nowiki>[[Template:Item]]</nowiki>


{{Item}}
[[Item]]


=== With minimum parameters ===
=== With minimum parameters ===
Line 15: Line 13:
The bare minimum is the name parameter.
The bare minimum is the name parameter.


   <nowiki>{{Item</nowiki>
   <nowiki>[[Item</nowiki>
   <nowiki>|name=Test Item</nowiki>
   <nowiki>|name=Test Item</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
   <nowiki>|image = Redtoolbox.png</nowiki>
   <nowiki>|image = Redtoolbox.png</nowiki>
   <nowiki>}}</nowiki>
   <nowiki>]]</nowiki>


{{Item
[[Item
|name=Test Item
|name=Test Item
|bgcolor1 = #FFEE88
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|bgcolor2 = #FFDD66
|image = Redtoolbox.png
|image = Redtoolbox.png
}}
]]


=== Normal item ===
=== Normal item ===
Line 33: Line 31:
If the description is set, this template will show.
If the description is set, this template will show.


   <nowiki>{{Item</nowiki>
   <nowiki>[[Item</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
Line 44: Line 42:
    
    
   <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
   <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
   <nowiki>}}</nowiki>
   <nowiki>]]</nowiki>


{{Item
[[Item
|bgcolor1 = #FFEE88
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|bgcolor2 = #FFDD66
Line 57: Line 55:


Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}
]]


=== Container items ===
=== Container items ===
Line 63: Line 61:
If the contents variable is set, this template will thow:
If the contents variable is set, this template will thow:


   <nowiki>{{Item</nowiki>
   <nowiki>[[Item</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor1 = #FFEE88</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
   <nowiki>|bgcolor2 = #FFDD66</nowiki>
Line 75: Line 73:
    
    
   <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
   <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
   <nowiki>}}</nowiki>
   <nowiki>]]</nowiki>


{{Item
[[Item
|bgcolor1 = #FFEE88
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|bgcolor2 = #FFDD66
Line 85: Line 83:
|usedfor = Contains tools which are useful in emergencies
|usedfor = Contains tools which are useful in emergencies
|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
|contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]]<br> [[File:Crowbar.png|link=Crowbar]] [[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]]  
|contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welderon.gif|link=Welding Tool]]<br> [[File:Crowbar.png|link=Crowbar]] [[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]]  
|description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.
|description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.


Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}
]]
[[Category:Templates]]
[[Category:Templates]]




</noinclude>
</noinclude>

Revision as of 21:19, 19 July 2014

How to use

template intended for lists of objects to clean them up a bit.

With no parameters

 [[Template:Item]]

Item

With minimum parameters

The bare minimum is the name parameter.

 [[Item
 |name=Test Item
 |bgcolor1 = #FFEE88
 |bgcolor2 = #FFDD66
 |image = Redtoolbox.png
 ]]

[[Item |name=Test Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |image = Redtoolbox.png ]]

Normal item

If the description is set, this template will show.

 [[Item
 |bgcolor1 = #FFEE88
 |bgcolor2 = #FFDD66
 |name = Emergency Toolbox
 |image = Redtoolbox.png
 |foundin = emergency lockers and storage areas
 |usedfor = Contains tools which are useful in emergencies
 |strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
 |description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.
 
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 ]]

[[Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |name = Emergency Toolbox |image = Redtoolbox.png |foundin = emergency lockers and storage areas |usedfor = Contains tools which are useful in emergencies |strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar. |description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.

Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes. ]]

Container items

If the contents variable is set, this template will thow:

 [[Item
 |bgcolor1 = #FFEE88
 |bgcolor2 = #FFDD66
 |name = Emergency Toolbox
 |image = Redtoolbox.png
 |foundin = emergency lockers and storage areas
 |usedfor = Contains tools which are useful in emergencies
 |strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
 |contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]]<br> [[File:Crowbar.png|link=Crowbar]]   <nowiki>[[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]] 
 |description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when   <nowiki>trying to cause an emergency.
 
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 ]]

[[Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |name = Emergency Toolbox |image = Redtoolbox.png |foundin = emergency lockers and storage areas |usedfor = Contains tools which are useful in emergencies |strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar. |contents = Screwdriver tool.png Wrench.png Welderon.gif
Crowbar.png Analyzer.png Wirecutters.png |description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency.

Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes. ]]