Jump to content

Template:Item: Difference between revisions

From Ishkod Outpost
imported>Nightmare
Created page with "{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|image={{{image}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{stra..."
 
No edit summary
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|}}}
 
| {{ItemStorage
== How to use ==
    |name={{{name}}}
 
    |image={{{image}}}
template intended for lists of objects to clean them up a bit.
    |bgcolor1={{{bgcolor1}}}
 
    |bgcolor2={{{bgcolor2}}}
=== With no parameters ===
    |foundin={{{foundin}}}
 
    |usedfor={{{usedfor}}}
  <nowiki>{{Item}}</nowiki>
    |strategy={{{strategy}}}
 
    |description={{{description}}}
{{Item}}
    |contents={{{contents}}}
 
  }}
=== With minimum parameters ===
| {{#if:{{{description|}}}
 
    | {{ItemMedium
The bare minimum is the name parameter.
      |name={{{name}}}
 
      |image={{{image}}}
  <nowiki>{{Item</nowiki>
      |bgcolor1={{{bgcolor1}}}
  <nowiki>|name=Test Item</nowiki>
      |bgcolor2={{{bgcolor2}}}
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
      |foundin={{{foundin}}}
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
      |usedfor={{{usedfor}}}
  <nowiki>|image = Redtoolbox.png</nowiki>
      |strategy={{{strategy}}}
  <nowiki>}}</nowiki>
      |description={{{description}}}
 
      }}
{{Item
    | {{#if:{{{name|}}}
|name=Test Item
      | {{ItemSimple
|bgcolor1 = #FFEE88
          |name={{{name}}}
|bgcolor2 = #FFDD66
          |image={{{image}}}
|image = Redtoolbox.png
          |bgcolor1={{{bgcolor1}}}
          |bgcolor2={{{bgcolor2}}}
        }}
      | <font color='red'>'''The item needs to have the name defined.'''</font>
      }}
  }}
}}
}}
=== Normal item ===
If the description is set, this template will show.
  <nowiki>{{Item</nowiki>
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
  <nowiki>|name = Emergency Toolbox</nowiki>
  <nowiki>|image = Redtoolbox.png</nowiki>
  <nowiki>|foundin = emergency lockers and storage areas</nowiki>
  <nowiki>|usedfor = Contains tools which are useful in emergencies</nowiki>
  <nowiki>|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.</nowiki>
  <nowiki>|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.</nowiki>
 
  <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
  <nowiki>}}</nowiki>
{{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:
  <nowiki>{{Item</nowiki>
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
  <nowiki>|name = Emergency Toolbox</nowiki>
  <nowiki>|image = Redtoolbox.png</nowiki>
  <nowiki>|foundin = emergency lockers and storage areas</nowiki>
  <nowiki>|usedfor = Contains tools which are useful in emergencies</nowiki>
  <nowiki>|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.</nowiki>
  <nowiki>|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]] </nowiki>
  <nowiki>|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.</nowiki>
 
  <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
  <nowiki>}}</nowiki>
{{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: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.
Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}
[[Category:Templates]]
</noinclude>

Revision as of 16:26, 19 August 2025

The item needs to have the name defined.