Difference between revisions of "Template:Hover"
Jump to navigation
Jump to search
Franck Frost (talk | contribs) |
Franck Frost (talk | contribs) |
||
Line 1: | Line 1: | ||
{{ | {{#if:{{{style|}}}|<div style="{{{style}}}">}} | ||
<noinclude> | <div class="hoverbox"> | ||
<div class="hoveritem selected"> | |||
{{{1}}}</div> | |||
<div class="hoveritem"> | |||
{{{2}}}</div></div>{{#if:{{{style|}}}|</div>}}<noinclude> | |||
==Usage== | ==Usage== | ||
A more general version of [[Template:HoverImage]] where both items displayed are anything at all rather than strictly images. Mostly meant to switch between numpad and qcf notations and satisfy both needs. | |||
==Examples== | ==Examples== |
Revision as of 17:12, 26 August 2022
{{{1}}}
{{{2}}}
Usage
A more general version of Template:HoverImage where both items displayed are anything at all rather than strictly images. Mostly meant to switch between numpad and qcf notations and satisfy both needs.
Examples
<div>Kula's {{Hover|dp+C|623C}} is trash.</div>
Results in
Kula's
is trash.
dp+C
623C
- Note that the <div> ... </div> tags are needed for it to display properly. Without them, there's unwanted indentation :
Kula's
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.