Template talk:Tooltip
From EVE University Wiki
Problem with template
There is a problem with the template when using a block level element, like div or table, in the content part. The interaction of the template and the wikiparser ads non desired <p> tags. This is particularly a problem when using {{ShipBoxTooltip}}
which has complicated content table and div. See also Template talk:ShipBoxTooltip.
Demo:
Does this, {{Tooltip|test|<div>Content</div>}} stays inline? |
Does this,
testContent
stays inline?
No, it does not.
For some reason, sticking the sentence inside a div or a span clears the problem.
<span>Does this, {{Tooltip|test|<div>Content</div>}} stays inline?</span> |
Content
stays inline?
Using a <p> however produces this:
<p>Does this, {{Tooltip|test|<div>Content</div>}} stays inline?</p> |
Does this, test
Content
stays inline?