Difference between revisions of "Template:Humor/doc"
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
| This is a documentation subpage for Template:Humor. It contains usage information, categories and other content that is not part of the original template page. |
| This template's documentation is missing, inadequate, or does not accurately describe its functionality and/or the parameters in its code. Please help to expand and improve it. (February 2020) |
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
- {{Humorantipolicy}}
- {{Humorous essay}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Shortcuts | 1 | Adds up to five shortcuts. No brackets needed.
| Page | suggested |
| 2 | 2 | no description | Unknown | optional |
| 3 | 3 | no description | Unknown | optional |
| 4 | 4 | no description | Unknown | optional |
| 5 | 5 | no description | Unknown | optional |
| Small | small | Makes the box small
| Unknown | optional |
| Text | text | Replaces the default text with a custom message | String | optional |
| Section | section | Replaces "page" with "section"
| Unknown | optional |
| No category | nocat | Does not add the page to [[:Category:Wikipedia humor]] | Boolean | optional |