Template:Item: Difference between revisions
Jump to navigation
Jump to search
→Override Image: Added a better description.
imported>Deantwo (Just changed the headlines. I am done now I promise!) |
imported>Deantwo (→Override Image: Added a better description.) |
||
Line 93: | Line 93: | ||
==Override Image== | ==Override Image== | ||
If an image is bigger than 50px they will break, setting "OverrideImage=true" will disable the default image code so you can add your own.<br> | |||
The default image code is:<br> | |||
<nowiki>[[File:{{{image|{{{name|Unknown}}}.png}}}|px50|{{{name|Item}}}]]</nowiki> | |||
For better understanding see these two examples: | |||
'''Without setting "OverrideImage":''' | '''Without setting "OverrideImage":''' | ||
Line 104: | Line 106: | ||
<nowiki>|image = ParticleAccelerator.gif</nowiki> | <nowiki>|image = ParticleAccelerator.gif</nowiki> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
{{Item | {{Item | ||
|bgcolor1 = #cce6ff | |bgcolor1 = #cce6ff | ||
Line 119: | Line 120: | ||
<nowiki>|bgcolor2 = #99ccff</nowiki> | <nowiki>|bgcolor2 = #99ccff</nowiki> | ||
<nowiki>|name = Particle Accelerator</nowiki> | <nowiki>|name = Particle Accelerator</nowiki> | ||
<nowiki>|image = [[File:ParticleAccelerator.gif]]</nowiki> | <nowiki>|image = [[File:ParticleAccelerator.gif|Particle Accelerator]]</nowiki> | ||
<nowiki>|OverrideImage = true</nowiki> | <nowiki>|OverrideImage = true</nowiki> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
{{Item | {{Item | ||
|bgcolor1 = #cce6ff | |bgcolor1 = #cce6ff | ||
|bgcolor2 = #99ccff | |bgcolor2 = #99ccff | ||
|name = Particle Accelerator | |name = Particle Accelerator | ||
|image = [[File:ParticleAccelerator.gif]] | |image = [[File:ParticleAccelerator.gif|Particle Accelerator]] | ||
|OverrideImage = true | |OverrideImage = true | ||
}} | }} | ||
</noinclude> | </noinclude> |