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>TheDragonFire (Documentation overhaul.) |
||
| 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": "string", | ||
| + | "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": "string" | ||
| + | }, | ||
| + | "Forum": { | ||
| + | "description": "Display the {{Not a forum}} template.", | ||
| + | "type": "boolean", | ||
| + | "default": "yes" | ||
| + | }, | ||
| + | "nocat": {}, | ||
| + | "small": {}, | ||
| + | "DS": { | ||
| + | "description": "Display the discretionary sanctions warning.", | ||
| + | "type": "boolean", | ||
| + | "default": "yes" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "2", | ||
| + | "DS", | ||
| + | "Forum", | ||
| + | "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> |
Revision as of 08:00, 16 February 2018
| 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.
| String | suggested |
| Contentious topics | 2 | Additional topics that may produce heated discussions. | String | optional |
| DS | DS | Display the discretionary sanctions warning.
| Boolean | optional |
| Forum | Forum | Display the {{Not a forum}} template.
| Boolean | optional |
| Small | small | no description | Unknown | optional |
| Nocat | nocat | no description | Unknown | optional |