More actions
m Reformat source content, reduce indent. |
m Move usage pointer to documentation. Rewrite {{Tooltip}} first parameter: if {{{shipname}}} not empty use it as the linked displayed text else report parameter missing. |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#css: | <includeonly><onlyinclude>{{#css: | ||
| Line 72: | Line 71: | ||
}} | }} | ||
{{Tooltip | {{Tooltip | ||
|1= | |1={{#if:{{{shipname}}} | ||
| [[{{{shipname}}}]] | |||
| parameter shipname missing | |||
}} | |||
|2=<div class='uniwiki-ship-tooltip'> | |2=<div class='uniwiki-ship-tooltip'> | ||
<table cellspacing='0' cellpadding='0' style='width:100%;'> | <table cellspacing='0' cellpadding='0' style='width:100%;'> | ||
Revision as of 12:41, 12 May 2022
Template documentation (for the above template, sometimes hidden or invisible)
- 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.
| There is a problem with the presentation of the result. See Template talk:ShipBoxTooltip |
Visit Template:ShipBoxTooltip/doc to edit this text! (How does this work?) (Refresh this text - why?)