Difference between revisions of "Template:Item icon"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly><span class="{{#if:{{{large|}}}|medium|small}} item-icon thumb-icon" style="display:inline-block;overflow:hidden;{{#if:{{{large|}}}|width:35px;height:35px|width:20px;height:20px}};vertical-align:middle;"><!--  
<includeonly><span class="{{#if:{{{large|}}}|medium|small}} item-icon thumb-icon" style="display:inline-block;overflow:hidden;{{#if:{{{large|}}}|width:35px;height:35px|width:20px;height:20px}};vertical-align:middle;"><!--  
-->[[{{#if:{{{icon|}}} | File:{{{icon}}} | File:{{#titleparts:{{PAGENAME}}}}.png }}|{{#if:{{{large|}}}|35x35px|20x20px}}|bottom|link={{{1|Item}}}]]</span>&nbsp;<!--
-->[[File:{{{icon|{{{1|Item}}}}}}.png|{{#if:{{{large|}}}|35x35px|20x20px}}|bottom|link={{{1|Item}}}]]</span>&nbsp;<!--
-->[[{{{1|Item}}}|{{{2|{{{1|Item}}}}}}]]</includeonly><noinclude>
-->[[{{{1|Item}}}|{{{2|{{{1|Item}}}}}}]]</includeonly><noinclude>


Line 14: Line 14:
: Item name. Defaults to <tt><nowiki><param 1></nowiki>.png</tt>.
: Item name. Defaults to <tt><nowiki><param 1></nowiki>.png</tt>.
; icon
; icon
: Defines the icon to use. Defaults to <tt><nowiki><pagename></nowiki>.png</tt>.
: Defines the icon to use. Defaults to <tt><nowiki><param 1></nowiki>.png</tt>.
; ''large''
; ''large''
: Put anything for this to make the icon twice as large.
: Put anything for this to make the icon twice as large.

Revision as of 12:22, 13 June 2017


Description

{{item icon|<item name>}}

Displays a link to the item and adds the item icon in front of it.

Parameters

unnamed parameter 1
Item page name. Defaults to "Item".
unnamed parameter 2
Item name. Defaults to <param 1>.png.
icon
Defines the icon to use. Defaults to <param 1>.png.
large
Put anything for this to make the icon twice as large.

Examples