Difference between revisions of "Template:Inline spoiler"
Jump to navigation
Jump to search
(Create inline spoiler template) |
(Change argument type to "content") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <span class="mw-customtoggle-{{{1|spoiler}}} mw-collapsible" id="mw-customcollapsible-{{{1|spoiler}}}" title="Spoiler, click to reveal" style="background-color:#000">{{{1|spoiler}}}</span><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|spoiler}}}" style="display:none; background-color:#e4e4e4">{{{1|spoiler}}}</span> | + | <span class="mw-customtoggle-{{#invoke:Hash|crc|{{{1|spoiler}}}}} mw-collapsible" id="mw-customcollapsible-{{#invoke:Hash|crc|{{{1|spoiler}}}}}" title="Spoiler, click to reveal" style="color:#000; background-color:#000">{{{1|spoiler}}}</span><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#invoke:Hash|crc|{{{1|spoiler}}}}}" style="display:none; color:#000; background-color:#e4e4e4">{{{1|spoiler}}}</span><noinclude> |
− | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 6: | Line 5: | ||
"1": { | "1": { | ||
"description": "Spoiler text", | "description": "Spoiler text", | ||
− | "type": " | + | "type": "content", |
"required": true | "required": true | ||
} | } |
Latest revision as of 01:43, 13 February 2022
spoiler
Creates an inline-spoiler that displays as a black box, in the style of Discord. This should be used sparingly! (Prefer <spoiler> blocks when possible.)
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Spoiler text | Content | required |