Template:IIn: Difference between revisions

From HorizonXI Wiki
No edit summary
No edit summary
Tag: Manual revert
Line 1: Line 1:
<onlyinclude><includeonly>[[{{{1|}}}]]{{#ifeq: {{PAGENAMEE:{{{1}}}}} | {{PAGENAMEE}} | '''{{{1}}}''' | {{#switch: {{lc:{{{2|}}}}}
<onlyinclude><includeonly>{{#ifeq: {{PAGENAMEE:{{{1}}}}} | {{PAGENAMEE}} | '''{{{1}}}''' | {{#switch: {{lc:{{{2|}}}}}
| noicon = <span style="display:inline-block;" class="advanced-tooltip">[[{{{1}}}]]<span class="tooltip-contents hidden">{{#dpl: title={{{1}}} | include = {Item Image}:1}}</span></span>
| noicon = <span style="display:inline-block;" class="advanced-tooltip">[[{{{1}}}]]<span class="tooltip-contents hidden">{{#dpl: title={{{1}}} | include = {Item Image}:1}}</span></span>
| notext = {{#ifeq: {{PAGENAMEE:{{{1}}}}} | {{PAGENAMEE}} | | [[File:{{5Digit|{{#dpl: allowcachedresults = false | title = {{{1}}} | include = {Item Statistics}:icon id}}}}.png|16px|text-bottom|link={{{1}}}]]}}
| notext = {{#ifeq: {{PAGENAMEE:{{{1}}}}} | {{PAGENAMEE}} | | [[File:{{5Digit|{{#dpl: allowcachedresults = false | title = {{{1}}} | include = {Item Statistics}:icon id}}}}.png|16px|text-bottom|link={{{1}}}]]}}

Revision as of 20:10, 21 October 2023

Usage

{{IIn|<item name>}}

Short for "Icon Inline". Displays a link to an item with a 16px icon in front of it and a tooltip of the item's in-game image. See Template:I for the 32px version.

Examples

Code Result
{{IIn|Afflictors}}
5D plz.png Afflictors
{{IIn|Afflictors|notags}}
5D plz.png Afflictors
{{IIn|Potion}}
04112.png Potion
{{IIn|Potion Tmp}}
04112.png Potion Temporary
{{IIn|Evolith}}
File:02783.png Evolith Exclusive
{{IIn|Evolith (Resist Virus +1)}}
File:02783.png Evolith (Resist Virus +1) Exclusive