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 Update doc. Remove {{Cleanup}}.
m Replace hard-coded color with design-token.
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
: Creates a tooltip with a subset of the ships stats.
: Creates a tooltip with a subset of the ships stats.
: {{Color box
: {{Color box
|color= #144F1D
| color= var(--background-color-error-subtle)
|border= #2F8F2F
| border= #2F8F2F
|This template is a part of the Ship Database template set and designed to be used in conjunction with the templates on that category and is not meant to be used or called directly!.<br>If you're looking on how to use the '''Ship''' template please see [[Template:Ship|this page]] instead.<br><br>DO NOT EDIT THE CONTENTS OF THIS TEMPLATE IF YOU ARE NOT SURE ON WHAT YOU ARE DOING.
| This template is a part of the Ship Database template set and designed to be used in conjunction with the templates on that category and is not meant to be used or called directly!.<br>If you're looking on how to use the '''Ship''' template please see [[Template:Ship|this page]] instead.<br><br>DO NOT EDIT THE CONTENTS OF THIS TEMPLATE IF YOU ARE NOT SURE ON WHAT YOU ARE DOING.
}}
}}


Line 10: Line 10:
:; Uses:
:; Uses:
:: {{T|Tooltip}}
:: {{T|Tooltip}}
:: {{T|Imageserver}} When no local image of ship is available and <kbd>shipid</kbd> is known.
:: Part of the parameter set of {{Tl|ShipArticle}}
:: Part of the parameter set of {{Tl|ShipArticle}}


Line 30: Line 31:
|There is a problem with the presentation of the result. See [[Template talk:ShipBoxTooltip]]}}
|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:Formatting templates]] [[Category:Data templates]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 09:10, 9 June 2025

Description
Creates a tooltip with a subset of the ships stats.
This template is a part of the Ship Database template set and designed to be used in conjunction with the templates on that category and is not meant to be used or called directly!.
If you're looking on how to use the Ship template please see this page instead.

DO NOT EDIT THE CONTENTS OF THIS TEMPLATE IF YOU ARE NOT SURE ON WHAT YOU ARE DOING.
Dependencies
Uses
{{Tooltip}}
{{Imageserver}} When no local image of ship is available and shipid is known.
Part of the parameter set of {{ShipArticle}}
Syntax
ShipBoxTooltip is not to be used on its own. It is to be called by using the wrapper template {{Ship}}
Template set
{{ShipArticle}}
{{Ship}}
{{ShipBoxLarge}}
{{ShipBoxTooltip}}
Sample
Some text {{Ship|Megathron Navy Issue}} more text.
gives...

Some text

Megathron Navy Issue
Megathron Navy Issue
Faction Battleships Megathron Class
High Amount of High Slots
High Amount of Low Slots
8 (1/7) 4 8
16,275 MW 630 tf
135 m/sec
840 m³

more text.


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