Difference between revisions of "Template:SpoilerText"

From questden
m
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
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.
+
This had 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>.
 
The syntax is just <code><nowiki>{{SpoilerText|text=Hidden Text Here}}</nowiki></code>.

Revision as of 00:31, 27 October 2020

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

For inline spoilers (no red text appending it), use {{SpoilerText|text=Inline Hidden Text Here|inline=1}}.


Example: Hidden Text Here Spoiler Text
Highlight to Expose

Here's some inline hidden text in a sentence.