More actions
m Remove {{Note}}, the templates still test for an empty parameter shipname but it now gives an error that the parameter is missing and no longer the incorrect error unknown shipname. |
m Replace hard-coded color with design-token. |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | ; Description | ||
: Creates a tooltip with a subset of the ships stats. | |||
: {{Color box | |||
| color= var(--background-color-error-subtle) | |||
| 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. | |||
}} | |||
; Dependencies: | ; Dependencies: | ||
: 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}} | |||
:: {{ | |||
; Syntax | ; Syntax | ||
: | : ShipBoxTooltip is not to be used on its own. It is to be called by using the wrapper template {{Tl|Ship}} | ||
: {{T| | |||
; Template set | |||
: {{T|ShipArticle}} | |||
: {{T|Ship}} | |||
:: {{T|ShipBoxLarge}} | |||
:: {{T|ShipBoxTooltip}} | |||
; Sample | ; Sample | ||
| Line 26: | 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: | <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.
- 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
gives...Some text {{Ship|Megathron Navy Issue}} more text.
Some text
Megathron Navy Issue|
Megathron Navy Issue
Faction Battleships Megathron Class
|
more text.
| There is a problem with the presentation of the result. See Template talk:ShipBoxTooltip |