Difference between revisions of "Template:ShipBoxTooltip/doc"

From EVE University Wiki
Jump to: navigation, search
m (Change {{Work in progress}} to {{Cleanup}}. Add {{Bug}}.)
m (Add link. Add sample)
Line 9: Line 9:
 
:: Ship information in ship database articles.
 
:: Ship information in ship database articles.
 
: Called by:
 
: Called by:
:: {{T|Ship}} through ship database articles
+
:: {{T|Ship}} through [[:Category:Ship Database|ship database]] articles
  
 
; Syntax
 
; Syntax
Line 15: Line 15:
 
: {{T|ShipBoxTooltip}} is called when a ship article is called with mode= tooltip. e.g. <nowiki>{{:Vexor|mode= tooltip}}</nowiki> gives {{:Vexor|mode= tooltip}}
 
: {{T|ShipBoxTooltip}} is called when a ship article is called with mode= tooltip. e.g. <nowiki>{{:Vexor|mode= tooltip}}</nowiki> gives {{:Vexor|mode= tooltip}}
  
 +
; Sample
 +
: {{Code|<nowiki>{{Ship|Vexor}}</nowiki>}} gives...
 +
{{Ship|Vexor}}
  
 
{{Note
 
{{Note

Revision as of 10:47, 12 May 2022

This article should be cleaned up or improved.
The reason is: Documentation need some more work
Description
This template is a sub-template used to produce a link to a ship which on mouse over shows a tool-tip whit some ship info.
Dependencies
Uses:
{{Tooltip}}
Ship information in ship database articles.
Called by:
{{Ship}} through ship database articles
Syntax
Can not be used on its own.
{{ShipBoxTooltip}} is called when a ship article is called with mode= tooltip. e.g. {{:Vexor|mode= tooltip}} gives
Vexor
Vexor.jpg
Vexor
Standard Cruisers Vexor Class
Icon hi slot.png4 (0/4) Icon mid slot.png4 Icon low slot.png5
Icon powergrid.png700 MW Icon cpu.png300 tf
Icon velocity.png195 m/sec
Icon capacity.png480 m³
Sample
{{Ship|Vexor}}
gives...
Vexor
Vexor.jpg
Vexor
Standard Cruisers Vexor Class
Icon hi slot.png4 (0/4) Icon mid slot.png4 Icon low slot.png5
Icon powergrid.png700 MW Icon cpu.png300 tf
Icon velocity.png195 m/sec
Icon capacity.png480 m³

Icon information square.png Note: The template does testing for unknown shipname(wel it is actually testing if the parameter contains anything beside white-space), if there is an article about the called ship the shipname should have something in it. If there is no article then ShipBoxTooltip is not called anyway.

Bug icon red.png Bug: There is a problem with the presentation of the result. See Template talk:ShipBoxTooltip