Difference between revisions of "Template:Hover/Documentation"

From Dream Cancel Wiki
Jump to navigation Jump to search
Line 1: Line 1:


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.
A more general version of [[Template:HoverImage]] where both items displayed are anything at all rather than strictly images. With this comes further restrictions compared to images and it was decided not to display the hover effect at all if the second item is empty. This is mostly meant to switch between numpad and qcf notations and satisfy both needs.


==Usage==
==Usage==

Revision as of 19:21, 26 August 2022

A more general version of Template:HoverImage where both items displayed are anything at all rather than strictly images. With this comes further restrictions compared to images and it was decided not to display the hover effect at all if the second item is empty. This is mostly meant to switch between numpad and qcf notations and satisfy both needs.

Usage

  • Here's how it should look :
Kula's

dp+C 623C is trash.

<div>Kula's {{Hover|dp+C|623C}} is trash.
  • Note that the <div> tag is needed for it to display properly. Without it, there's unwanted indentation :

Kula's dp+C 623C is trash.

Kula's {{Hover|dp+C|623C}} is trash.

Multiple calls

  • The div tag, like most mark-ups, breaks when you press enter to go to the next line. Meaning a single tag is enough for multiple calls in the same line (regardless of it wrapping back. This for example is still coded as one line and not two).
Kula's

dp+C 623C is trash. Her dp+A 623A is alright though, and at least it's not Shingo's dp+C 623C.

<div>Kula's {{Hover|dp+C|623C}} is trash. Her {{Hover|dp+A|623A}} is alright though, and at least it's not Shingo's {{Hover|dp+C|623C}}.


  • To bypass this you can use <br /> (or just <br>) instead for the line break(s).
Kula's

dp+C 623C is trash. Her dp+A 623A is alright though, and at least it's not Shingo's dp+C 623C.
I swear to god if his cl.C 5C isn't 2f anymore, I'll be sad.

<div>Kula's {{Hover|dp+C|623C}} is trash. Her {{Hover|dp+A|623A}} is alright though, and at least it's not Shingo's {{Hover|dp+C|623C}}.<br> I swear to god if his {{Hover|cl.C|5C}} isn't 2f anymore, I'll be sad.


  • Otherwise you can just press enter, go to the next line and use the tag again.
Kula's

dp+C 623C is trash. Her dp+A 623A is alright though, and at least it's not Shingo's dp+C 623C.

I swear to god if his

cl.C 5C isn't 2f anymore, I'll be sad. Make qcf+C 236C faster too, thanks.

<div>Kula's {{Hover|dp+C|623C}} is trash. Her {{Hover|dp+A|623A}} is alright though, and at least it's not Shingo's {{Hover|dp+C|623C}}.
<div>I swear to god if his {{Hover|cl.C|5C}} isn't 2f anymore, I'll be sad. Make {{Hover|qcf+C|236C}} faster too, thanks.