Template:SpoilerBox: Difference between revisions

hiding the actual template on this page.
(Adding title & color arguments.)
(hiding the actual template on this page.)
Line 3: Line 3:
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}}
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"
<onlyinclude><includeonly>{| class="wikitable mw-collapsible mw-collapsed"
! style="color: {{{color|red}}};" | {{{title|The following content contains spoilers! Expand to view.}}}
! style="color: {{{color|red}}};" | {{{title|The following content contains spoilers! Expand to view.}}}
|-
|-
| {{{text}}}
| {{{text}}}
|}</onlyinclude>
|}</includeonly></onlyinclude>