Difference between revisions of "Template:Humor/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Sdkb
(Added TemplateData)
Line 26: Line 26:
  
 
}}</includeonly>
 
}}</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Shortcuts",
 +
"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"
 +
}
 +
}
 +
}
 +
</templatedata>

Revision as of 17:33, 25 April 2020

Template:Template redirect

Usage

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

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

See also


No description.

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