Template:InlineItem
From TheKolWiki
[edit]
{{InlineItem}}
{{#if:{{{key|}}}|<span style="display:none;">{{#ifeq:{{{key}}}|name|{{Data|{{{1|}}}|name|{{{1}}}}}|{{{key}}}}}</span>}}{{#if:{{{1|}}}|[[File:{{Data|{{{1}}}|image|nopic2.gif}}|link={{{1}}}]] [[{{{1}}}|{{{2|{{Data|{{{1}}}|name|{{{1}}}(?)}}}}}]]|[[File:confused.gif|link=]] something...}}
This template puts a clickable item image next to a link to that item, for use in running text or simple lists. 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:StackItem.
Also works with clan trophies, effects, familiars, and skills.
Usage
{{InlineItem|lime}}
{{InlineItem|lime|ultra lime}}
{{InlineItem}}
something...
Notes
- You can also specify
key=k
to include an invisible span beforehand containing textk
, to act as a sort key when this is used in tables. The literal formkey=name
will use the item's name from its data page as the key.