Difference between revisions of "User:Cassiel Seraphim/Sandbox3"
Line 111: | Line 111: | ||
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 | + | 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 wiki-links, but will simply strip any link-coding or formatting from them and presents the unmodified plain text. |
+ | |||
===== Examples ===== | ===== Examples ===== | ||
* <nowiki>{{icon|point}}</nowiki> → {{User:Cassiel_seraphim/Sandbox3|point}} ''(it'll use the default size and no mouse-over tooltip)'' | * <nowiki>{{icon|point}}</nowiki> → {{User:Cassiel_seraphim/Sandbox3|point}} ''(it'll use the default size and no mouse-over tooltip)'' |
Revision as of 11:02, 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 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 |
Resists
Name | Syntax | Icon | Size |
---|---|---|---|
Electromagnetic | {{User:Cassiel_seraphim/Sandbox3|em resist}} | User:Cassiel seraphim/Sandbox3 | 32px |
Thermal | {{User:Cassiel_seraphim/Sandbox3|th resist}} | User:Cassiel seraphim/Sandbox3 | 32px |
Explosive | {{User:Cassiel_seraphim/Sandbox3|ex resist}} | User:Cassiel seraphim/Sandbox3 | 32px |
Kinetic | {{User:Cassiel_seraphim/Sandbox3|ki resist}} | User:Cassiel seraphim/Sandbox3 | 32px |