Template:Item

From
Jump to navigation Jump to search

{{#if:|

[[File:{{{image}}}|50px]]
{{{name}}}
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Contents Description
{{{contents}}} {{{description}}}

| {{#if:|

[[File:{{{image}}}|50px]]
{{{name}}}
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Description
{{{description}}}|No description}}

| {{#if:|

{{#ifexist: File:{{{image}}}| [[File:{{{image}}}|50px]]|no image}}
{{{name}}}

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

{{#if:|

[[File:{{{image}}}|50px]]
{{{name}}}
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Contents Description
{{{contents}}} {{{description}}}

| {{#if:|

[[File:{{{image}}}|50px]]
{{{name}}}
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Description
{{{description}}}|No description}}

| {{#if:|

{{#ifexist: File:{{{image}}}| [[File:{{{image}}}|50px]]|no image}}
{{{name}}}

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

{{#if:|

50px
Test Item
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Contents Description
{{{contents}}} {{{description}}}

| {{#if:|

50px
Test Item
Found in: {{{foundin}}}
Used for: {{{usedfor}}}
Strategy: {{{strategy}}}
Description
{{{description}}}|No description}}

| {{#if:Test Item|

{{#ifexist: File:Redtoolbox.png| 50px|no image}}
Test Item

| The item needs to have the name defined. }} }} }}

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

{{#if:|

50px
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: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.|

50px
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:Emergency Toolbox|

{{#ifexist: File:Redtoolbox.png| 50px|no image}}
Emergency Toolbox

| The item needs to have the name defined. }} }} }}

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

{{#if:Screwdriver tool.png Wrench.png Welderon.gif
Crowbar.png File:Analyzer.png Wirecutters.png|

50px
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 Welderon.gif
Crowbar.png File: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.

| {{#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.|

50px
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:Emergency Toolbox|

{{#ifexist: File:Redtoolbox.png| 50px|no image}}
Emergency Toolbox

| The item needs to have the name defined. }} }} }}