Difference between revisions of "Template:MOS-TRANS/doc"

From blackwiki
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&#61;no|forum&#61;no}}
  
== Usage ==
+
=== Hardcoded versions ===
===Parameters===
 
* First parameter (optional) - specifies whether the subject's preferred gender is m (male) or f (female)
 
* Second parameter (optional) - specifies additional topics that might produce heated discussions
 
* {{para|DS|no}} - hides the [[WP:AC/DS|discretionary sanctions]] template (shown by default)
 
* {{para|Forum|no}} - hides the {{tl|Not a forum}} template (shown by default)
 
  
===Test cases===
+
: {{tlx|MOS-TW}} – equivalent to {{tlx|MOS-TRANS|f|forum&#61;no}}
* The basic, generic usage for articles about transgender people. '''<nowiki>{{MOS-TRANS}}</nowiki>''' produces:
+
: {{tlx|MOS-TM}} – equivalent to {{tlx|MOS-TRANS|m|forum&#61;no}}
{{MOS-TRANS}}
+
: {{tlx|MOS-NB}} – equivalent to {{tlx|MOS-TRANS|nb|forum&#61;no}}
  
* If you wish to specify the preferred gender of the subject, you can ''add a parameter specifying f (for female) or m (for male)''. '''<nowiki>{{MOS-TRANS|m}}</nowiki>''' produces:
+
== Parameters ==
{{MOS-TRANS|m}}
 
  
* If you wish to provide additional topics that may produce heated discussions, you can ''add a parameter listing such topics''. '''<nowiki>{{MOS-TRANS|f|heroism, or the US military}}</nowiki>''' produces:
+
{{TemplateData header}}
{{MOS-TRANS|f|heroism, or the US military}}
+
<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 go here, and interwikis go in Wikidata -->
+
<!-- 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

Usage

{{MOS-TRANS}}
or
{{MOS-TRANS|f|ds=no|forum=no}}

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Gender1

The self-designated gender of the article subject.

Example
f
Linesuggested
Contentious topics2

Additional topics that may produce heated discussions.

Lineoptional
Discretionary sanctionsds DS

Display the discretionary sanctions warning.

Default
yes
Booleanoptional
Not a forumforum Forum

Display the {{Not a forum}} template.

Default
yes
Booleanoptional
Singular theythey

Show a message about the usage of singular they.

Default
yes
Booleanoptional
Smallsmall

Display the message in a small talk page box.

Default
no
Booleanoptional
Supress errornocat

Don't error when used on a non-talk page.

Default
false
Booleanoptional