More actions
No edit summary |
m Add dependencies. |
||
| (7 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
; Description | |||
: Using this template, you can embed any ship information available in our wiki to any other article. If you want to browse through the currently available ship list, please visit the [[:Category:Ship Database|Ship Database]] category or use the [[:Template:ShipsMatrix|ships matrix]]. | |||
Using this template, you can embed any ship information available in our wiki to any other | |||
; | ; Dependencies | ||
: | :; Uses: | ||
:: {{T|ShipBoxTooltip}} | |||
:: {{T|ShipBoxLarge}} | |||
; | ; Syntax | ||
: | : {{T|Ship|ship name|mode}} | ||
:; Parameters | |||
::; ship name | |||
::: The name of the ship, exactly as used in the [[:Category:Ship Database|Ship Database]] articles. | |||
::; mode | |||
::: This parameter controls whether a link with a ship information tool-tip (<nowiki>{{ShipBoxTooltip}}</nowiki>) or a box (<nowiki>{{ShipBoxLarge}}</nowiki> with the ship information is shown. The possible options are '''box''' which creates the box or '''tooltip''' which creates the link with the tool-tip. when no mode is given the template defaults to tooltip. | |||
; Samples | |||
: {{Code|This is an example <nowiki>{{Ship|Raven Navy Issue}}</nowiki> of a link with tool-tip.}} gives ... | |||
: This is an example {{Ship|Raven Navy Issue}} of a link with tool-tip. | |||
{{ | {{Bug|20220501: There is a problem with the link displaying as a box instead of as an inline element.<br> | ||
See [[Template talk:ShipBoxTooltip]]<br> | |||
Observation: When the doc page is transcluded into the template page the problem goes away.}} | |||
{{Ship|Redeemer| | : {{Code|<nowiki>{{Ship|Redeemer|box}}</nowiki>}} gives ... | ||
{{Ship|Redeemer|box}} | |||
<includeonly>[[Category: | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||