Difference between revisions of "User:Pitapot/Template:ContentWarningStart"

From Blaseball Wiki
Line 1: Line 1:
 
<includeonly><div class="cw">{{Alert Box
 
<includeonly><div class="cw">{{Alert Box
| gameicon = hazard-sign
+
| gameicon = {{{gameicon|hazard-sign}}}
 
| header  = Content Warning
 
| header  = Content Warning
 
| text  = The following content contains: {{{cw}}}. Reader discretion is advised. For more information on our Content Warning Policy, please visit our [[Style Guide]]. <span class="mw-customtoggle-CW btn btn-primary btn-sm">Show</span>
 
| text  = The following content contains: {{{cw}}}. Reader discretion is advised. For more information on our Content Warning Policy, please visit our [[Style Guide]]. <span class="mw-customtoggle-CW btn btn-primary btn-sm">Show</span>
 
}}<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-CW"></includeonly><noinclude>
 
}}<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-CW"></includeonly><noinclude>
 +
==How to Use==
 +
Stick the following before the content you'd like a warning for:
 +
<nowiki><code>{{User:Pitapot/Template:ContentWarningStart
 +
|cw=list of warnings}}</code></nowiki>
 +
and the following at the end:
 +
<nowiki><code>{{User:Pitapot/Template:ContentWarningEnd}}</code></nowiki>
 +
==DEMO==
 +
 +
The following wikitext
 +
<nowiki><code>{{User:Pitapot/Template:ContentWarningStart
 +
|cw=Lorem ipsum dolor sit amet
 +
Lorem ipsum dolor sit amet
 +
Lorem ipsum dolor sit amet}}adsjkdsmjkdsamkdmsklasmklmadslmdsakldaskdksamdmskla
 +
{{User:Pitapot/Template:ContentWarningEnd}}</code></nowiki>
 +
 +
produces the following:
 +
 
{{User:Pitapot/Template:ContentWarningStart
 
{{User:Pitapot/Template:ContentWarningStart
 
|cw=Lorem ipsum dolor sit amet
 
|cw=Lorem ipsum dolor sit amet

Revision as of 20:26, 23 May 2021

How to Use

Stick the following before the content you'd like a warning for: <code>{{User:Pitapot/Template:ContentWarningStart |cw=list of warnings}}</code> and the following at the end: <code>{{User:Pitapot/Template:ContentWarningEnd}}</code>

DEMO

The following wikitext <code>{{User:Pitapot/Template:ContentWarningStart |cw=Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet}}adsjkdsmjkdsamkdmsklasmklmadslmdsakldaskdksamdmskla {{User:Pitapot/Template:ContentWarningEnd}}</code>

produces the following:

Content Warning
The following content contains: Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet. Reader discretion is advised. For more information on our Content Warning Policy, please visit our Style Guide. Show

adsjkdsmjkdsamkdmsklasmklmadslmdsakldaskdksamdmskla