Template:Content warning: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
m (Removed protection from "Template:Content warning")
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>: {{icon|Prerequisite_Icon.png|24px}}{{color|#c9b500|'''Content warning''': ''{{#switch: {{{1|}}}
<onlyinclude>{{ambox|type=notice|image=[[File:Blinded_Condition_Icon.webp|35px|link=]]|text={{#switch: {{{1|}}}
| article = This article
| article = This article
| section = This section
| section = This section
| text = The following text
| text = The following text
| {{#if: {{{1|}}} | {{{1|}}} | The following text}}
| {{#if: {{{1|}}} | {{{1|}}} | The following text}}
}} contains sensitive content, including {{#switch: {{{2|}}}
}} contains [[Help:Style Guide#Content warnings|sensitive content]], including {{#switch: {{{2|}}}
| #default = possible mentions of or allusions to
| #default = possible mentions of or allusions to
| detailed = detailed descriptions of
| detailed = detailed descriptions of
| described = descriptions of
| described = brief descriptions of
| explicit = explicit mentions of
| mentioned = mentions of or allusions to
| implicit = allusions to
}} {{#if: {{{3|}}} |{{Cw/Primitive|{{{3|}}} = 1}}| sexual, graphic, and violent content in all aspects}}{{#if: {{{4|}}} |, {{#if: {{{5|}}} | | and}} {{Cw/Primitive|{{{4|}}} = 1}}| }}{{#if: {{{5|}}} |, {{#if: {{{6|}}} | | and}} {{Cw/Primitive|{{{5|}}} = 1}}| }}{{#if: {{{6|}}} |, and {{Cw/Primitive|{{{6|}}} = 1}}| }}.}}</onlyinclude><includeonly></includeonly><noinclude>{{documentation|content=
}} {{#if: {{{3|}}} |{{Cw/Primitive|{{{3|}}} = 1}}| sexual, graphic or violent material in [[Help: Style Guide|all aspects]]}}{{#if: {{{4|}}} |, {{#if: {{{5|}}} | | and}} {{Cw/Primitive|{{{4|}}} = 1}}| }}{{#if: {{{5|}}} |, {{#if: {{{6|}}} | | and}} {{Cw/Primitive|{{{5|}}} = 1}}| }}{{#if: {{{6|}}} |, and {{Cw/Primitive|{{{6|}}} = 1}}| }}''}} </includeonly><noinclude>
[[Category:Templates]]
This template is used to mark articles or sections with a content warning.
[[Category:Message box templates]]}}</noinclude>{{documentation|content=This template is used to mark articles or sections with a content warning. For correct uses of the '''Cw''' template, consult the [[Help:Style Guide#Content warnings|Style Guide]].


The default template, without any parameters, is used as such:
The default template, without any parameters, is used as such:


<nowiki>{{Cw}}</nowiki>
{{Code|<nowiki>{{Cw}}</nowiki>}}
 
And appears as:


{{Cw}}
{{Cw}}
Line 30: Line 28:
* section
* section
* text
* text
Examples:
 
<nowiki> {{Cw|article}} </nowiki>
=====Examples=====
 
{{Code|<nowiki> {{Cw|article}} </nowiki>}}


{{Cw|article}}
{{Cw|article}}


<nowiki> {{Cw|section}} </nowiki>
{{Code|<nowiki>{{Cw|section}}</nowiki>}}


{{Cw|section}}  
{{Cw|section}}  
Line 41: Line 41:
A custom value can also be entered if desired:
A custom value can also be entered if desired:


<nowiki> {{Cw|This content warning}} </nowiki>
{{Code|<nowiki>{{Cw|This content warning}}</nowiki>}}


{{Cw|This content warning}}
{{Cw|This content warning}}
Line 49: Line 49:


Possible values are:  
Possible values are:  
* detailed
* detailed: Detailed descriptions of sensitive content.
* described
* described: Brief descriptions of sensitive content.
* explicit
* mentioned: Mentions of or allusions to sensitive content.
* implicit


Example:
=====Examples=====


<nowiki> {{Cw|article|detailed}} </nowiki>
{{Code|<nowiki>{{Cw|article|detailed}}</nowiki>}}


{{Cw|article|detailed}}
{{Cw|article|detailed}}
{{Code|<nowiki>{{Cw|section|mentioned}}</nowiki>}}
{{Cw|section|mentioned}}


==== Specific content warnings====
==== Specific content warnings====
Additional parameters can specify the nature of the sensitive content. The first two parameters must first be specified!
Additional parameters can specify the nature of the sensitive content. The first two parameters must always be specified before specific content warnings!


Up to 4 types of sensitive content can be specified.
Up to 4 types of sensitive content can be specified. For more general uses, leave the type of sensitive content unspecified.


Possible values are:
Possible values are:
* sv (sexual violence)
* sv: Sexual violence, including sexual abuse and sexual assault.
* violence (realistic and graphic violence)
* violence: Realistic or graphic violence.
* abuse (physical or emotional abuse or torture)
* abuse: Physical or emotional abuse.
* animal (cruelty to animals)
* animal: Cruelty toward animals.
* selfharm (self-harm and suicide)
* selfharm: Self-harm and suicide.
* drugs (realistic references to drugs and alcohol)
* drugs: Drugs or alcohol.
* sexual (sexual content).
* sexual: Explicit sexual content.
 
For more information on when to use content warnings, see the [[Help:Style Guide#Content warnings|Style Guide]].
 
=====Examples=====


Examples:
{{Code|<nowiki>{{Cw|article|detailed|abuse}}</nowiki>}}


<nowiki>{{Cw|article|explicit|abuse}}</nowiki>
{{Cw|article|detailed|abuse}}


{{Cw|article|explicit|abuse}}
{{Code|<nowiki>{{Cw|section|described|animal|sexual}}</nowiki>}}


<nowiki>{{Cw|section|implicit|animal|sexual}}</nowiki>
{{Cw|section|described|animal|sexual}}


{{Cw|section|implicit|animal|sexual}}
{{Code|<nowiki>{{Cw|section|mentioned|animal|sexual|drugs|violence}</nowiki>}}


<nowiki>{{Cw|section|implicit|animal|sexual|drugs|violence}}</nowiki>
{{Cw|section|mentioned|animal|sexual|drugs|violence}}


{{Cw|section|implicit|animal|sexual|drugs|violence}}
==Template data==
</noinclude>
<templatedata>
{
"params": {
"1": {
"suggestedvalues": [
"article",
"section",
"text"
],
"suggested": true,
"label": "Context"
},
"2": {
"suggestedvalues": [
"mentioned",
"described",
"detailed"
],
"suggested": true,
"label": "Wording"
},
"3": {
"suggestedvalues": [
"sv",
"violence",
"abuse",
"animal",
"selfharm",
"drugs",
"sexual"
],
"suggested": true,
"label": "Type of sensitive content.",
"description": "Add up to four types of sensitive content."
},
"4": {
"suggestedvalues": [
"sv",
"violence",
"abuse",
"animal",
"selfharm",
"drugs",
"sexual"
],
"suggested": true,
"label": "Type of sensitive content.",
"description": "Add up to four types of sensitive content."
},
"5": {
"suggestedvalues": [
"sv",
"violence",
"abuse",
"animal",
"selfharm",
"drugs",
"sexual"
],
"suggested": true,
"label": "Type of sensitive content.",
"description": "Add up to four types of sensitive content."
},
"6": {
"suggestedvalues": [
"sv",
"violence",
"abuse",
"animal",
"selfharm",
"drugs",
"sexual"
],
"suggested": true,
"label": "Type of sensitive content.",
"description": "Add up to four types of sensitive content."
}
},
"paramOrder": [
"1",
"2",
"3",
"4",
"5",
"6"
]
}
</templatedata>
[[Category:Templates]]
[[Category:Message box templates]]}}</noinclude>

Latest revision as of 10:08, 29 December 2023

Template documentation
Template documentation

This template is used to mark articles or sections with a content warning. For correct uses of the Cw template, consult the Style Guide.

The default template, without any parameters, is used as such:

{{Cw}}

The template can be further customised using additional parameters, described below.

Use

Introduction

The first parameter specifies whether it's a text, article or section that has the sensitive content. Possible values are:

  • article
  • section
  • text
Examples

{{Cw|article}}

{{Cw|section}}

A custom value can also be entered if desired:

{{Cw|This content warning}}

Level of detail

The second parameter specifies the level of detail of the sensitive material. The first parameter must be included for the second parameter to function.

Possible values are:

  • detailed: Detailed descriptions of sensitive content.
  • described: Brief descriptions of sensitive content.
  • mentioned: Mentions of or allusions to sensitive content.
Examples

{{Cw|article|detailed}}

{{Cw|section|mentioned}}

Specific content warnings

Additional parameters can specify the nature of the sensitive content. The first two parameters must always be specified before specific content warnings!

Up to 4 types of sensitive content can be specified. For more general uses, leave the type of sensitive content unspecified.

Possible values are:

  • sv: Sexual violence, including sexual abuse and sexual assault.
  • violence: Realistic or graphic violence.
  • abuse: Physical or emotional abuse.
  • animal: Cruelty toward animals.
  • selfharm: Self-harm and suicide.
  • drugs: Drugs or alcohol.
  • sexual: Explicit sexual content.

For more information on when to use content warnings, see the Style Guide.

Examples

{{Cw|article|detailed|abuse}}

{{Cw|section|described|animal|sexual}}

{{Cw|section|mentioned|animal|sexual|drugs|violence}

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Context1

no description

Suggested values
article section text
Unknownsuggested
Wording2

no description

Suggested values
mentioned described detailed
Unknownsuggested
Type of sensitive content.3

Add up to four types of sensitive content.

Suggested values
sv violence abuse animal selfharm drugs sexual
Unknownsuggested
Type of sensitive content.4

Add up to four types of sensitive content.

Suggested values
sv violence abuse animal selfharm drugs sexual
Unknownsuggested
Type of sensitive content.5

Add up to four types of sensitive content.

Suggested values
sv violence abuse animal selfharm drugs sexual
Unknownsuggested
Type of sensitive content.6

Add up to four types of sensitive content.

Suggested values
sv violence abuse animal selfharm drugs sexual
Unknownsuggested