Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:ContentWarning: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(14 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 '''content that can be disturbing, distressing, or sensitive''':<!--
|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}}}}}
{{{other}}}}}}}{{yesno
}}{{yesno
|{{yesno-yes|{{{add_category|}}}}}
|{{yesno-yes|{{{add_category|}}}}}
|yes=[[Category:META: Content Warning]]}}</includeonly><noinclude><templatedata>
|yes=
[[Category:META: Content Warning]]}}</includeonly><noinclude><templatedata>
{
{
"params": {
"params": {
Line 34: Line 33:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Excessive physical action which causes destruction, harm, pain, or suffering",
"example": "true"
},
},
"gore": {
"gore": {
Line 40: Line 41:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Graphic detail of violence; bloodshed, carnage",
"example": "true"
},
},
"sexual": {
"sexual": {
Line 46: Line 49:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Descriptions or depictions of sexual intercourse, eroticism, or fetishes",
"example": "true"
},
},
"mental_illness": {
"mental_illness": {
Line 52: Line 57:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Health conditions involving distressing changes in emotion, thinking or behavior",
"example": "true"
},
},
"self_harm": {
"self_harm": {
Line 58: Line 65:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Intentional actions that cause harm to oneself",
"example": "true"
},
},
"psychological_abuse": {
"psychological_abuse": {
Line 64: Line 73:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Abuse resulting in psychological trauma; mental abuse, emotional abuse",
"example": "true"
},
},
"physical_abuse": {
"physical_abuse": {
Line 70: Line 81:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Abuse resulting in physical trauma (violence, injuries)",
"example": "true"
},
},
"drug_abuse": {
"drug_abuse": {
Line 76: Line 89:
"type": "boolean",
"type": "boolean",
"default": "false",
"default": "false",
"suggested": true
"suggested": true,
"description": "Habitual misuse of drugs or substances",
},
"add_category": {
"example": "true"
"label": "Add category",
"example": "Whether to add the category",
"type": "boolean",
"default": "true"
},
},
"other": {
"other": {
Line 88: Line 97:
"description": "A bulleted list of other necessary content warnings",
"description": "A bulleted list of other necessary content warnings",
"type": "content"
"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)",
"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",
"add_category"
]
}
}
</templatedata>
</templatedata>
Line 139: Line 143:
*example4
*example4
*example5
*example5
|add_category=no
}}
}}
[[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)

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Violenceviolence

Excessive physical action which causes destruction, harm, pain, or suffering

Default
false
Example
true
Booleansuggested
Goregore

Graphic detail of violence; bloodshed, carnage

Default
false
Example
true
Booleansuggested
Sex or sexual topicssexual

Descriptions or depictions of sexual intercourse, eroticism, or fetishes

Default
false
Example
true
Booleansuggested
Mental illnessmental_illness

Health conditions involving distressing changes in emotion, thinking or behavior

Default
false
Example
true
Booleansuggested
Self-harmself_harm

Intentional actions that cause harm to oneself

Default
false
Example
true
Booleansuggested
Psychological abusepsychological_abuse

Abuse resulting in psychological trauma; mental abuse, emotional abuse

Default
false
Example
true
Booleansuggested
Physical abusephysical_abuse

Abuse resulting in physical trauma (violence, injuries)

Default
false
Example
true
Booleansuggested
Drug abusedrug_abuse

Habitual misuse of drugs or substances

Default
false
Example
true
Booleansuggested
Otherother

A bulleted list of other necessary content warnings

Contentoptional
Add categoryadd_category

Whether to add the category

Default
true
Example
false
Booleanoptional

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
}}

Content Warning
This article contains content that can be disturbing, distressing, or sensitive:
  • Violence
  • Gore
  • Sex or sexual topics
  • Mental illness
  • Self-harm
  • Psychological abuse
  • Physical abuse
  • Drug abuse
  • example1
  • example2
  • example3
  • example4
  • example5