Template:ContentWarning: Difference between revisions
More actions
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
Tesinormed (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="ContentWarning/styles.css"/>{{Hatnote |
|||
{{Hatnote |
|||
|class=hatnote-content-warning |
|||
|file=Exclamation-triangle-fill.svg |
|file=Exclamation-triangle-fill.svg |
||
|file_class=skin-invert-image |
|file_class=skin-invert-image |
||
| Line 5: | Line 6: | ||
|primary=Content Warning |
|primary=Content Warning |
||
|italic_secondary=no |
|italic_secondary=no |
||
|secondary=This article contains |
|secondary=This article contains content that can be disturbing, distressing, or sensitive:<!-- |
||
-->{{yesno|{{yesno-no|{{{violence}}}}}|yes= |
-->{{yesno|{{yesno-no|{{{violence}}}}}|yes= |
||
*Violence}}<!-- |
*Violence}}<!-- |
||
| Line 22: | Line 23: | ||
-->{{yesno|{{yesno-no|{{{drug_abuse}}}}}|yes= |
-->{{yesno|{{yesno-no|{{{drug_abuse}}}}}|yes= |
||
*Drug abuse}}<!-- |
*Drug abuse}}<!-- |
||
-->{{#if: {{{ |
-->{{#if: {{{other|}}}| |
||
{{{other}}}}}}}{{yesno |
|||
-->{{#if: {{{other2}}}| |
|||
*{{{other2}}}}}<!-- |
|||
-->{{#if: {{{other3}}}| |
|||
*{{{other3}}}}}<!-- |
|||
-->{{#if: {{{other4}}}| |
|||
*{{{other4}}}}}<!-- |
|||
-->{{#if: {{{other5}}}| |
|||
*{{{other5}}}}} |
|||
}}<includeonly>{{yesno |
|||
|{{yesno-yes|{{{add_category|}}}}} |
|{{yesno-yes|{{{add_category|}}}}} |
||
|yes=[[Category:META: Content Warning]]}}</includeonly><noinclude><templatedata> |
|||
|yes= |
|||
{ |
|||
[[Category:META: Content Warning]]}}</includeonly><noinclude> |
|||
"params": { |
|||
"violence": { |
|||
"label": "Violence", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Excessive physical action which causes destruction, harm, pain, or suffering", |
|||
"example": "true" |
|||
}, |
|||
"gore": { |
|||
"label": "Gore", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Graphic detail of violence; bloodshed, carnage", |
|||
"example": "true" |
|||
}, |
|||
"sexual": { |
|||
"label": "Sex or sexual topics", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Descriptions or depictions of sexual intercourse, eroticism, or fetishes", |
|||
"example": "true" |
|||
}, |
|||
"mental_illness": { |
|||
"label": "Mental illness", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Health conditions involving distressing changes in emotion, thinking or behavior", |
|||
"example": "true" |
|||
}, |
|||
"self_harm": { |
|||
"label": "Self-harm", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Intentional actions that cause harm to oneself", |
|||
"example": "true" |
|||
}, |
|||
"psychological_abuse": { |
|||
"label": "Psychological abuse", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Abuse resulting in psychological trauma; mental abuse, emotional abuse", |
|||
"example": "true" |
|||
}, |
|||
"physical_abuse": { |
|||
"label": "Physical abuse", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Abuse resulting in physical trauma (violence, injuries)", |
|||
"example": "true" |
|||
}, |
|||
"drug_abuse": { |
|||
"label": "Drug abuse", |
|||
"type": "boolean", |
|||
"default": "false", |
|||
"suggested": true, |
|||
"description": "Habitual misuse of drugs or substances", |
|||
"example": "true" |
|||
}, |
|||
"other": { |
|||
"label": "Other", |
|||
"description": "A bulleted list of other necessary content warnings", |
|||
"type": "content" |
|||
}, |
|||
"add_category": { |
|||
"label": "Add category", |
|||
"type": "boolean", |
|||
"default": "true", |
|||
"description": "Whether to add the category", |
|||
"example": "false" |
|||
} |
|||
}, |
|||
"description": "Hatnote for a content warning (also called a content notice, content disclosure, or trigger warning)", |
|||
"format": "block" |
|||
} |
|||
</templatedata> |
|||
==Example== |
==Example== |
||
<syntaxhighlight lang="wikitext"> |
|||
{{ContentWarning |
{{ContentWarning |
||
|violence=yes |
|violence=yes |
||
| Line 46: | Line 122: | ||
|physical_abuse=yes |
|physical_abuse=yes |
||
|drug_abuse=yes |
|drug_abuse=yes |
||
| |
|other=*example1 |
||
*example2 |
|||
*example3 |
|||
*example4 |
|||
*example5 |
|||
}} |
}} |
||
</syntaxhighlight> |
|||
[[Category:Templates: tesinormed]] |
|||
{{ContentWarning |
|||
|violence=yes |
|||
|gore=yes |
|||
|sexual=yes |
|||
|mental_illness=yes |
|||
|self_harm=yes |
|||
|psychological_abuse=yes |
|||
|physical_abuse=yes |
|||
|drug_abuse=yes |
|||
|other=*example1 |
|||
*example2 |
|||
*example3 |
|||
*example4 |
|||
*example5 |
|||
|add_category=no |
|||
}} |
|||
__NOTOC__[[Category:Templates: tesinormed]] |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 04:56, July 7, 2025
Hatnote for a content warning (also called a content notice, content disclosure, or trigger warning)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Violence | violence | Excessive physical action which causes destruction, harm, pain, or suffering
| Boolean | suggested |
| Gore | gore | Graphic detail of violence; bloodshed, carnage
| Boolean | suggested |
| Sex or sexual topics | sexual | Descriptions or depictions of sexual intercourse, eroticism, or fetishes
| Boolean | suggested |
| Mental illness | mental_illness | Health conditions involving distressing changes in emotion, thinking or behavior
| Boolean | suggested |
| Self-harm | self_harm | Intentional actions that cause harm to oneself
| Boolean | suggested |
| Psychological abuse | psychological_abuse | Abuse resulting in psychological trauma; mental abuse, emotional abuse
| Boolean | suggested |
| Physical abuse | physical_abuse | Abuse resulting in physical trauma (violence, injuries)
| Boolean | suggested |
| Drug abuse | drug_abuse | Habitual misuse of drugs or substances
| Boolean | suggested |
| Other | other | A bulleted list of other necessary content warnings | Content | optional |
| Add category | add_category | Whether to add the category
| Boolean | optional |
Example
{{ContentWarning
|violence=yes
|gore=yes
|sexual=yes
|mental_illness=yes
|self_harm=yes
|psychological_abuse=yes
|physical_abuse=yes
|drug_abuse=yes
|other=*example1
*example2
*example3
*example4
*example5
}}
- Violence
- Gore
- Sex or sexual topics
- Mental illness
- Self-harm
- Psychological abuse
- Physical abuse
- Drug abuse
- example1
- example2
- example3
- example4
- example5