Difference between revisions of "Template:SpoilerText"
From questden
(What have I done) |
(that was a horrible waste of time) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | {{SpoilerText| | + | This used to have a fancy fade-in effect on hover, but it turns out that it only worked on the preview page, so I had to settle for this garbage. |
+ | |||
+ | The syntax is just <code><nowiki>{{SpoilerText|text=Hidden Text Here}}</nowiki></code> | ||
+ | |||
+ | Example: {{SpoilerText|text=Hidden Text Here}} | ||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly><span style="background-color: #333; color: #333; padding: 3px 5px 2px 5px;">{{{text}}}</span><span style="display:inline-block; line-height:8px; vertical-align:sub; padding-left:4px;"><span style="font-size:9px; color:red;">Spoiler Text <br/>Highlight to Expose</span></span> |
− | {{{ | ||
− | <span | ||
− | <span | ||
</span> | </span> | ||
− | </span> | + | </span></includeonly> |
− | </includeonly> |
Revision as of 22:31, 26 October 2020
This used to have a fancy fade-in effect on hover, but it turns out that it only worked on the preview page, so I had to settle for this garbage.
The syntax is just {{SpoilerText|text=Hidden Text Here}}
Example:
Hidden Text Here
Spoiler Text
Highlight to Expose