-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

From Dream Cancel Wiki
Jump to navigation Jump to search
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>
<pre>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>
<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.
 
<pre><div>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>
 
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 limitations as [[Template:Hover|Hover]], incompatible with common wikitext formatting.
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

dp+C
623C

is trash.

<div>Kula's {{Hover/Alt|dp+C|623C}} is trash. results in Kula's
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

Kula's {{Hover/Alt|dp+C|623C}} is trash. does result in Kula's
dp+C
623C
is trash.

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.