-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.
Template:Hover/Documentation: Difference between revisions
Franck Frost (talk | contribs) No edit summary |
Franck Frost (talk | contribs) No edit summary |
||
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. | |||
==Usage== | ==Usage== | ||
:* Here's how it should look : | |||
<div>Kula's {{Hover|dp+C|623C}} is trash. | |||
<pre><div>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 : | |||
Kula's {{Hover|dp+C|623C}} is trash. | Kula's {{Hover|dp+C|623C}} is trash. | ||
<pre>Kula's {{Hover|dp+C|623C}} is trash.</pre> | |||
:: | ==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). | |||
<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><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> | |||
<br> | |||
:* 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. | |||
<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> | |||
<br> | |||
:* 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}}. | |||
<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><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.</pre> | |||
[[Category:Templates]] | [[Category:Templates]] |
Revision as of 18:57, 26 August 2022
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.
Usage
- Here's how it should look :
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).
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).
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.
dp+C 623C is trash. Her dp+A 623A is alright though, and at least it's not Shingo's dp+C 623C.
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.