Template:SpoilerText: Difference between revisions

From questden
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
For inline spoilers (no red text appending it), use <code><nowiki>{{SpoilerText|text=Inline Hidden Text Here|inline=1}}</nowiki></code>.
For inline spoilers (no red text appending it), use <code><nowiki>{{SpoilerText|text=Inline Hidden Text Here|inline=1}}</nowiki></code>.


To reveal the hidden text, highlight it with your cursor. This sucks ass for mobile users, but if you're viewing Questden on a mobile device, then you're already used to suffering. This will not work for hyperlinks.
To reveal the hidden text, highlight it with your cursor. This sucks ass for mobile users, but if you're viewing Questden on a mobile device, you're already used to suffering. This will not work with hyperlinks.





Latest revision as of 00:40, 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}}.

To reveal the hidden text, highlight it with your cursor. This sucks ass for mobile users, but if you're viewing Questden on a mobile device, you're already used to suffering. This will not work with hyperlinks.


Example: Hidden Text Here Spoiler Text
Highlight to Expose

Here's some inline hidden text in a sentence.