More actions
m Add link. Add sample |
m Replace hard-coded color with design-token. |
||
| (7 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 | ||
: {{Code|<nowiki>{{Ship| | : {{Code|<nowiki>Some text {{Ship|Megathron Navy Issue}} more text.</nowiki>}} gives... | ||
{{Ship| | Some text {{Ship|Megathron Navy Issue}} more text. | ||
{{Bug | {{Bug | ||
|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> | ||