Difference between revisions of "Template:Icon/doc"

From EVE University Wiki
Jump to: navigation, search
m
m (Templates that deal with icons are images and should be categorized as such)
Line 19: Line 19:
 
* <code><nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki></code> &rarr; {{icon|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)''
 
* <code><nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki></code> &rarr; {{icon|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)''
  
<includeonly>[[Category:Maintenance templates]]</includeonly>
+
<includeonly>[[Category:Image templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 14:44, 19 April 2022

Main article: Template:Icon

Syntax

The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be.

{{ icon | type | size | hint }}

Parameters

type
This determines which icon to show and it will default back to the webifier icon if no parameters are given. Remember to use lower-case letters.
size
This determines the size of the image, in pure numbers. It defaults to 32 (the px part of the size is omitted from the parameter as it is included in the template).
hint
This is the mouse-over hint. Add this if you want custom text to be displayed when you hover over the icon. This parameter will accept codes like bold or italic or wiki-links, but will simply strip any link-coding or formatting from them and presents the unmodified plain text.

Examples

  • {{icon|point}}Icon warp disruptor i.png (it will use the default size and no mouse-over tooltip)
  • {{icon|||Stay put with a web!}}Stay put with a web! (default icon and size was used since no first argument was given)
  • {{icon|warp scrambler|16|No MWD for you!}}No MWD for you! (smaller icon, could be used inside a paragraph without breaking the line height)