Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template talk:ShipBoxTooltip: Difference between revisions

Discussion page of Template:ShipBoxTooltip
 
m Update for template problem.
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{Code|<nowiki>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?</nowiki>}}
{{Code|<nowiki>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?</nowiki>}}
Does this, {{Ship|Vexor|mode= tooltip}} stays inline?<br>
Does this, {{Ship|Vexor|mode= tooltip}} stays inline?<br>
No, it does not.
{{Co|red|No}}, it does not.
 


{{Code|<nowiki>Does this, {{:Vexor|mode= tooltip}} stays inline?</nowiki>}}
{{Code|<nowiki>Does this, {{:Vexor|mode= tooltip}} stays inline?</nowiki>}}
Line 10: Line 11:




{{Code|<nowiki>&lt;div></pre>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?&lt;/div></<nowiki>}}
{{Code|<nowiki> &lt;div> Does this, {{Ship|Vexor|mode= tooltip}} stays inline? &lt;/div> </nowiki>}}
<div>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?</div><br>
 
Now this works, as does putting it inside a &lt;span> or a table.
<div> Does this, {{Ship|Vexor|mode= tooltip}} stays inline? </div><br>
Now this works, as does putting it inside a &lt;span>,
 


<span>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?</span><br>
<span>Does this, {{Ship|Vexor|mode= tooltip}} stays inline?</span><br>


{| class="wikitable" style="widht: 40%;"
: or a table.
|+ Does this, {{Ship|Vexor|mode= tooltip}} stays inline?
{| class="wikitable" style="width: 40%;"
|+ Does this, {{Ship|Vexor|mode= tooltip}} stays inline? (caption)
|-
|-
| Does this, {{Ship|Vexor|mode= tooltip}} stays inline?
| Does this, {{Ship|Vexor|mode= tooltip}} stays inline? (data cell)
|}
|}


Line 28: Line 32:


Somehow the interaction between {{T|Ship}}, {{T|ShipBoxTooltip}} and the wiki parser creates this problem. I have been looking into this, but I have not been able to find a fix --[[User:Evon R&#39;al|Evon R&#39;al]] ([[User talk:Evon R&#39;al|talk]]) 12:23, 11 May 2022 (UTC)
Somehow the interaction between {{T|Ship}}, {{T|ShipBoxTooltip}} and the wiki parser creates this problem. I have been looking into this, but I have not been able to find a fix --[[User:Evon R&#39;al|Evon R&#39;al]] ([[User talk:Evon R&#39;al|talk]]) 12:23, 11 May 2022 (UTC)
=== Update ===
After some more investigation I found the cause of the problem. It is the presence of a block level element, like div or table, in the content part of the {{Tl|Tooltip}} template.
Demo:
{{Code|<nowiki>Does this, {{Tooltip|test|<div>Content</div>}} stays inline?</nowiki>}}
Does this, {{Tooltip|test|<div>Content</div>}} stays inline?<br>
{{Co|red|No}}, it does not.
made a notice of the problem on [[Template talk:Tooltip]].
-- [[User:Evon R&#39;al|Evon R&#39;al]] ([[User talk:Evon R&#39;al|talk]]) 14:05, 9 February 2023 (UTC)