Template:Item: Difference between revisions
Jump to navigation
Jump to search
Just changed the headlines. I am done now I promise!
imported>Deantwo (→Override Image: Added a better description.) |
imported>Deantwo (Just changed the headlines. I am done now I promise!) |
||
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:{{{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:{{{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 = | |||
template intended for lists of objects to clean them up a bit. | template intended for lists of objects to clean them up a bit. | ||
== With no parameters == | |||
<nowiki>{{Item}}</nowiki> | <nowiki>{{Item}}</nowiki> | ||
Line 11: | Line 11: | ||
{{Item}} | {{Item}} | ||
== With minimum parameters == | |||
The bare minimum is the name parameter. | The bare minimum is the name parameter. | ||
Line 29: | Line 29: | ||
}} | }} | ||
== Normal item == | |||
If the description is set, this template will show. | If the description is set, this template will show. | ||
Line 59: | Line 59: | ||
}} | }} | ||
== Container items == | |||
If the contents variable is set, this template will thow: | If the contents variable is set, this template will thow: | ||
Line 92: | Line 92: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
==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. | 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. |