Template:SpoilerText: Difference between revisions

From questden
Jump to navigationJump to search
(What have I done)
 
(that was a horrible waste of time)
Line 1: Line 1:
<noinclude>
<noinclude>
{{SpoilerText|pre=(pre): |hidden=(hidden)}}
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>
{{{pre}}} <span class="oo-ui-buttonElement-frameless" style="display:inline;">
<span class="oo-ui-buttonElement-button oo-ui-decoratedOptionWidget oo-ui-widget-disabled" style="display:inline-block; background-color: #383737; padding: 1px 4px 0px 4px;">
<span class="oo-ui-labelElement-label oo-ui-iconElement-icon" style="display:inline;">{{{hidden}}}</span>
</span>
</span>
</span>
</span></includeonly>
</includeonly>

Revision as of 21: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 HereSpoiler Text
Highlight to Expose