Template talk:Tooltip

From EVE University Wiki
Revision as of 14:05, 9 February 2023 by Evon R'al (talk | contribs) (→‎Problem with template: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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,

test
Content

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>
Does this, test
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?


-- Evon R'al (talk) 14:05, 9 February 2023 (UTC)