|
|
Line 1: |
Line 1: |
| <includeonly>{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}|contents={{{contents}}}}} | {{#if:{{{description|}}}| {{ItemMedium|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}}} | {{#if:{{{usedfor|}}}| {{ItemUsedFor|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|description={{{description}}}}} | {{#if:{{{name|}}}| {{Template:ItemSimple|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}}} | <font color='red'>'''The item needs to have the name defined.'''</font> }} }} }} }}</includeonly><noinclude> | | <includeonly>{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}|contents={{{contents}}}}} | {{#if:{{{strategy|}}}| {{ItemMedium|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}}} | {{#if:{{{usedfor|}}}| {{ItemUsedFor|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|description={{{description}}}}} | {{#if:{{{name|}}}| {{Template:ItemSimple|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}}} | <font color='red'>'''The item needs to have the name defined.'''</font> }} }} }} }}</includeonly><noinclude> |
|
| |
|
| = How to use = | | = How to use = |
Line 75: |
Line 75: |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
|
| |
|
| {{ItemUsedFor | | {{Item |
| |name=Test Item | | |name=Test Item |
| |bgcolor1 = #FFEE88 | | |bgcolor1 = #FFEE88 |
How to use[edit]
template intended for lists of objects to clean them up a bit.
With no parameters[edit]
{{Item}}
{{#if:|
{{#if:|{{{image}}}|[[File:{{{image}}}|64px|{{{name}}}]]}} {{{name}}}
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Contents
|
Description
|
{{{contents}}}
|
{{{description}}}
|
|
| {{#if:|
{{#if:|{{{image}}}|[[File:{{{image}}}|64px|{{{name}}}]]}} {{{name}}}
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:|
{{#if:|{{{image}}}|[[File:{{{image}}}|64px|{{{name}}}]]}} {{{name}}}
|
Found in: {{{foundin}}} Used for: {{{usedfor}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:|
{{#if:|{{{image}}}|{{#ifexist: File:{{{image}}}| [[File:{{{image}}}|64px|{{{name}}}]]}}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
With minimum parameters[edit]
The bare minimum is the name parameter.
{{Item
|name=Test Item
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|image = Redtoolbox.png
}}
{{#if:|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Contents
|
Description
|
{{{contents}}}
|
{{{description}}}
|
|
| {{#if:|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: {{{foundin}}} Used for: {{{usedfor}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:Test Item|
{{#if:|Redtoolbox.png|{{#ifexist: File:Redtoolbox.png| }}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
Normal item[edit]
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.
}}
{{#if:|
{{#if:|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
|
{{{contents}}}
|
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.
|
|
| {{#if:It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.|
{{#if:|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
|
{{#if: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.|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.|No description}}
|
|
| {{#if:Contains tools which are useful in emergencies|
{{#if:|Redtoolbox.png|}} Emergency Toolbox
|
Found in: emergency lockers and storage areas Used for: Contains tools which are useful in emergencies
|
Description
|
{{#if: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.|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.|No description}}
|
|
| {{#if:Emergency Toolbox|
{{#if:|Redtoolbox.png|{{#ifexist: File:Redtoolbox.png| }}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
Strategy-less items[edit]
If there is no strategy variable but there are foundin and used for, 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
|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.
}}
{{#if:|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: emergency lockers and storage areas Used for: Contains tools which are useful in emergencies Strategy: {{{strategy}}}
|
Contents
|
Description
|
{{{contents}}}
|
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.
|
|
| {{#if:|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: emergency lockers and storage areas Used for: Contains tools which are useful in emergencies Strategy: {{{strategy}}}
|
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.|No description}}
|
|
| {{#if:Contains tools which are useful in emergencies|
{{#if:|Redtoolbox.png|}} Test Item
|
Found in: emergency lockers and storage areas Used for: Contains tools which are useful in emergencies
|
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.|No description}}
|
|
| {{#if:Test Item|
{{#if:|Redtoolbox.png|{{#ifexist: File:Redtoolbox.png| }}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
Container items[edit]
If the contents variable 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.
|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.
}}
{{#if:
|
| {{#if:It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.|
{{#if:|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
|
{{#if: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.|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.|No description}}
|
|
| {{#if:Contains tools which are useful in emergencies|
{{#if:|Redtoolbox.png|}} Emergency Toolbox
|
Found in: emergency lockers and storage areas Used for: Contains tools which are useful in emergencies
|
Description
|
{{#if: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.|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.|No description}}
|
|
| {{#if:Emergency Toolbox|
{{#if:|Redtoolbox.png|{{#ifexist: File:Redtoolbox.png| }}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
Override Image[edit]
If an image is bigger than 50px they will break not break anymore, since this is a more awesome wiki, but they will look very small, as shown below.
Setting "OverrideImage=true" will disable the default image code so you can add your own.
The default image code is:
[[File:{{{image|{{{name|Unknown}}}.png}}}|px50|{{{name|Item}}}]]
For better understanding see these two examples:
Without setting "OverrideImage":
{{Item
|bgcolor1 = #cce6ff
|bgcolor2 = #99ccff
|name = Particle Accelerator
|image = ParticleAccelerator.gif
}}
{{#if:|
{{#if:|ParticleAccelerator.gif|}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Contents
|
Description
|
{{{contents}}}
|
{{{description}}}
|
|
| {{#if:|
{{#if:|ParticleAccelerator.gif|}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:|
{{#if:|ParticleAccelerator.gif|}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:Particle Accelerator|
{{#if:|ParticleAccelerator.gif|{{#ifexist: File:ParticleAccelerator.gif| }}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}
With setting "OverrideImage":
{{Item
|bgcolor1 = #cce6ff
|bgcolor2 = #99ccff
|name = Particle Accelerator
|image = [[File:ParticleAccelerator.gif|Particle Accelerator]]
|OverrideImage = true
}}
{{#if:|
{{#if:true||[[File:|64px|Particle Accelerator]]}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Contents
|
Description
|
{{{contents}}}
|
{{{description}}}
|
|
| {{#if:|
{{#if:true||[[File:|64px|Particle Accelerator]]}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}} Strategy: {{{strategy}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:|
{{#if:true||[[File:|64px|Particle Accelerator]]}} Particle Accelerator
|
Found in: {{{foundin}}} Used for: {{{usedfor}}}
|
Description
|
{{{description}}}|No description}}
|
|
| {{#if:Particle Accelerator|
{{#if:true||{{#ifexist: File:| [[File:|64px|Particle Accelerator]]}}|no image}}
|
|
|
| The item needs to have the name defined. }} }} }} }}