Difference between revisions of "User:Cassiel Seraphim/Sandbox3"
Line 94: | Line 94: | ||
The ''second parameter'' is 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). | The ''second parameter'' is 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). | ||
− | The ''third parameter'' 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 [[Special:random|random page]] wiki-links, but will simply strip | + | The ''third parameter'' 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 [[Special:random|random page]] wiki-links, but will simply strip any link-coding or formatting from them and presents the unmodified plain text. |
+ | ===== Examples ===== | ||
+ | * <nowiki>{{icon|point}}</nowiki> → {{User:Cassiel_seraphim/Sandbox3|point}} ''(it'll use the default size and no mouse-over tooltip)'' | ||
+ | * <nowiki>{{icon|||Stay put with a web!</nowiki> → {{User:Cassiel_seraphim/Sandbox3|||Stay put with a web!}} ''(default icon and size was used since no first argument was given)'' | ||
+ | * <nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki> → {{User:Cassiel_seraphim/Sandbox3|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)'' | ||
+ | |||
= List of icons = | = List of icons = | ||
Below is a list of icons sorted by type. | Below is a list of icons sorted by type. |
Revision as of 10:48, 3 April 2013
Syntax
The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be.
- {{icon|parameter1|parameter2|parameter3}}
Parameters
The first parameter is which icon to show and it will default back to the webifier icon if no parameters are given. Remember to use lower-case letters.
The second parameter is 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).
The third parameter 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 random page wiki-links, but will simply strip any link-coding or formatting from them and presents the unmodified plain text.
Examples
- {{icon|point}} → User:Cassiel seraphim/Sandbox3 (it'll use the default size and no mouse-over tooltip)
- {{icon|||Stay put with a web! → User:Cassiel seraphim/Sandbox3 (default icon and size was used since no first argument was given)
- {{icon|warp scrambler|16|No MWD for you!}} → User:Cassiel seraphim/Sandbox3 (smaller icon, could be used inside a paragraph without breaking the line height)
List of icons
Below is a list of icons sorted by type.
Electronic Warfare
Name | Syntax | Icon | Size |
---|---|---|---|
Warp scrambler | {{User:Cassiel_seraphim/Sandbox3|warp scrambler}} | User:Cassiel seraphim/Sandbox3 | 64px |
Warp disruptor | {{User:Cassiel_seraphim/Sandbox3|warp disruptor}} | User:Cassiel seraphim/Sandbox3 | 64px |
Stasis webifier | {{User:Cassiel_seraphim/Sandbox3|stasis webifier}} | User:Cassiel seraphim/Sandbox3 | 64px |
ECM / Jamming | {{User:Cassiel_seraphim/Sandbox3|ecm}} | User:Cassiel seraphim/Sandbox3 | 64px |
Remote ECM burst | {{User:Cassiel_seraphim/Sandbox3|remote ecm burst}} | User:Cassiel seraphim/Sandbox3 | 64px |
Target painter | {{User:Cassiel_seraphim/Sandbox3|target painter}} | User:Cassiel seraphim/Sandbox3 | 64px |
Assistance
Name | Syntax | Icon | Size |
---|---|---|---|
Remote armor repair | {{User:Cassiel_seraphim/Sandbox3|remote armor repair}} | User:Cassiel seraphim/Sandbox3 | 64px |
Shield transporter | {{User:Cassiel_seraphim/Sandbox3|shield transporter}} | User:Cassiel seraphim/Sandbox3 | 64px |
Ships
Name | Syntax | Icon | Size |
---|---|---|---|
Small target | {{User:Cassiel_seraphim/Sandbox3|small target|16}} | User:Cassiel seraphim/Sandbox3 | 16px |
Medium target | {{User:Cassiel_seraphim/Sandbox3|medium target|16}} | User:Cassiel seraphim/Sandbox3 | 16px |
Large target | {{User:Cassiel_seraphim/Sandbox3|large target|16}} | User:Cassiel seraphim/Sandbox3 | 16px |