Difference between revisions of "Template:Hover/Documentation"

From Dream Cancel Wiki
Jump to navigation Jump to search
Line 4: Line 4:
==Usage==
==Usage==
:* Here's how it should look :
:* Here's how it should look :
<div>Kula's {{Hover|dp+C|623C}} is trash.
Kula's {{Hover|dp+C|623C}} is trash.
<pre><div>Kula's {{Hover|dp+C|623C}} is trash.</pre>
<pre>Kula's {{Hover|dp+C|623C}} is trash.</pre>


:* Note that the '''<nowiki><div></nowiki>''' tag is needed for it to display properly. Without it, there's unwanted indentation :
:* Note that the '''<nowiki><div></nowiki>''' tag is needed for it to display properly. Without it, there's unwanted indentation :
Line 13: Line 13:
==Multiple calls==
==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).
:* 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).
<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}}.
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}}.
<pre><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}}.</pre>
<pre>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}}.</pre>
<br>
<br>
:* To bypass this you can use <nowiki><br /></nowiki> (or just <nowiki><br></nowiki>) instead for the line break(s).
:* To bypass this you can use <nowiki><br /></nowiki> (or just <nowiki><br></nowiki>) instead for the line break(s).
<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.
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.
<pre><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.</pre>
<pre>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.</pre>
<br>
<br>
:* Otherwise you can just press enter, go to the next line and use the tag again.
:* Otherwise you can just press enter, go to the next line and use the tag again.
<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}}.
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.
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.
<pre><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}}.
<pre>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.</pre>
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.</pre>
[[Category:Templates]]
[[Category:Templates]]

Revision as of 09:38, 27 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. 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.

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.

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.

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.

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}}.
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.