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:SpoilerWarning: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
(Adjusted warning to better fit how it's being used (remove hide button on places where it's not needed))
Line 1: Line 1:
{{#vardefine:spoilers|<span style=font-size:120%;font-weight:700>spoilers</span>}}<!--
<div class="mw-collapsible" id="mw-customcollapsible-SpoilersWarning" style="background: linear-gradient(to left,#6F468533, #350DCE33); border-radius: 1px; box-shadow: 0 4px 6px rgba(0, 0, 0, .4); margin: 10px 5px 15px 5px; text-align: center; text-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 2px 4px rgba(0, 0, 0, .25); border-radius: 20px; padding: 12px; font-size: 150%;"><!--
--><div {{#if:{{{content|}}}|class="mw-collapsible" id="mw-customcollapsible-SpoilersWarning"}} style="background: linear-gradient(to left,#6F468533, #350DCE33); box-shadow: 0 4px 6px rgba(0, 0, 0, .4); margin: 10px 5px 15px 5px; text-align: center; text-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 2px 4px rgba(0, 0, 0, .25); border-radius: 20px; padding: 12px; font-size: 150%;"><!--
--><div style="border-radius:24px;border: 5px solid #6F468577;background-color:rgba(var(--theme-accent-color--rgb),0.1);margin:5px;margin-bottom:15px;padding:5px">[[File:Cannot.png|center|600x120px|link=]]</div>
--><div style="border-radius:24px;border: 5px solid #6F468577;background-color:rgba(var(--theme-accent-color--rgb),0.1);margin:5px;margin-bottom:15px;padding:5px">[[File:Cannot.png|center|600x120px|link=]]</div>
<span style="color:#FFF;font-size:125%;">This {{{type|page}}} may contain <span style=font-size:120%;font-weight:700>spoilers</span>. {{#if:{{{block|}}}|To view the contents of the {{{type|page}}}|To hide this warning}}, click the button below.<br></span><!--
<span style="color:#FFF;font-size:125%;">This {{{type|page}}} {{#if:{{{content|}}}|mainly covers content containing {{#var:spoilers}}. Read with care if you wish to avoid them.|contains {{#var:spoilers}}. They are hidden by default, but may be expanded.}}<br></span><!--
--><div class="mw-customtoggle-PageContent mw-customtoggle-SpoilersWarning wds-button" style="background:rgba(0,0,0,.3);color:var(--theme-accent-color);font-size:inherit;padding:14px 36px;border-radius:12px;border: 5px solid #6F468577;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;width:-webkit-fill-available;margin:5px;margin-top:15px;">{{#if:{{{block|}}}|View|Hide}}</div><!--
-->{{#if:{{{content|}}}|<div class="mw-customtoggle-PageContent mw-customtoggle-SpoilersWarning wds-button" style="background:rgba(0,0,0,.3);color:var(--theme-accent-color);font-size:inherit;padding:14px 36px;border-radius:12px;border: 5px solid #6F468577;background-color:rgba(var(--theme-accent-color--rgb),0.1);color:#fff;margin:5px;margin-top:15px;">Hide</div>}}<!--
--></div>{{#if:{{{block|}}}|<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-PageContent">}}<includeonly>[[Category:Spoilers]]</includeonly>
--></div><includeonly>[[Category:Spoilers]]</includeonly>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 07:10, 8 June 2025

{{#vardefine:spoilers|spoilers}}

Cannot.png
This page contains {{#var:spoilers}}. They are hidden by default, but may be expanded.

{{#vardefine: base page |

   Template:SpoilerWarning
 

}}{{#vardefine: current page | Template:SpoilerWarning}}{{#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}}]].