Template:Item: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
imported>Errorage
(1 revision)
imported>Deantwo
(Added a "oddsizeimage" option, because I am freaking tired of images breaking when using the template.)
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>
{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|oddsizeimage={{{oddsizeimage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}|contents={{{contents}}}}} | {{#if:{{{description|}}}| {{ItemMedium|name={{{name}}}|image={{{image}}}|oddsizeimage={{{oddsizeimage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}}} | {{#if:{{{name|}}}| {{Template:ItemSimple|name={{{name}}}|image={{{image}}}|oddsizeimage={{{oddsizeimage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}}} | <font color='red'>'''The item needs to have the name defined.'''</font> }} }} }}<noinclude>


== How to use ==
== How to use ==
Line 92: Line 92:
[[Category:Templates]]
[[Category:Templates]]


===Odd Size Image ===
<nowiki>{{Item</nowiki>
<nowiki>|bgcolor1 = #cce6ff</nowiki>
<nowiki>|bgcolor2 = #99ccff</nowiki>
<nowiki>|name = Particle Accelerator</nowiki>
<nowiki>|image = ParticleAccelerator.gif</nowiki>
<nowiki>|oddsizeimage = true</nowiki>
<nowiki>|foundin = [[Engine]]</nowiki>
<nowiki>|usedfor = Creating and maintaining a [[File:Singulo_1.gif|link=Singularity]] [[Singularity]]</nowiki>
<nowiki>|strategy = Set a [[Gravitational Singularity Generator]] in front of it and turn it on</nowiki>
<nowiki>|description = See: [[Singularity_Engine#How_To_Set_Up_The_Singularity|How To Set Up The Singularity]]</nowiki>
<nowiki>}}</nowiki>
{{Item
|bgcolor1 = #cce6ff
|bgcolor2 = #99ccff
|name = Particle Accelerator
|image = ParticleAccelerator.gif
|oddsizeimage = true
|foundin = [[Engine]]
|usedfor = Creating and maintaining a [[File:Singulo_1.gif|link=Singularity]] [[Singularity]]
|strategy = Set a [[Gravitational Singularity Generator]] in front of it and turn it on
|description = See: [[Singularity_Engine#How_To_Set_Up_The_Singularity|How To Set Up The Singularity]]
}}


</noinclude>
</noinclude>

Revision as of 22:22, 25 January 2014

The item needs to have the name defined.

How to use

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

With no parameters

 {{Item}}

The item needs to have the name defined.

With minimum parameters

The bare minimum is the name parameter.

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


Redtoolbox.png
Test Item
Test Item

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.
 }}


Redtoolbox.png
Emergency Toolbox
Found in: emergency lockers and storage areas
Used for: 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.
 }}


Redtoolbox.png
Emergency Toolbox
Found in: emergency lockers and storage areas
Used for: 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 Description
Screwdriver tool.png Wrench.png Welder.png
Crowbar.png Analyzer.png Wirecutters.png
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.

Odd Size Image

{{Item
|bgcolor1 = #cce6ff
|bgcolor2 = #99ccff
|name = Particle Accelerator
|image = ParticleAccelerator.gif
|oddsizeimage = true
|foundin = [[Engine]]
|usedfor = Creating and maintaining a [[File:Singulo_1.gif|link=Singularity]] [[Singularity]]
|strategy = Set a [[Gravitational Singularity Generator]] in front of it and turn it on
|description = See: [[Singularity_Engine#How_To_Set_Up_The_Singularity|How To Set Up The Singularity]]
}}


ParticleAccelerator.gif
Particle Accelerator
Found in: Engine
Used for: Creating and maintaining a Singulo 1.gif Singularity
Strategy: Set a Gravitational Singularity Generator in front of it and turn it on
Description
See: How To Set Up The Singularity