User:Bongolium500/Sandbox 9

From Tardis Wiki, the free Doctor Who reference

Page[[edit] | [edit source]]

Template Code[[edit] | [edit source]]

The following should be added to {{trigger}}, {{trigger warning}}, {{content warning}}, {{content}} or {{warning}}.

<includeonly><div id="article-type" class="type-trigger"><div id="type-title">'''TRIGGER WARNING!'''</div><p>This page covers '''{{#if:{{{1|}}}|{{#if:{{#pos:{{{1|}}}|and}}|{{{1}}}, subjects|{{{1}}}, a subject}}|subject matter}} which some readers may find distressing'''.</p></div>[[Category:Pages with trigger warnings]]</includeonly><noinclude>{{documentation}}[[Category:Templates]][[Category:Templates deliberately classified as "unknown"]][[Category:Templates that add a tracking category]]</noinclude>

CSS[[edit] | [edit source]]

The following should be added to MediaWiki:Tardis.css:

 div.type-trigger {
     background: #292832 url(https://static.wikia.nocookie.net/tardis/images/7/79/Trigger_Template_200px.jpg) no-repeat;
     z-index: 5;
 }
 

Examples[[edit] | [edit source]]

No specified subject[[edit] | [edit source]]

{{User:Bongolium500/trigger}}
Content Warning!

This page covers subject matter which some readers may find distressing.

You may wish to see T:NOT SFW and our parent page for some more information.

One specified subject[[edit] | [edit source]]

{{User:Bongolium500/trigger|rape}}
Content Warning!

This page covers rape, a subject which some readers may find distressing.

You may wish to see T:NOT SFW and our parent page for some more information.

Multiple specified subject[[edit] | [edit source]]

{{User:Bongolium500/trigger|rape and sexual assault}}
Content Warning!

This page covers rape and sexual assault, subjects which some readers may find distressing.

You may wish to see T:NOT SFW and our parent page for some more information.

Image Suggestions[[edit] | [edit source]]

Feel free to add any image suggestions here. Ideally, they should be 200px wide but they can be resized later.

Section[[edit] | [edit source]]

Template Code[[edit] | [edit source]]

The following should be added to {{section trigger}}, {{section warning}} or {{section content warning}}.

<div id="inline-box">Trigger Warning
<p>This page covers '''{{#if:{{{1|}}}|{{#if:{{#pos:{{{1|}}}|and}}|{{{1}}}, subjects|{{{1}}}, a subject}}|subject matter}} which some readers may find distressing'''.</p></div>

Examples[[edit] | [edit source]]

The formatting here is a bit strange as the template should be placed directly under a heading, which isn't the case here.

No specified subject[[edit] | [edit source]]

{{User:Bongolium500/section trigger}}
Content Warning!

This section covers subject matter which some readers may find distressing.



One specified subject[[edit] | [edit source]]

{{User:Bongolium500/section trigger|rape}}
Content Warning!

This section covers rape, a subject which some readers may find distressing.



Multiple specified subject[[edit] | [edit source]]

{{User:Bongolium500/section trigger|rape and sexual assault}}
Content Warning!

This section covers rape and sexual assault, subjects which some readers may find distressing.