Template:BorderItem

From A KoL Wiki
{| cellspacing="0" cellpadding="0"

|- |<div style="position:relative;"> <div id="item" style="position: absolute; top: 5px; left: 5px; z-index: 5;">{{#if:{{{1|}}}|[[File:{{Data|{{{1}}}|image|nopic2.gif}}|link={{{1}}}]]|[[File:confused.gif|link=]]}}</div> <div id="skillframe" style="position: absolute; top: 0; left: 0; z-index: 3;">[[File:Skillframe.gif|link=]]</div> </div> |-

|}

This template puts a clickable item image inside a border. The template requires only the name of the item's page - the item's actual name (if it contains special characters) and image are fetched from the item's data page. Compare with Template:InlineItem.

Also works with clan trophies, effects, familiars, and skills.

Usage

{{BorderItem|lime}}

And with no parameters:

{{BorderItem}}


To be used as an alternative to InlineItem and StackItem.