Template:Trigger: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (Protected "Template:Trigger": just an important message that shouldn't be wide open for changes ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (cleaner)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="background-color: white; margin: 0 2.5%; padding: 0 0px; border: 1px solid #ff0000;">
<div style="background-color: #ffffff; margin: 0 2.5%; padding: 0 0px; border: 1px solid #ff0000;">
{| border="0"  
{| border="0"
|-  
|-  
| width="3" bgcolor=#ff0000|&nbsp;
| width="3" bgcolor=#ff0000|&nbsp;
| width="40" align="center"|[[File:{{{image|Trigger warning icon.jpg}}}|25x25px|link=]]
| width="40" align="center"|[[File:{{{image|Trigger warning icon.jpg}}}|25x25px|link=]]
| '''{{{1|Trigger warning (general)}}}'''
| {{#if:{{{1|}}}|'''Trigger warning: {{{1}}}|'''Trigger warning (general)'''}}
|}
|}
</div><noinclude>
</div><noinclude>
=== Description ===
=== Description ===
A simple way to introduce a trigger warning. Of course, general viewers will see it, so don't use it inappropriately.
This is a simple message box to introduce a trigger warning. Of course, general viewers will see it, so don't use it inappropriately.
 
parameters
* first parameter, unnamed - required, a message to be displayed.
* image - optional, an alternate image to be displayed


If no specific warning type is added after the pipe, <code>|</code>, this generic message will be displayed:
<pre>{{trigger}}</pre>
appears as:
{{trigger}}


=== Usage ===
=== Usage ===
coded as:
<pre>
<pre>
{{trigger|Trigger warning: suicide, death}}
{{trigger|suicide, death}}
</pre>
</pre>
appears as:
appears as:
{{trigger|Trigger warning: suicide, death}}
{{trigger|suicide, death}}
[[Category: Message templates]]
[[Category: Templates]]
</noinclude>

Latest revision as of 05:58, 2 August 2024

  Trigger warning icon.jpg Trigger warning (general)

Description

This is a simple message box to introduce a trigger warning. Of course, general viewers will see it, so don't use it inappropriately.

If no specific warning type is added after the pipe, |, this generic message will be displayed:

{{trigger}}

appears as:

  Trigger warning icon.jpg Trigger warning (general)

Usage

{{trigger|suicide, death}}

appears as:

  Trigger warning icon.jpg Trigger warning: suicide, death