Difference between revisions of "Template:Hover"

From Dream Cancel Wiki
Jump to navigation Jump to search
m (Franck Frost moved page Template:Switch to Template:Hover: Better name)
Line 5: Line 5:


==Examples==
==Examples==
<pre><div>Kula's {{Switch|dp+C|623C}} is trash.</div></pre>
<pre><div>Kula's {{Hover|dp+C|623C}} is trash.</div></pre>
Results in
Results in
<div>Kula's {{Switch|dp+C|623C}} is trash.</div>
<div>Kula's {{Hover|dp+C|623C}} is trash.</div>
<br>
<br>
:: Note that the '''<nowiki><div> ... </div></nowiki>''' tags are needed for it to display properly. Without them, there's unwanted indentation :
:: Note that the '''<nowiki><div> ... </div></nowiki>''' tags are needed for it to display properly. Without them, there's unwanted indentation :
Kula's {{Switch|dp+C|623C}} is trash.
Kula's {{Hover|dp+C|623C}} is trash.


:: Best is to put those tags around the entire text instead of going over each instance of using the template.
:: Best is to put those tags around the entire text instead of going over each instance of using the template.
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:05, 26 August 2022


Usage

Calls to Template:HoverImage to display something then the next thing when the mouse hovers over the former. Mostly meant to switch between numpad and qcf notations and satisfy both sides.

Examples

<div>Kula's {{Hover|dp+C|623C}} is trash.</div>

Results in

Kula's is trash.


Note that the <div> ... </div> tags are needed for it to display properly. Without them, there's unwanted indentation :

Kula's

is trash.
Best is to put those tags around the entire text instead of going over each instance of using the template.