Difference between revisions of "Template:MOS-TRANS/doc"
Jump to navigation
Jump to search
imported>Callanecc (Add note re hiding DS and Not a forum templates) |
imported>GreenComputer (Update templatedata) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | |||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | == Usage == | ||
| + | |||
| + | : {{tlx|MOS-TRANS}} | ||
| + | : or | ||
| + | : {{tlx|MOS-TRANS|f|ds=no|forum=no}} | ||
| − | == | + | === Hardcoded versions === |
| − | == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | : {{tlx|MOS-TW}} – equivalent to {{tlx|MOS-TRANS|f|forum=no}} | |
| − | + | : {{tlx|MOS-TM}} – equivalent to {{tlx|MOS-TRANS|m|forum=no}} | |
| − | {{MOS-TRANS}} | + | : {{tlx|MOS-NB}} – equivalent to {{tlx|MOS-TRANS|nb|forum=no}} |
| − | + | == Parameters == | |
| − | |||
| − | + | {{TemplateData header}} | |
| − | { | + | <templatedata> |
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Gender", | ||
| + | "type": "line", | ||
| + | "suggested": true, | ||
| + | "example": "f", | ||
| + | "description": "The self-designated gender of the article subject." | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "Contentious topics", | ||
| + | "description": "Additional topics that may produce heated discussions.", | ||
| + | "type": "line" | ||
| + | }, | ||
| + | "nocat": { | ||
| + | "label": "Supress error", | ||
| + | "description": "Don't error when used on a non-talk page.", | ||
| + | "type": "boolean", | ||
| + | "default": "false" | ||
| + | }, | ||
| + | "small": { | ||
| + | "label": "Small", | ||
| + | "description": "Display the message in a small talk page box.", | ||
| + | "type": "boolean", | ||
| + | "default": "no" | ||
| + | }, | ||
| + | "ds": { | ||
| + | "aliases": [ | ||
| + | "DS" | ||
| + | ], | ||
| + | "label": "Discretionary sanctions", | ||
| + | "description": "Display the discretionary sanctions warning.", | ||
| + | "type": "boolean", | ||
| + | "default": "yes" | ||
| + | }, | ||
| + | "forum": { | ||
| + | "aliases": [ | ||
| + | "Forum" | ||
| + | ], | ||
| + | "label": "Not a forum", | ||
| + | "description": "Display the {{Not a forum}} template.", | ||
| + | "type": "boolean", | ||
| + | "default": "yes" | ||
| + | }, | ||
| + | "they": { | ||
| + | "label": "Singular they", | ||
| + | "description": "Show a message about the usage of singular they.", | ||
| + | "type": "boolean", | ||
| + | "default": "yes" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "2", | ||
| + | "ds", | ||
| + | "forum", | ||
| + | "they", | ||
| + | "small", | ||
| + | "nocat" | ||
| + | ], | ||
| + | "format": "inline", | ||
| + | "description": "Manual of Style identity guideline talk-page warning." | ||
| + | } | ||
| + | </templatedata> | ||
| − | <includeonly> | + | <includeonly>{{sandbox other|| |
| − | <!-- Categories | + | <!-- Categories below this line, please; interwikis at Wikidata --> |
[[Category:LGBT templates]] | [[Category:LGBT templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 02:29, 12 December 2020
| 40px | This is a documentation subpage for Template:MOS-TRANS. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Hardcoded versions
{{MOS-TW}}– equivalent to{{MOS-TRANS|f|forum=no}}{{MOS-TM}}– equivalent to{{MOS-TRANS|m|forum=no}}{{MOS-NB}}– equivalent to{{MOS-TRANS|nb|forum=no}}
Parameters
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for MOS-TRANS
Manual of Style identity guideline talk-page warning.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Gender | 1 | The self-designated gender of the article subject.
| Line | suggested |
| Contentious topics | 2 | Additional topics that may produce heated discussions. | Line | optional |
| Discretionary sanctions | ds DS | Display the discretionary sanctions warning.
| Boolean | optional |
| Not a forum | forum Forum | Display the {{Not a forum}} template.
| Boolean | optional |
| Singular they | they | Show a message about the usage of singular they.
| Boolean | optional |
| Small | small | Display the message in a small talk page box.
| Boolean | optional |
| Supress error | nocat | Don't error when used on a non-talk page.
| Boolean | optional |