Difference between revisions of "Template:Hover/Alt"

From Dream Cancel Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#if:{{{1|}}}|{{#if:{{{style|}}}|<span style="{{{style|}}}">}}<span class="hoverbox">
{{#if:{{{1|}}}|{{#if:{{{style|}}}|<div style="{{{style|}}}">}}<div class="hoverbox">
<span class="hoveritem selected">
<div class="hoveritem selected">
{{{1}}}</span>
{{{1}}}</div>
<span class="hoveritem">
<div class="hoveritem">
{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#if:{{{style|}}}|</span>}}</span></span>}}<noinclude>
{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#if:{{{style|}}}|</div>}}</div></div>}}<noinclude>
==Usage==
==Usage==
Alternate version of the palette using span instead of div tags. That means there's no need for a tag to implement it in text :<br>
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.
Kula's {{Hover/Alt|dp+C|623C}} is trash.
<pre>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>
<pre>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>
<div>Kula's {{Hover/Alt|dp+C|623C}} is trash.
<pre><div>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>


But in turn it doesn't fit with common wikitext formatting (: , # , ; ,etc) :
==Limitations==
: Kula's {{Hover/Alt|dp+C|623C}} is trash.
It has the same limitations as [[Template:Hover|Hover]], incompatible with common wikitext formatting.
<pre>: Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>


: <div>Kula's {{Hover/Alt|dp+C|623C}} is trash.
<pre>: <div>Kula's {{Hover/Alt|dp+C|623C}} is trash.</pre>
Kula's {{Hover/Alt|dp+C|623C}} is trash.
'''FURTHER WORK NEEDED.'''
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 12:07, 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

dp+C
623C

is trash.

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

Limitations

It has the same limitations as Hover, incompatible with common wikitext formatting.