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 |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Hatnote |
<includeonly><templatestyles src="ContentWarning/styles.css"/>{{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: {{{other}}}| |
-->{{#if: {{{other|}}}| |
||
{{{other}}}}}}}{{yesno |
{{{other}}}}}}}{{yesno |
||
|{{yesno-yes|{{{add_category|}}}}} |
|{{yesno-yes|{{{add_category|}}}}} |
||
| ⚫ | |||
|yes= |
|||
| ⚫ | |||
{ |
{ |
||
"params": { |
"params": { |
||
| Line 34: | Line 34: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Excessive physical action which causes destruction, harm, pain, or suffering" |
"description": "Excessive physical action which causes destruction, harm, pain, or suffering", |
||
| ⚫ | |||
}, |
}, |
||
"gore": { |
"gore": { |
||
| Line 41: | Line 42: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Graphic detail of violence; bloodshed, carnage" |
"description": "Graphic detail of violence; bloodshed, carnage", |
||
"example": "true" |
|||
}, |
}, |
||
"sexual": { |
"sexual": { |
||
| Line 48: | Line 50: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Descriptions or depictions of sexual intercourse, eroticism, or fetishes" |
"description": "Descriptions or depictions of sexual intercourse, eroticism, or fetishes", |
||
"example": "true" |
|||
}, |
}, |
||
"mental_illness": { |
"mental_illness": { |
||
| Line 55: | Line 58: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Health conditions involving distressing changes in emotion, thinking or behavior" |
"description": "Health conditions involving distressing changes in emotion, thinking or behavior", |
||
"example": "true" |
|||
}, |
}, |
||
"self_harm": { |
"self_harm": { |
||
| Line 62: | Line 66: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Intentional actions that cause harm to oneself" |
"description": "Intentional actions that cause harm to oneself", |
||
"example": "true" |
|||
}, |
}, |
||
"psychological_abuse": { |
"psychological_abuse": { |
||
| Line 69: | Line 74: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Abuse resulting in psychological trauma; mental abuse, emotional abuse" |
"description": "Abuse resulting in psychological trauma; mental abuse, emotional abuse", |
||
"example": "true" |
|||
}, |
}, |
||
"physical_abuse": { |
"physical_abuse": { |
||
| Line 76: | Line 82: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Abuse resulting in physical trauma (violence, injuries)" |
"description": "Abuse resulting in physical trauma (violence, injuries)", |
||
"example": "true" |
|||
}, |
}, |
||
"drug_abuse": { |
"drug_abuse": { |
||
| Line 83: | Line 90: | ||
"default": "false", |
"default": "false", |
||
"suggested": true, |
"suggested": true, |
||
"description": "Habitual misuse of drugs or substances" |
"description": "Habitual misuse of drugs or substances", |
||
"example": "true" |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
}, |
||
"other": { |
"other": { |
||
| Line 95: | Line 97: | ||
"description": "A bulleted list of other necessary content warnings", |
"description": "A bulleted list of other necessary content warnings", |
||
"type": "content" |
"type": "content" |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
"default": "true", |
|||
| ⚫ | |||
"example": "false" |
|||
} |
} |
||
}, |
}, |
||
"description": "Hatnote for a content warning (also called a content notice, content disclosure, or trigger warning)", |
"description": "Hatnote for a content warning (also called a content notice, content disclosure, or trigger warning)", |
||
"format": "block" |
"format": "block" |
||
"paramOrder": [ |
|||
"violence", |
|||
"gore", |
|||
"sexual", |
|||
"mental_illness", |
|||
"self_harm", |
|||
"psychological_abuse", |
|||
"physical_abuse", |
|||
"drug_abuse", |
|||
"other", |
|||
| ⚫ | |||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
| Line 146: | Line 143: | ||
*example4 |
*example4 |
||
*example5 |
*example5 |
||
| ⚫ | |||
}} |
}} |
||
[[Category:Templates: tesinormed]] |
__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