Ad placeholder

Template:Content warning: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>: {{icon|Prerequisite_Icon.png|24px}}<small class="noexcerpt navigation-not-searchable">{{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
Line 9: Line 9:
| described = brief descriptions of
| described = brief descriptions of
| mentioned = mentions of or allusions to
| mentioned = mentions of or 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}}| }}''}}.</small></includeonly><noinclude>
}} {{#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=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]].
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:


{{Code|<nowiki>{{Cw}}</nowiki>}}
{{Template demo
 
| style = list
{{Cw}}
| <nowiki>{{Cw}}</nowiki>
 
}}
The template can be further customised using additional parameters, described below.


The template can be further customized using additional parameters, described below.
__NOTOC__
== Use ==
== Use ==


Line 29: Line 29:


=====Examples=====
=====Examples=====
 
{{Template demo
{{Code|<nowiki> {{Cw|article}} </nowiki>}}
| style = list
 
| <nowiki> {{Cw|article}} </nowiki>
{{Cw|article}}
| <nowiki>{{Cw|section}}</nowiki>
 
| <nowiki>{{Cw|This content warning}}</nowiki>
{{Code|<nowiki>{{Cw|section}}</nowiki>}}
}}
 
{{Cw|section}}
 
A custom value can also be entered if desired:
 
{{Code|<nowiki>{{Cw|This content warning}}</nowiki>}}
 
{{Cw|This content warning}}


==== Level of detail ====
==== Level of detail ====
Line 53: Line 45:


=====Examples=====
=====Examples=====
 
{{Template demo
{{Code|<nowiki>{{Cw|article|detailed}}</nowiki>}}
| style = list
 
| <nowiki>{{Cw|article|detailed}}</nowiki>
{{Cw|article|detailed}}
| <nowiki>{{Cw|section|mentioned}}</nowiki>
 
}}
{{Code|<nowiki>{{Cw|section|mentioned}}</nowiki>}}
 
{{Cw|section|mentioned}}


==== Specific content warnings====
==== Specific content warnings====
Line 79: Line 68:


=====Examples=====
=====Examples=====
{{Template demo
| style = list
| <nowiki>{{Cw|article|detailed|abuse}}</nowiki>
| <nowiki>{{Cw|section|described|animal|sexual}}</nowiki>
| <nowiki>{{Cw|section|mentioned|animal|sexual|drugs|violence}}</nowiki>
}}


{{Code|<nowiki>{{Cw|article|detailed|abuse}}</nowiki>}}
==Template data==
 
<templatedata>
{{Cw|article|detailed|abuse}}
{
 
"params": {
{{Code|<nowiki>{{Cw|section|described|animal|sexual}}</nowiki>}}
"1": {
 
"suggestedvalues": [
{{Cw|section|described|animal|sexual}}
"article",
 
"section",
{{Code|<nowiki>{{Cw|section|mentioned|animal|sexual|drugs|violence}</nowiki>}}
"text"
 
],
{{Cw|section|mentioned|animal|sexual|drugs|violence}}
"suggested": true,
</noinclude>
"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>

Navigation menu