Difference between revisions of "Template:Item icon"
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;"><!-- | ||
-->[[File:{{{icon|{{{1|Item}}}}}}.png|{{#if:{{{large|}}}|35x35px|20x20px}}|bottom|link={{{1|Item}}}]]</span> <!-- | -->[[File:{{{icon|{{{1|Item}}}}}}.png|{{#if:{{{large|}}}|35x35px|20x20px}}|bottom|link={{{link|{{{1|Item}}}}}}]]</span> <!-- | ||
-->[[{{{1|Item}}}|{{{2|{{{1|Item}}}}}}]]</includeonly><noinclude> | -->[[{{{1|Item}}}|{{{2|{{{1|Item}}}}}}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
Line 11: | Line 11: | ||
: Item page name. Defaults to "Item". | : Item page name. Defaults to "Item". | ||
; ''unnamed parameter'' 2 | ; ''unnamed parameter'' 2 | ||
: Item name. Defaults to <tt><nowiki><param 1></nowiki> | : Item name. Defaults to <tt><nowiki><param 1></nowiki></tt>. | ||
; icon | ; icon | ||
: Defines the icon to use. Defaults to <tt><nowiki><param 1></nowiki>.png</tt>. | : Defines the icon to use. Defaults to <tt><nowiki><param 1></nowiki>.png</tt>. | ||
; link | |||
: Item link. Defaults to <tt><nowiki><param 1></nowiki></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. | ||
Line 21: | Line 23: | ||
* {{item icon|Allagan Tomestone of Poetics|Gil}} is produced from <code><nowiki>{{item icon|Allagan Tomestone of Poetics|Gil}}</nowiki></code> | * {{item icon|Allagan Tomestone of Poetics|Gil}} is produced from <code><nowiki>{{item icon|Allagan Tomestone of Poetics|Gil}}</nowiki></code> | ||
* {{item icon|Allagan Tomestone of Poetics|large=y}} is produced from <code><nowiki>{{item icon|Allagan Tomestone of Poetics|large=y}}</nowiki></code> | * {{item icon|Allagan Tomestone of Poetics|large=y}} is produced from <code><nowiki>{{item icon|Allagan Tomestone of Poetics|large=y}}</nowiki></code> | ||
* {{item icon|Allagan Tomestone of Poetics|link=Gil}} is produced from <code><nowiki>{{item icon|Allagan Tomestone of Poetics|link=Gil}}</nowiki></code> | |||
* {{item icon|Nonexistent page|Example}} is produced from <code><nowiki>{{item icon|Nonexistent page|Example}}</nowiki></code> | * {{item icon|Nonexistent page|Example}} is produced from <code><nowiki>{{item icon|Nonexistent page|Example}}</nowiki></code> | ||
[[Category:Icon templates|Item icon]]</noinclude> | [[Category:Icon templates|Item icon]]</noinclude> |
Revision as of 12:25, 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>.
- icon
- Defines the icon to use. Defaults to <param 1>.png.
- link
- Item link. Defaults to <param 1>.
- large
- Put anything for this to make the icon twice as large.
Examples
- Allagan Tomestone of Poetics is produced from
{{item icon|Allagan Tomestone of Poetics}}
- Gil is produced from
{{item icon|Allagan Tomestone of Poetics|Gil}}
- Allagan Tomestone of Poetics is produced from
{{item icon|Allagan Tomestone of Poetics|large=y}}
- Allagan Tomestone of Poetics is produced from
{{item icon|Allagan Tomestone of Poetics|link=Gil}}
- Example is produced from
{{item icon|Nonexistent page|Example}}