Difference between revisions of "Template:Inline spoiler"
Jump to navigation
Jump to search
(Explicitly specify foreground color, in case that's been set by a stylesheet) |
|||
Line 1: | Line 1: | ||
− | <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="background-color:#000">{{{1|spoiler}}}</span><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{#invoke:Hash|crc|{{{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> | ||
{ | { |
Revision as of 01:07, 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 | String | required |