Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ShipBoxTooltip/doc: Difference between revisions

Template page
m Coding and testing.
m Change {{Work in progress}} to {{Cleanup}}. Add {{Bug}}.
Line 1: Line 1:
{{Work in progress|Analyzing the code and related templates and articles to write the doc,|date=10:26, 11 May 2022 (UTC)}}
{{Cleanup|Documentation need some more work}}
For usage guide please see [[Template:Ship|Ship Template]]


; Description
; Description
Line 16: 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}}


; Notes (temp)
 
: 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.
{{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
|There is a problem with the presentation of the result. See [[Template talk:ShipBoxTooltip]]}}


<includeonly>[[Category:Template]]<!-- Any categories for the template itself --></includeonly>
<includeonly>[[Category:Template]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 12:37, 11 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
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³


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: There is a problem with the presentation of the result. See Template talk:ShipBoxTooltip