Template:Item: Difference between revisions

Jump to navigation Jump to search
46 bytes added ,  14:24, 14 April 2014
"oddsizeimage" renamed to "OverrideImage" and now simply ignores lets you make your own image/file code. See: Template:Item#Override Image
imported>Deantwo
(→‎Odd Size Image: Added more information and an example without.)
imported>Deantwo
("oddsizeimage" renamed to "OverrideImage" and now simply ignores lets you make your own image/file code. See: Template:Item#Override Image)
Line 1: Line 1:
{{#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>
<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:{{{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 92: Line 92:
[[Category:Templates]]
[[Category:Templates]]


===Odd Size Image ===
===Override Image===


If an image is bigger than 50px they will break, setting "oddsizeimage=true" will override this.
If an image is bigger than 50px they will break, setting "OverrideImage=true" will override this.


'''Without setting "oddsizeimage":'''
'''Without setting "OverrideImage":'''
  <nowiki>{{Item</nowiki>
  <nowiki>{{Item</nowiki>
  <nowiki>|bgcolor1 = #cce6ff</nowiki>
  <nowiki>|bgcolor1 = #cce6ff</nowiki>
Line 113: Line 113:




'''With setting "oddsizeimage":'''
'''With setting "OverrideImage":'''
  <nowiki>{{Item</nowiki>
  <nowiki>{{Item</nowiki>
  <nowiki>|bgcolor1 = #cce6ff</nowiki>
  <nowiki>|bgcolor1 = #cce6ff</nowiki>
  <nowiki>|bgcolor2 = #99ccff</nowiki>
  <nowiki>|bgcolor2 = #99ccff</nowiki>
  <nowiki>|name = Particle Accelerator</nowiki>
  <nowiki>|name = Particle Accelerator</nowiki>
  <nowiki>|image = ParticleAccelerator.gif</nowiki>
  <nowiki>|image = [[File:ParticleAccelerator.gif]]</nowiki>
  <nowiki>|oddsizeimage = true</nowiki>
  <nowiki>|OverrideImage = true</nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


Line 127: Line 127:
|name = Particle Accelerator
|name = Particle Accelerator
|image = ParticleAccelerator.gif
|image = ParticleAccelerator.gif
|oddsizeimage = true
|OverrideImage = true
}}
}}


</noinclude>
</noinclude>
Anonymous user

Navigation menu