More actions
m →Test: Coding and testing |
m →Test: Coding and testing for the template ship problem. |
||
| Line 16: | Line 16: | ||
== Test == | == Test == | ||
<onlyinclude> | <onlyinclude> | ||
Does this, {{Tooltip|test|tooltip text}} stay inline? | <p>Does this, {{Tooltip|test|tooltip text}} stay inline?</p> | ||
Basic:<br> | |||
Does this, {{Ship|Redeemer}} stay inline? | Does this, {{Ship|Redeemer}} stay inline? | ||
{{ | Inside a div:<br> | ||
< | <div>Does this, {{Ship|Redeemer}} stay inline?</div> | ||
{{Ship| | |||
Inside a table:<br> | |||
{| style="width: 50%;" | |||
|+ Does this, {{Ship|Redeemer}} stay inline? | |||
|- | |||
| Does this, {{Ship|Redeemer}} stay inline? | |||
|} | |||
Inside a span:<br> | |||
<span>Does this, {{Ship|Redeemer}} stay inline?</span> | |||
Inside the Co template:<br> | |||
{{Co|inherit|Does this, {{Ship|Redeemer}} stay inline?}} | |||
Inside p:<br> | |||
<p style="display: inline;">Does this, {{Ship|Redeemer}} stay inline?</p> | |||
{{Ship| | {{Box||The {{T|Ship}} template does a transclusion of the ship page with a mode parameter. If the mode parameter is anything else then box, then {{T|ShipBoxTooltip}} is called. Which, in turn, calls {{T|Tooltip}}. {{T|Ship}} is also used when there are variations of a ship. It is used in the source of the parameter variations. Here the results appear to be correct (See e.g. [[Harpy]])<br> | ||
When the sentence with the ship template is inside another element there is no problem. Hmm does not do so well inside <nowiki><p></nowiki>.}} | |||
</onlyinclude> | |||