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
Latest comment: 11 May 2022 by Evon R'al in topic Problem with the template
m Fix typo.
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| &lt;div> Does this, {{Ship|Vexor|mode= tooltip}} stays inline? &lt;/div>}}
<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>


: or a table.
{| class="wikitable" style="width: 40%;"
{| class="wikitable" style="width: 40%;"
|+ Does this, {{Ship|Vexor|mode= tooltip}} stays inline?
|+ 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)
|}
|}



Revision as of 13:44, 3 December 2022

Problem with the template

Does this, {{Ship|Vexor|mode= tooltip}} stays inline?

Does this,

Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³

stays inline?

No, it does not.


Does this, {{:Vexor|mode= tooltip}} stays inline?

Does this,

Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³

stays inline?

No surprise here as the second example is exactly what {{Ship}} produces.


<div> Does this, Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³
stays inline? </div>
Does this, Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³
stays inline?


Now this works, as does putting it inside a <span>,


Does this, Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³
stays inline?


or a table.
Does this, Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³
stays inline? (caption)
Does this, Vexor
Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³
stays inline? (data cell)


Using <p> however produces this

Does this, Vexor

Vexor
Standard Cruisers Vexor Class
4 (0/4) 4 5
700 MW 300 tf
195 m/sec
480 m³

stays inline?


Somehow the interaction between {{Ship}}, {{ShipBoxTooltip}} and the wiki parser creates this problem. I have been looking into this, but I have not been able to find a fix --Evon R'al (talk) 12:23, 11 May 2022 (UTC)Reply