📌 Current mission: start filling the wiki — create pages, upload images, and join the Discord!
Template:Spoiler: Difference between revisions
From Asylum Wiki
Jump to navigationJump to search
Spoiler template  |
Fix: use mw-collapsible instead of raw details/summary (was rendering as text) Â |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly><div class="mw-collapsible mw-collapsed asy-spoiler"><div class="asy-spoiler-title">{{{title|Spoiler — click to reveal}}}</div><div class="mw-collapsible-content"> | ||
{{{1|{{{text|}}}}}} | {{{1|{{{text|}}}}}} | ||
</ | </div></div></includeonly><noinclude> | ||
Click-to-reveal box for spoilers, lore twists, or long tangents you don't want blocking the page. | Click-to-reveal box for spoilers, lore twists, or long tangents you don't want blocking the page. Uses MediaWiki's built-in collapsible box (not raw HTML), so it works reliably in every skin. | ||
'''Example:''' <code><nowiki>{{Spoiler|title=What happens at the end|The wiki gets finished and everyone is happy.}}</nowiki></code> | '''Example:''' <code><nowiki>{{Spoiler|title=What happens at the end|The wiki gets finished and everyone is happy.}}</nowiki></code> | ||
Latest revision as of 19:30, 12 July 2026
Click-to-reveal box for spoilers, lore twists, or long tangents you don't want blocking the page. Uses MediaWiki's built-in collapsible box (not raw HTML), so it works reliably in every skin.
Example: {{Spoiler|title=What happens at the end|The wiki gets finished and everyone is happy.}}
What happens at the end
The wiki gets finished and everyone is happy.
Collapsible click-to-reveal spoiler box.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hidden content | 1 text | no description | Content | required |
| Visible label | title | Text shown before it's clicked open
| String | optional |