Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
DOORS Site Logo

Welcome to the Official DOORS Wiki!
Please read the Wiki Rules the Manual of Style and familiarise yourself with our Wiki Policies before contributing to get a better understanding of what content is allowed on our wiki and how to display it properly, if you need help don't hesitate to reach out to a DOORS Wiki Staff Member.

Template:Spoiler: Difference between revisions

Template page
m (This is basically pseudo js at this point lmao)
m (fixed font size on buttons)
Line 6: Line 6:
-----><p>'''The following content has {{#var:spoilers}} for {{{2}}}. To unhide ALL spoilers, click the button below.'''</p><!--
-----><p>'''The following content has {{#var:spoilers}} for {{{2}}}. To unhide ALL spoilers, click the button below.'''</p><!--
-----><div style="display:flex"><!-- button wrapper
-----><div style="display:flex"><!-- button wrapper
------><span class="mw-customtoggle-ToggleSpoilers mw-customtoggle-HideSpoiler wds-button" style="width: 50px;background:rgba(0,0,0,.3);border: 5px solid #6F468577;border-radius:12px;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;margin:auto">Unhide</span><!--
------><span class="mw-customtoggle-ToggleSpoilers mw-customtoggle-HideSpoiler wds-button" style="width: 50px;background:rgba(0,0,0,.3);padding:12px 25px;border: 5px solid #6F468577;border-radius:12px;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;margin:auto;font-size:100%">Unhide</span><!--
-----></div><!-- button wrapper
-----></div><!-- button wrapper
----></div><!-- flexbox
----></div><!-- flexbox
Line 14: Line 14:
---><div style="display:flex; background: linear-gradient(to left,#6F468533, #350DCE33); box-shadow: 0 4px 6px rgba(0, 0, 0, .4); margin: 10px 5px 15px 5px; text-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 2px 4px rgba(0, 0, 0, .25); border-radius: 20px; padding: 12px;border: 5px solid #6F468577"><!-- element style
---><div style="display:flex; background: linear-gradient(to left,#6F468533, #350DCE33); box-shadow: 0 4px 6px rgba(0, 0, 0, .4); margin: 10px 5px 15px 5px; text-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 2px 4px rgba(0, 0, 0, .25); border-radius: 20px; padding: 12px;border: 5px solid #6F468577"><!-- element style
----><div style="width:100%">{{{1}}}</div><!-- main text
----><div style="width:100%">{{{1}}}</div><!-- main text
----><span class="mw-customtoggle-ToggleSpoilers mw-customtoggle-HideSpoiler wds-button" style="width: 50px; height: 20px;background:rgba(0,0,0,.3);border: 5px solid #6F468577;border-radius:12px;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;float:right;margin:5px">Hide</span><!--
----><span class="mw-customtoggle-ToggleSpoilers mw-customtoggle-HideSpoiler wds-button" style="width: 50px; height: 20px;background:rgba(0,0,0,.3);padding:12px 25px;border: 5px solid #6F468577;border-radius:12px;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;float:right;margin:5px;font-size:100%">Hide</span><!--
---></div><!--
---></div><!--
--></div><!--
--></div><!--

Revision as of 08:22, 8 June 2025

{{#vardefine:spoilers|spoilers}}

Cannot.png

The following content has {{#var:spoilers}} for {{{2}}}. To unhide ALL spoilers, click the button below.

Unhide
{{{1}}}
Hide

{{#vardefine: base page |

   Template:Spoiler
 

}}{{#vardefine: current page | Template:Spoiler}}{{#vardefine: doc page |

 {{#var: base page}}/doc

}}{{#vardefine: namespace |

 Template

}}{{#vardefine: preload |

 Template:Documentation/preload&summary=Create+%2Fdoc+subpage+for+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D&editintro=Template:Documentation/editintro-doc

}}{{#vardefine: preload-sandbox |

 Template:Documentation/preload-sandbox&summary=Create+sandbox+subpage+for+experimenting+on+template+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D

}}{{#vardefine: sandbox |

 {{#var: base page}}/sandbox

}}{{#vardefine: page text |

 page

}}{{#vardefine: doc image |

  

}}

{{#var: doc image }}{{#var: page text}} Documentation[[[[:Template:Fullurl:]] create] | [[Special:Purge/{{#var: current page}}|purge]]]

The documentation for this {{#var: page text}} does not exist. Create it at [[[:Template:Fullurl:]] {{#var: doc page}}].

[[[:Template:Fullurl:]] Create documentation] for this template.
Editors can experiment in this {{#var: page text}}'s sandbox ([[[:Template:Fullurl:]] create] | [[[:Template:Fullurl:]] mirror]) page.
[[Special:PrefixIndex/{{#var: current page}}|Subpages of this {{#var: page text}}]].