Difference between revisions of "Template:Humor/doc"

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 20 interwiki links, now provided by Wikidata on d:Q6481217)
imported>Paine Ellsworth
(update /doc)
 
(25 intermediate revisions by 17 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{no substitution}}
 +
{{Template redirect|Funny|Humour}}
 +
This template adds a box at the top of a humorous page to let readers know not to take it seriously.
  
=== Usage ===
+
===Usage===
  
This template '''should never be used on pages in the article namespace''', since it should never include any non-factual or non-encyclopedic articles. Only use it in other spaces such as Wikipedia namespace.
+
Per [[Wikipedia:Requests_for_comment/April_Fools%27#Require_all_jokes_other_than_the_main_page_to_be_tagged|this RfC]], this template or another disclosure template '''''must'' be used on all humorous pages'''.
  
Use <tt>{{tnull|humor|irony{{=}}yes}}</tt> to display an irony caution:
+
It '''should ''never'' be used on pages in the article namespace''', because the article namespace should never include any non-factual or non-encyclopedic pages. Only use it in ''other'' [[WP:Namespace|namespaces]], such as the Wikipedia namespace.
  
{{humor|irony=yes}}
+
===Opting out===
 +
If you dislike having jokes on pages that you view spoiled, append the following to [[Special:MyPage/common.css]]:
 +
<syntaxhighlight lang="css">
 +
.ombox-humor,            /* hide [[Template:Humor]] */
 +
.ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
 +
    display: none;
 +
}
 +
</syntaxhighlight>
  
If you dislike having your jokes spoiled, append the following to [[Special:MyPage/common.css]]:
+
===Template data===
<source lang="css">
+
<templatedata>
body.ns-2.action-view .ombox-humor,          
+
{
body.ns-4.action-view .ombox-humor,           /* hide [[Template:Humor]] */
+
"params": {
body.ns-2.action-view .ombox-humorantipolicy,
+
"1": {
body.ns-4.action-view .ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
+
"label": "Shortcuts",
display: none;
+
"description": "Adds up to five shortcuts. No brackets needed.",
 +
"example": "WP:END",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
},
 +
"2": {},
 +
"3": {},
 +
"4": {},
 +
"5": {},
 +
"small": {
 +
"description": "Makes the box small",
 +
"example": "yes"
 +
},
 +
"text": {
 +
"description": "Replaces the default text with a custom message",
 +
"type": "string"
 +
},
 +
"section": {
 +
"description": "Replaces \"page\" with \"section\"",
 +
"example": "yes"
 +
},
 +
"nocat": {
 +
"label": "No category",
 +
"description": "Does not add the page to [[:Category:Wikipedia humor]]",
 +
"type": "boolean"
 +
}
 +
},
 +
"description": "Adds a box at the top of a humorous page to let readers know not to take it seriously."
 
}
 
}
</source>
+
</templatedata>
 +
 
 +
===See also===
  
=== See also ===
+
*{{tl|Humorantipolicy}}
 +
*{{tl|Humorous essay}}
 +
*{{tl|Humor section}} ([[WP:Wrapper templates|wrapper]])
  
*{{tl|Humornotguideline}}
+
{{Humor disclosure templates}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia header templates|{{PAGENAME}}]]
+
[[Category:Wikipedia humor header templates|{{PAGENAME}}]]
 
[[Category:Wikipedia templates which apply NOINDEX]]
 
[[Category:Wikipedia templates which apply NOINDEX]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 05:30, 2 December 2020

Template:Template redirect This template adds a box at the top of a humorous page to let readers know not to take it seriously.

Usage

Per this RfC, this template or another disclosure template must be used on all humorous pages.

It should never be used on pages in the article namespace, because the article namespace should never include any non-factual or non-encyclopedic pages. Only use it in other namespaces, such as the Wikipedia namespace.

Opting out

If you dislike having jokes on pages that you view spoiled, append the following to Special:MyPage/common.css:

.ombox-humor,            /* hide [[Template:Humor]] */
.ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
    display: none;
}

Template data

Adds a box at the top of a humorous page to let readers know not to take it seriously.

Template parameters

ParameterDescriptionTypeStatus
Shortcuts1

Adds up to five shortcuts. No brackets needed.

Example
WP:END
Pagesuggested
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
Smallsmall

Makes the box small

Example
yes
Unknownoptional
Texttext

Replaces the default text with a custom message

Stringoptional
Sectionsection

Replaces "page" with "section"

Example
yes
Unknownoptional
No categorynocat

Does not add the page to [[:Category:Wikipedia humor]]

Booleanoptional

See also