-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.
Template:Hover/Alt: Difference between revisions
Franck Frost (talk | contribs) No edit summary |
Franck Frost (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
Alternate version of the palette using div instead of span tags. This means it's necessary to use a div tag to implement it in text without unwanted indentation : | Alternate version of the palette using div instead of span tags. This means it's necessary to use a div tag to implement it in text without unwanted indentation : | ||
Kula's {{Hover/Alt|dp+C|623C}} is trash. | <code><nowiki>Kula's {{Hover/Alt|dp+C|623C}} is trash.</nowiki></code> '''results in''' Kula's {{Hover/Alt|dp+C|623C}} is trash.<br> | ||
< | <div><code><nowiki><div>Kula's {{Hover/Alt|dp+C|623C}} is trash.</nowiki></code> '''results in''' Kula's {{Hover/Alt|dp+C|623C}} is trash. | ||
<div>Kula's {{Hover/Alt|dp+C|623C}} is trash. | |||
< | |||
Note that you only need a single div tag for every following usage. For instance, the div tag written for the previous example to work means that now | |||
<code><nowiki>Kula's {{Hover/Alt|dp+C|623C}} is trash.</nowiki></code> '''does result in''' Kula's {{Hover/Alt|dp+C|623C}} is trash. | |||
This effect lasts '''until the template breaks'''. | |||
==Limitations== | ==Limitations== | ||
It has the same | It has the same limitation towards wikitext markups as [[Template:Hover|Hover]]. A further limitation coming from its need of a div tag means each time the template breaks, another div tag has to be written. That is ultimately the reason this version isn't preferred for text.<br> | ||
It however is compatible with div tags, making it usable for cargo tables for example. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:08, 27 August 2022
Usage
Alternate version of the palette using div instead of span tags. This means it's necessary to use a div tag to implement it in text without unwanted indentation :
Kula's {{Hover/Alt|dp+C|623C}} is trash.
results in Kula's
is trash.
<div>Kula's {{Hover/Alt|dp+C|623C}} is trash.
results in Kula's
Note that you only need a single div tag for every following usage. For instance, the div tag written for the previous example to work means that now
Kula's {{Hover/Alt|dp+C|623C}} is trash.
does result in Kula's This effect lasts until the template breaks.
Limitations
It has the same limitation towards wikitext markups as Hover. A further limitation coming from its need of a div tag means each time the template breaks, another div tag has to be written. That is ultimately the reason this version isn't preferred for text.
It however is compatible with div tags, making it usable for cargo tables for example.