Difference between revisions of "Template:Itembox"
Bomb Bloke (Talk | contribs) |
m (Testing. Being annoyed.) |
||
Line 1: | Line 1: | ||
+ | <div style="float:right; margin:1px 1px 1em 1em;"> | ||
+ | |||
+ | <!-- Backpack --> | ||
+ | <div style="text-align:center; z-index:1;">[[Image:InfoboxBag.png]]</div> | ||
+ | |||
+ | <!-- Item Image --> | ||
+ | {{#if: {{{image|}}} | ||
+ | | <div style="margin-top:{{#expr: -180 + {{#expr: 83 - {{#expr: {{{imageheight}}} / 2}} }} }}px; text-align:center; z-index:2;">[[Image:{{{image}}}]]</div> | ||
+ | | <div style="margin-top:-122px; text-align:center; z-index:2;">[[Image:Image_Needed.png]]</div> | ||
+ | [[Category:Item infoboxes without image defined]] | ||
+ | }} | ||
+ | |||
+ | <!-- Cursor --> | ||
+ | <div style="margin-left:25px; text-align:center; z-index:2;">[[Image:Cursor_Standard.png]]</div> | ||
+ | |||
+ | <!-- Tooltip --> | ||
+ | <div id="tooltip"> | ||
+ | <div id="itemname">{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</div> | ||
+ | {{#if:{{{usesremaining|}}}|{{#ifexpr:{{{usesremaining}}}>=1|<div>{{ColoredLink|Uses Remaining|color=FFFFFF}}: {{{usesremaining}}}</div>}}}} | ||
+ | {{#if:{{{blessed|}}}|{{#switch:{{{blessed}}}|cursed|CURSED|Cursed=<div>{{ColoredLink|Cursed|color=FFFFFF}}</div>|<div>{{ColoredLink|Blessed|color=FFFFFF}}</div>}}}} | ||
+ | {{#if:{{{weight|}}}|{{#ifexpr:{{{weight}}}>=1|<div>{{ColoredLink|Weight|color=FFFFFF}}: {{{weight}}} {{ColoredLink|Stones|color=FFFFFF}}</div>}}}} | ||
+ | {{#if:{{{elvesonly|}}}|<div>{{ColoredLink|Elves Only|color=FFFFFF}}</div>}} | ||
+ | {{#if:{{{ammo|}}}|<div>{{ColoredLink|Ammo|color=FFFFFF}}: 0/500 {{ColoredLink|Arrows|color=FFFFFF}}</div>}} | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
<includeonly>{| style="float:right; height:auto; margin:1px 1px 1em 1em; text-align:center; width:auto;" | <includeonly>{| style="float:right; height:auto; margin:1px 1px 1em 1em; text-align:center; width:auto;" | ||
Line 300: | Line 326: | ||
}} | }} | ||
|} | |} | ||
− | |}</includeonly><noinclude> | + | |}</includeonly><!--<noinclude> |
{{tocright}} | {{tocright}} | ||
Line 487: | Line 513: | ||
[[Category:UO_Utility_Templates|{{PAGENAME}}]] | [[Category:UO_Utility_Templates|{{PAGENAME}}]] | ||
− | </noinclude> | + | </noinclude>--> |
Revision as of 15:01, 19 October 2009