Template:SpoilerBox: Difference between revisions
From Melvor Idle
m (removed width property) |
Falterfire (talk | contribs) (Adding title & color arguments.) |
||
Line 1: | Line 1: | ||
{| class="wikitable mw-collapsible mw-collapsed" | Template for embedding text in a spoiler box. Minimum syntax is {{T|SpoilerBox|text=internal text}} to get {{SpoilerBox|text=internal text}}. | ||
! style="color: red;" | The following content contains spoilers! Expand to view. | |||
There are also arguments for title & color, for example {{T|SpoilerBox|text=internal text|title=title|color=green}} gives {{SpoilerBox|text=internal text|title=title|color=green}} | |||
<onlyinclude>{| class="wikitable mw-collapsible mw-collapsed" | |||
! style="color: {{{color|red}}};" | {{{title|The following content contains spoilers! Expand to view.}}} | |||
|- | |- | ||
| {{{text}}} | | {{{text}}} | ||
|} | |}</onlyinclude> |
Revision as of 21:40, 1 March 2021
Template for embedding text in a spoiler box. Minimum syntax is {{SpoilerBox|text=internal text}}
to get
The following content contains spoilers! Expand to view. |
---|
internal text |
.
There are also arguments for title & color, for example {{SpoilerBox|color=green|text=internal text|title=title}}
gives
title |
---|
internal text |
The following content contains spoilers! Expand to view. |
---|
{{{text}}} |