Difference between revisions of "Template:Icon"

From EVE University Wiki
Jump to: navigation, search
m
m (typo fix)
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>[[image:{{#switch: {{{1|}}}
<div style="float:right; margin-left:1em; margin-bottom:1em;">__TOC__</div>
 
</noinclude>[[image:{{#switch: {{{1|}}}
 
 
<!--  
 
<!--  
  
Line 13: Line 11:
  
 
  | remote tracking computer | remote tracking link | tracking link | rtc | rtl | tl = Icon_remote_tracking_computer_i.png
 
  | remote tracking computer | remote tracking link | tracking link | rtc | rtl | tl = Icon_remote_tracking_computer_i.png
| remote sensor booster | remote sebo | rsb = Icon_remote_sensor_booster_i.png
 
 
  | remote eccm | eccm projector | remote eccm projector = Icon eccm projector i.png
 
  | remote eccm | eccm projector | remote eccm projector = Icon eccm projector i.png
 
  | wl | warfare | warfare link | warfare links = Warfare-links.png
 
  | wl | warfare | warfare link | warfare links = Warfare-links.png
Line 41: Line 38:
  
 
-->
 
-->
<!-- Brackets for normal ships -->
+
<!-- Brackets for playher ships -->
 
| br capsule | bracket capsule = icon_bracket_capsule.png
 
| br capsule | bracket capsule = icon_bracket_capsule.png
 
| br shuttle | bracket shuttle = icon_bracket_shuttle.png
 
| br shuttle | bracket shuttle = icon_bracket_shuttle.png
Line 50: Line 47:
 
| br battlecruiser | bracket battlecruiser = icon_bracket_battlecruiser.png
 
| br battlecruiser | bracket battlecruiser = icon_bracket_battlecruiser.png
 
| br battleship | bracket battleship = icon_bracket_battleship.png
 
| br battleship | bracket battleship = icon_bracket_battleship.png
| br capital | bracket capital = icon_bracket_capital.png
+
| br carrier = icon_bracket_carrier.png
| br supercapital | bracket supercapital = icon_bracket_supercapital.png
+
| br dreadnought | br dread = icon_bracket_dreadnought.png
 +
| br supercarrier = Icon_bracket_supercarrier.png
 
| br titan | bracket titan = icon_bracket_titan.png
 
| br titan | bracket titan = icon_bracket_titan.png
 
<!-- Brackets for industrial ships -->
 
<!-- Brackets for industrial ships -->
 
| br mining frigate | bracket mining frigate = icon_bracket_mining_frigate.png
 
| br mining frigate | bracket mining frigate = icon_bracket_mining_frigate.png
 +
| br mining barge| bracket mining barge= Icon_bracket_mining_barge.png
 
| br industrial | bracket industrial = icon_bracket_industrial.png
 
| br industrial | bracket industrial = icon_bracket_industrial.png
 
| br industrial command | bracket industrial ommand = icon_bracket_industrial_command_ship.png
 
| br industrial command | bracket industrial ommand = icon_bracket_industrial_command_ship.png
 
| br industrial capital | bracket industrial capital = icon_bracket_industrial_capital.png
 
| br industrial capital | bracket industrial capital = icon_bracket_industrial_capital.png
<!-- Brackets for sentry towers. -->
+
<!-- Brackets for sentry towers/drones/fighters -->
| br sentry | br sentry tower | br sentry gun = icon_target_tower.png
+
| br sentry | br sentry tower | br sentry gun = icon_bracket_tower.png
<!-- Red brackets for normal ships -->
+
| br drone| bracket drone = icon_bracket_drone.png
 +
| br sentry drone| bracket sentry drone = icon_bracket_sentry_drone.png
 +
| br fighter| bracket fighter = icon_bracket_fighter.png
 +
 
 +
<!-- white (npc) brackets -->
 +
| white capsule = icon_white_capsule.png
 +
| white shuttle = icon_white_shuttle.png
 +
| white rookie = icon_white_rookie.png
 +
| white frigate = icon_white_frigate.png
 +
| white destroyer = icon_white_destroyer.png
 +
| white cruiser = icon_white_cruiser.png
 +
| white battlecruiser = icon_white_battlecruiser.png
 +
| white battleship = icon_white_battleship.png
 +
| white carrier = icon_white_carrier.png
 +
| white dreadnought | br dread = icon_white_dreadnought.png
 +
| white supercarrier = icon_white_supercarrier.png
 +
| white titan = icon_white_titan.png
 +
<!-- Brackets for industrial ships -->
 +
| white mining frigate = icon_white_mining_frigate.png
 +
| white mining barge| bracket mining barge= icon_white_mining_barge.png
 +
| white industrial = icon_white_industrial.png
 +
| white industrial command = icon_white_industrial_command_ship.png
 +
| white industrial capital = icon_white_industrial_capital.png
 +
<!-- Brackets for sentry towers/drones/fighters -->
 +
| white sentry  = icon_bracket_tower.png
 +
| white drone = icon_bracket_drone.png
 +
| white sentry drone = icon_bracket_sentry_drone.png
 +
| white fighter = icon_bracket_fighter.png
 +
 
 +
<!-- Red npc brackets -->
 
| red capsule = icon_red_capsule.png
 
| red capsule = icon_red_capsule.png
 
| red shuttle = icon_red_shuttle.png
 
| red shuttle = icon_red_shuttle.png
Line 69: Line 97:
 
| red battlecruiser = icon_red_battlecruiser.png
 
| red battlecruiser = icon_red_battlecruiser.png
 
| red battleship = icon_red_battleship.png
 
| red battleship = icon_red_battleship.png
| red capital = icon_red_capital.png
+
| red carrier = icon_red_carrier.png
| red supercapital = icon_red_supercapital.png
+
| red dreadnought | br dread = icon_red_dreadnought.png
 +
| red supercarrier = icon_red_supercarrier.png
 
| red titan = icon_red_titan.png
 
| red titan = icon_red_titan.png
<!-- Red brackets for industrial ships -->
+
<!-- Brackets for industrial ships -->
 
| red mining frigate = icon_red_mining_frigate.png
 
| red mining frigate = icon_red_mining_frigate.png
 +
| red mining barge| bracket mining barge= icon_red_mining_barge.png
 
| red industrial = icon_red_industrial.png
 
| red industrial = icon_red_industrial.png
 
| red industrial command = icon_red_industrial_command_ship.png
 
| red industrial command = icon_red_industrial_command_ship.png
 
| red industrial capital = icon_red_industrial_capital.png
 
| red industrial capital = icon_red_industrial_capital.png
<!-- Red brackets for sentry towers. -->
+
<!-- Brackets for sentry towers/drones/fighters -->
| red sentry | red sentry tower | red sentry gun = icon_target_tower.png
+
| red sentry = icon_red_tower.png
<!-- Blue brackets for normal ships -->
+
| red drone = icon_red_drone.png
 +
| red sentry drone = icon_red_sentry_drone.png
 +
| red fighter = icon_red_fighter.png
 +
 
 +
<!-- blue npc brackets -->
 
| blue capsule = icon_blue_capsule.png
 
| blue capsule = icon_blue_capsule.png
 
| blue shuttle = icon_blue_shuttle.png
 
| blue shuttle = icon_blue_shuttle.png
Line 88: Line 122:
 
| blue battlecruiser = icon_blue_battlecruiser.png
 
| blue battlecruiser = icon_blue_battlecruiser.png
 
| blue battleship = icon_blue_battleship.png
 
| blue battleship = icon_blue_battleship.png
| blue capital = icon_blue_capital.png
+
| blue carrier = icon_blue_carrier.png
| blue supercapital = icon_blue_supercapital.png
+
| blue dreadnought | br dread = icon_blue_dreadnought.png
 +
| blue supercarrier = icon_blue_supercarrier.png
 
| blue titan = icon_blue_titan.png
 
| blue titan = icon_blue_titan.png
<!-- Blue brackets for industrial ships -->
+
<!-- Brackets for industrial ships -->
 
| blue mining frigate = icon_blue_mining_frigate.png
 
| blue mining frigate = icon_blue_mining_frigate.png
 +
| blue mining barge| bracket mining barge= icon_blue_mining_barge.png
 
| blue industrial = icon_blue_industrial.png
 
| blue industrial = icon_blue_industrial.png
 
| blue industrial command = icon_blue_industrial_command_ship.png
 
| blue industrial command = icon_blue_industrial_command_ship.png
 
| blue industrial capital = icon_blue_industrial_capital.png
 
| blue industrial capital = icon_blue_industrial_capital.png
<!-- Blue brackets for sentry towers. -->
+
<!-- Brackets for sentry towers/drones/fighters -->
| blue sentry | blue sentry tower | blue sentry gun = icon_blue_sentry_tower.png
+
| blue sentry = icon_blue_tower.png
 +
| blue drone = icon_blue_drone.png
 +
| blue sentry drone = icon_blue_sentry_drone.png
 +
| blue fighter = icon_blue_fighter.png
 +
 
 
<!-- Miscellaneous brackets -->
 
<!-- Miscellaneous brackets -->
 
| br constellation | bracket constellation = icon_bracket_constellation.png
 
| br constellation | bracket constellation = icon_bracket_constellation.png
Line 120: Line 160:
 
| br gas cloud | bracket gas cloud = Gas_cloud.png
 
| br gas cloud | bracket gas cloud = Gas_cloud.png
 
| br hackable | bracket hackable = Icon_bracet_hackable.png
 
| br hackable | bracket hackable = Icon_bracet_hackable.png
 +
| br agent| bracket agent= Icon_bracet_agent.png
 
<!--  
 
<!--  
  
Line 147: Line 188:
 
  | d | disruptor | wd | warp disruptor | point = icon_warp_disruptor_i.png
 
  | d | disruptor | wd | warp disruptor | point = icon_warp_disruptor_i.png
 
  | burst | ecm burst | recm | remote ecm | remote ecm burst = icon_remote_ecm_burst_i.png
 
  | burst | ecm burst | recm | remote ecm | remote ecm burst = icon_remote_ecm_burst_i.png
  | j | jam | jamming | ecm = icon_multispectral_ecm_i.png
+
  | j | jam | jamming | ecm = Icon_target_max.png
 
  | p | painter | painters | tp | target painter | target painters = icon_target_painter_i.png
 
  | p | painter | painters | tp | target painter | target painters = icon_target_painter_i.png
 
  | v | vamp | vampire | energy vampire = Vamp.png
 
  | v | vamp | vampire | energy vampire = Vamp.png
Line 153: Line 194:
 
  | damp | rsd | sensor damp | sensor dampening = icon_remote_sensor_dampening.png
 
  | damp | rsd | sensor damp | sensor dampening = icon_remote_sensor_dampening.png
 
  | td | track disruptor = icon_track_disruptor_64.png
 
  | td | track disruptor = icon_track_disruptor_64.png
 +
| gd | guidance disruptor = icon_missile_guidance_computer_i.png
 
<!--
 
<!--
  
Line 197: Line 239:
 
<!-- Ancient cultures -->
 
<!-- Ancient cultures -->
 
  | drifter | drifters = logo faction drifters.png
 
  | drifter | drifters = logo faction drifters.png
 +
| trig | triglavian | triglavians | triglavian collective = Logo_faction_triglavian_collective.png
 
<!--
 
<!--
  
Line 212: Line 255:
 
  | hull = icon_hull.png
 
  | hull = icon_hull.png
 
  | capacity = Icon_capacity.png
 
  | capacity = Icon_capacity.png
  | sensor resolution | sensor res = Icon_sensor_resolution.png
+
  | sensor resolution | sensor res | remote sensor booster | remote sebo | rsb = Icon_sensor_resolution.png
 
  | target = Icon_target_max.png
 
  | target = Icon_target_max.png
 
  | inertia = Icon_inertia.png
 
  | inertia = Icon_inertia.png
Line 260: Line 303:
 
| isis serpentis | isis serpentis corporation = isis_serpentis.png
 
| isis serpentis | isis serpentis corporation = isis_serpentis.png
 
| isis soe | isis sisters | isis sisters of eve = isis_soe.png
 
| isis soe | isis sisters | isis sisters of eve = isis_soe.png
 +
| isis triglavian | isis triglavian collective = isis_triglavian.png
 +
 
<!-- ISIS icons -->
 
<!-- ISIS icons -->
 
| isis = ISIS.png
 
| isis = ISIS.png
Line 390: Line 435:
 
-->
 
-->
 
| tag check = Overview-BoxChecked9.gif
 
| tag check = Overview-BoxChecked9.gif
| tag uncheck = Overview-BoxUnChecked9.gif
+
| tag uncheck = ColorTagBG-Grey.gif
 
| tag war = ColorTag-StarRed9.gif
 
| tag war = ColorTag-StarRed9.gif
 
| tag war militia = ColorTag-StarOrange9.gif
 
| tag war militia = ColorTag-StarOrange9.gif
Line 447: Line 492:
 
  | sentry | tower | sentry tower = icon_target_tower.png
 
  | sentry | tower | sentry tower = icon_target_tower.png
 
  | industrial | industrial target = icon_target_industrial.png
 
  | industrial | industrial target = icon_target_industrial.png
 +
| industrial2 | industrial target2 = icon_target_industrial2.png
 +
| freighter| freighter target = icon_target_freighter.png
 +
| carrier | carrier target = Icon_target_carrier.png
 
  | supercapital | supercapital target = Icon_target_supercapital.png
 
  | supercapital | supercapital target = Icon_target_supercapital.png
 
  | fighter target = Icon_target_fighter.png
 
  | fighter target = Icon_target_fighter.png
Line 529: Line 577:
 
  | citadel torpedo | citadel torpedo missile | missile citadel torpedo = icon_missiles_citadel_torpedo.png
 
  | citadel torpedo | citadel torpedo missile | missile citadel torpedo = icon_missiles_citadel_torpedo.png
 
  | citadel cruise | citadel cruise missile | missile citadel cruise = icon_missiles_citadel_cruise.png
 
  | citadel cruise | citadel cruise missile | missile citadel cruise = icon_missiles_citadel_cruise.png
  | torpedo | torpedo missile | missile torpedo = icon_missiles_torpedo.png
+
  | torpedo | torpedo missile | missile torpedo = Icon torpedoes.png
 
  | cruise missile | missile cruise = icon_missiles_cruise.png
 
  | cruise missile | missile cruise = icon_missiles_cruise.png
 
  | heavy assault | heavy assault missile | missile heavy assault = icon_missiles_heavy_assault.png
 
  | heavy assault | heavy assault missile | missile heavy assault = icon_missiles_heavy_assault.png
Line 539: Line 587:
 
<!-- Default -->
 
<!-- Default -->
 
  | #default = {{{1}}}
 
  | #default = {{{1}}}
}}|{{#switch: {{{2|}}} | = 32 | #default = {{{2}}}}}px|{{#switch: {{{3|}}} |  = link= | #default = {{{3}}}}}]]<noinclude>
+
}}|{{#switch: {{{2|}}} | = 32 | #default = {{{2}}}}}px|{{#switch: {{{3|}}} |  = link= | #default = {{{3}}}}}]]</includeonly><noinclude>{{deprecated}}{{note|Due to the way pages are loaded and cached, heavy use of this template causes massive loading times and issues so it's not recommended to be used. Just use regular image links, see [[Icons]] for a list of icon-images.}}
 
+
{{documentation}}
= Syntax =
 
The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be.
 
{{code|<nowiki>{{ icon | type | size | hint }}</nowiki>}}
 
=== 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 ===
 
* <code><nowiki>{{icon|point}}</nowiki></code> &rarr; {{icon|point}} ''(it will use the default size and no mouse-over tooltip)''
 
* <code><nowiki>{{icon|||Stay put with a web!</nowiki></code> &rarr; {{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> &rarr; {{icon|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)''
 
 
 
= List of icons =
 
For a full list of icons available through this template, see the [[icons]] page.
 
 
</noinclude>
 
</noinclude>

Revision as of 16:41, 10 November 2021

This template is deprecated and no longer in use. There is no replacement information available.

Icon information square.png Note: Due to the way pages are loaded and cached, heavy use of this template causes massive loading times and issues so it's not recommended to be used. Just use regular image links, see Icons for a list of icon-images.

Template documentation (for the above template, sometimes hidden or invisible)
This template is deprecated and no longer in use.
Please visit "Due to the way pages are loaded and cached, this template consumes 10x CPU time usage compared to using regular image links. Just use regular image links, see Icons for a list of icon-images." for current info. User: Arin Mara (talk) 18:30, 22 May 2022 (UTC)

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)
Visit Template:Icon/doc to edit this text! (How does this work?) (Refresh this text - why?)