Difference between revisions of "Template:Icon"
From EVE University Wiki
(An attempt to make a general template for all icons.) |
(Added CPU and powergrid, some style changes to documentation) |
||
Line 101: | Line 101: | ||
| kinetic resist | | kinetic resist | ||
| kinetic resists = icon_resist_kin.png | | kinetic resists = icon_resist_kin.png | ||
+ | | cpu = icon_cpu.png | ||
+ | | pg | ||
+ | | powergrid | ||
+ | | power grid = icon_powergrid.png | ||
| #default = {{{1}}} | | #default = {{{1}}} | ||
}}|{{#switch: {{{2|}}} | = 32 | #default = {{{2}}}}}px|{{#switch: {{{3|}}} | = | #default = {{{3}}}}}]]<noinclude> | }}|{{#switch: {{{2|}}} | = 32 | #default = {{{2}}}}}px|{{#switch: {{{3|}}} | = | #default = {{{3}}}}}]]<noinclude> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | The | + | == Syntax == |
+ | :The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be. | ||
+ | <pre><nowiki>{{icon | type | size | hint}}</nowiki></pre> | ||
+ | === 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. | |
− | |||
− | |||
− | = List of icons = | + | === Examples === |
+ | * <code><nowiki>{{icon|point}}</nowiki></code> → {{icon|point}} ''(it will use the default size and no mouse-over tooltip)'' | ||
+ | * <code><nowiki>{{icon|||Stay put with a web!</nowiki></code> → {{icon|||Stay put with a web!}} ''(default icon and size was used since no first argument was given)'' | ||
+ | * <code><nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki></code> → {{icon|warp scrambler|16|No MWD for you!}} ''(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. | Below is a list of icons sorted by type. | ||
− | == Electronic Warfare == | + | ==== Electronic Warfare ==== |
{| class="wikitable" style="font-size:90%;" | {| class="wikitable" style="font-size:90%;" | ||
|- | |- | ||
Line 158: | Line 166: | ||
| 64px | | 64px | ||
|} | |} | ||
− | == Assistance == | + | ==== Assistance ==== |
{| class="wikitable" style="font-size:90%;" | {| class="wikitable" style="font-size:90%;" | ||
|- | |- | ||
Line 176: | Line 184: | ||
| 64px | | 64px | ||
|} | |} | ||
− | == Ships == | + | ==== Ships ==== |
{| class="wikitable" style="font-size:90%;" | {| class="wikitable" style="font-size:90%;" | ||
|- | |- | ||
Line 199: | Line 207: | ||
| 16px | | 16px | ||
|} | |} | ||
− | == Resists == | + | ==== Resists ==== |
{| class="wikitable" style="font-size:90%;" | {| class="wikitable" style="font-size:90%;" | ||
|- | |- | ||
Line 225: | Line 233: | ||
| style="background:#333333;" | <nowiki>{{icon|ki resist}}</nowiki> | | style="background:#333333;" | <nowiki>{{icon|ki resist}}</nowiki> | ||
| {{icon|ki resist}} | | {{icon|ki resist}} | ||
+ | | 32px | ||
+ | |} | ||
+ | ==== Fitting ==== | ||
+ | {| class="wikitable" style="font-size:90%;" | ||
+ | |- | ||
+ | ! style="background:#222222;" | Name | ||
+ | ! style="background:#222222;" | Syntax | ||
+ | ! style="background:#222222;" | Icon | ||
+ | ! style="background:#222222;" | Size | ||
+ | |- | ||
+ | | Powergrid | ||
+ | | style="background:#333333;" | <nowiki>{{icon|powergrid}}</nowiki> | ||
+ | | {{icon|powergrid}} | ||
+ | | 32px | ||
+ | |- | ||
+ | | CPU | ||
+ | | style="background:#333333;" | <nowiki>{{icon|cpu}}</nowiki> | ||
+ | | {{icon|cpu}} | ||
| 32px | | 32px | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 15:42, 27 November 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 | 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}}
→ (it will use the default size and no mouse-over tooltip){{icon|||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!}}
→ (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 | {{icon|warp scrambler}} | 64px | |
Warp disruptor | {{icon|warp disruptor}} | 64px | |
Stasis webifier | {{icon|stasis webifier}} | 64px | |
ECM / Jamming | {{icon|ecm}} | File:Icon multispectral ecm i.png | 64px |
Remote ECM burst | {{icon|remote ecm burst}} | 64px | |
Target painter | {{icon|target painter}} | 64px |
Assistance
Name | Syntax | Icon | Size |
---|---|---|---|
Remote armor repair | {{icon|remote armor repair}} | 64px | |
Shield transporter | {{icon|shield transporter}} | 64px |
Ships
Name | Syntax | Icon | Size |
---|---|---|---|
Small target | {{icon|small target|16}} | 16px | |
Medium target | {{icon|medium target|16}} | 16px | |
Large target | {{icon|large target|16}} | 16px |
Resists
Name | Syntax | Icon | Size |
---|---|---|---|
Electromagnetic | {{icon|em resist}} | 32px | |
Thermal | {{icon|th resist}} | 32px | |
Explosive | {{icon|ex resist}} | 32px | |
Kinetic | {{icon|ki resist}} | 32px |
Fitting
Name | Syntax | Icon | Size |
---|---|---|---|
Powergrid | {{icon|powergrid}} | 32px | |
CPU | {{icon|cpu}} | 32px |