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
 
(4 intermediate revisions by the same user not shown)
Line 26: Line 26:
{{{other}}}}}}}{{yesno
{{{other}}}}}}}{{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 93: Line 92:
"description": "Habitual misuse of drugs or substances",
"description": "Habitual misuse of drugs or substances",
"example": "true"
"example": "true"
},
"other": {
"label": "Other",
"description": "A bulleted list of other necessary content warnings",
"type": "content"
},
},
"add_category": {
"add_category": {
Line 100: Line 104:
"description": "Whether to add the category",
"description": "Whether to add the category",
"example": "false"
"example": "false"
},
"other": {
"label": "Other",
"description": "A bulleted list of other necessary content warnings",
"type": "content",
"example": "*example1\n*example2\n*example3\n*example4\n*example5"
}
}
},
},
"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 157: 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