(Create template) |
m (s/Copied from/Based on/ to reflect the recent additions) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
| genitive|possessive|pos|his/her|his|her|their = {{{{{|safesubst:}}}gender:{{{1|.}}}|his|her|their}} | | genitive|possessive|pos|his/her|his|her|their = {{{{{|safesubst:}}}gender:{{{1|.}}}|his|her|their}} | ||
| genitive pronoun|possessive pronoun|poss|his/hers|his2|hers|theirs = {{{{{|safesubst:}}}gender:{{{1|.}}}|his|hers|theirs}} | | genitive pronoun|possessive pronoun|poss|his/hers|his2|hers|theirs = {{{{{|safesubst:}}}gender:{{{1|.}}}|his|hers|theirs}} | ||
| they're = {{{{{|safesubst:}}}gender:{{{1|.}}}|he's|she's|they're}} | |||
| they've = {{{{{|safesubst:}}}gender:{{{1|.}}}|he's|she's|they've}} | |||
| they'll = {{{{{|safesubst:}}}gender:{{{1|.}}}|he'll|she'll|they'll}} | |||
| they'd = {{{{{|safesubst:}}}gender:{{{1|.}}}|he'd|she'd|they'd}} | |||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
Usage: <code><nowiki>{{p|Username|case}}</nowiki></code>, where <code>Username</code> is a username without the "User:" prefix, and <code>case</code> is one of the below keywords. Consult [[wikipedia:English_personal_pronouns#Basic|the English Wikipedia]] for a refresher on English pronouns. | This template can be used to display the chosen pronouns (in English only) of any editor/user of this wiki. It can't be used for someone without an account here. | ||
<del>Also note that the gender options in MediaWiki are epicene/fem./masc., and so "it", "one", and neopronouns are unavailable ([https://stackoverflow.com/a/14285040 more could be added] but many, many system strings would need updating).</del> Actually I think re-implementing this with [[metawikimedia:Help:Array|metatemplate tricks]], which would allow this to be used for people without an account, would also allow for arbitrary sets of pronouns. --yoshi | |||
Usage: <code><nowiki>{{p|Username|case}}</nowiki></code>, where <code>Username</code> is a username without the "User:" prefix (case-sensitive! check on [[Special:ListUsers]]), and <code>case</code> is one of the below keywords. Consult [[wikipedia:English_personal_pronouns#Basic|the English Wikipedia]] for a refresher on English pronouns. | |||
* <code>they</code> for the subjective case (results in "he", "she", or "they") | * <code>they</code> for the subjective case (results in "he", "she", or "they") | ||
** equivalents: <code>nominative</code>, <code>subject</code>, <code>subjective</code>, <code>sub</code>, and <code>he/she</code> | ** equivalents: <code>nominative</code>, <code>subject</code>, <code>subjective</code>, <code>sub</code>, and <code>he/she</code> | ||
** <code>they're</code> for -is/-are contraction (results in "he's", "she's", or "they're") | |||
** <code>they've</code> for -has/-have contraction (results in "he's", "she's", or "they've") | |||
** <code>they'll</code> for -will contraction (results in "he'll", "she'll", or "they'll") | |||
** <code>they'd</code> for -would contraction (results in "he'd", "she'd", or "they'd") | |||
* <code>them</code> for the objective case (results in "him", "her", or "them") | * <code>them</code> for the objective case (results in "him", "her", or "them") | ||
** equivalents: <code>accusative</code>, <code>object</code>, <code>oblique</code>, <code>objective</code>, <code>dative</code>, <code>prepositional</code>, <code>obj</code>, <code>him/her</code>, and <code>him</code> | ** equivalents: <code>accusative</code>, <code>object</code>, <code>oblique</code>, <code>objective</code>, <code>dative</code>, <code>prepositional</code>, <code>obj</code>, <code>him/her</code>, and <code>him</code> | ||
Line 20: | Line 30: | ||
* <code>themself</code> for the reflexive case (results in "himself", "herself", or "themself") | * <code>themself</code> for the reflexive case (results in "himself", "herself", or "themself") | ||
** equivalents: <code>reflexive2</code>, <code>intensive2</code>, <code>himself/herself2</code> | ** equivalents: <code>reflexive2</code>, <code>intensive2</code>, <code>himself/herself2</code> | ||
** <code>themselves</code> for the | ** <code>themselves</code> for the reflexive case with the alternate epicene form (results in "himself", "herself", or "themselves") | ||
*** equivalents: <code>reflexive</code>, <code>intensive</code>, and <code>himself/herself</code> | *** equivalents: <code>reflexive</code>, <code>intensive</code>, and <code>himself/herself</code> | ||
Line 26: | Line 36: | ||
Examples: | Examples: | ||
* <code><nowiki>{{p| | <!-- users don't exist | ||
* <code><nowiki>{{p| | * <code><nowiki>{{p|DummyAccM|them}}</nowiki></code> ⟶ {{p|DummyAccM|them}} | ||
* <code><nowiki>{{p| | * <code><nowiki>{{p|DummyAccF|themself}}</nowiki></code> ⟶ {{p|DummyAccF|themself}} | ||
* <code><nowiki>{{p| | * <code><nowiki>{{p|DummyAccNB|their}}</nowiki></code> ⟶ {{p|DummyAccNB|their}} | ||
* <code><nowiki>{{p| | * <code><nowiki>{{p|DummyAccM|they}}</nowiki></code> ⟶ {{p|DummyAccM|they}} | ||
* <code><nowiki>{{p| | * <code><nowiki>{{p|DummyAccF|theirs}}</nowiki></code> ⟶ {{p|DummyAccF|theirs}} | ||
* <code><nowiki>{{p|DummyAccNB}}</nowiki></code> ⟶ {{p|DummyAccNB}} | |||
--> | |||
* <code><nowiki>{{p|DummyAccM|them}}</nowiki></code> ⟶ him | |||
* <code><nowiki>{{p|DummyAccF|themself}}</nowiki></code> ⟶ herself | |||
* <code><nowiki>{{p|DummyAccNB|their}}</nowiki></code> ⟶ their | |||
* <code><nowiki>{{p|DummyAccM|they}}</nowiki></code> ⟶ he | |||
* <code><nowiki>{{p|DummyAccF|theirs}}</nowiki></code> ⟶ hers | |||
* <code><nowiki>{{p|DummyAccNB}}</nowiki></code> ⟶ they | |||
The word can be capitalised with the <nowiki>{{</nowiki>[https://www.mediawiki.org/wiki/Help:Magic_words#ucfirst ucfirst:]<nowiki>}}</nowiki> magic word: <code><nowiki>{{ucfirst:{{p|DummyAccF}}}}</nowiki></code> ⟶ <!-- user doesn't exist {{ucfirst:{{p|DummyAccF}}}} --> She | |||
Based on the English Wikipedia's <nowiki>{{</nowiki>[[wikipedia:Template:Gender|gender]]<nowiki>}}</nowiki>. | |||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "TASBot Wiki Username", | |||
"description": "omit \"User:\", case-sensitive, see Special:ListUsers", | |||
"type": "wiki-user-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Dummy Pronoun", | |||
"description": "one of: they, them, their, theirs, themself, themselves", | |||
"type": "string", | |||
"default": "they" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2" | |||
], | |||
"format": "inline", | |||
"description": "Replaces a pronoun (in English only) with the equivalent that matches the chosen gender of any editor/user of this wiki." | |||
} | |||
</templatedata> | |||
[[Category:General-use_inline_templates]] |
Latest revision as of 14:40, 2 September 2024
This template can be used to display the chosen pronouns (in English only) of any editor/user of this wiki. It can't be used for someone without an account here.
Also note that the gender options in MediaWiki are epicene/fem./masc., and so "it", "one", and neopronouns are unavailable (more could be added but many, many system strings would need updating). Actually I think re-implementing this with metatemplate tricks, which would allow this to be used for people without an account, would also allow for arbitrary sets of pronouns. --yoshi
Usage: {{p|Username|case}}
, where Username
is a username without the "User:" prefix (case-sensitive! check on Special:ListUsers), and case
is one of the below keywords. Consult the English Wikipedia for a refresher on English pronouns.
they
for the subjective case (results in "he", "she", or "they")- equivalents:
nominative
,subject
,subjective
,sub
, andhe/she
they're
for -is/-are contraction (results in "he's", "she's", or "they're")they've
for -has/-have contraction (results in "he's", "she's", or "they've")they'll
for -will contraction (results in "he'll", "she'll", or "they'll")they'd
for -would contraction (results in "he'd", "she'd", or "they'd")
- equivalents:
them
for the objective case (results in "him", "her", or "them")- equivalents:
accusative
,object
,oblique
,objective
,dative
,prepositional
,obj
,him/her
, andhim
- equivalents:
their
for the possessive determiner (results in "his", "her", or "their")- equivalents:
genitive
,possessive
,pos
,his/her
, andhis
- equivalents:
theirs
for the possessive pronoun (results in "his", "hers", or "theirs")- equivalents:
genitive pronoun
,possessive pronoun
,poss
,his/hers
, andhers
- equivalents:
themself
for the reflexive case (results in "himself", "herself", or "themself")- equivalents:
reflexive2
,intensive2
,himself/herself2
themselves
for the reflexive case with the alternate epicene form (results in "himself", "herself", or "themselves")- equivalents:
reflexive
,intensive
, andhimself/herself
- equivalents:
- equivalents:
If omitted, the second parameter defaults to they
, i.e. the subjective case.
Examples:
{{p|DummyAccM|them}}
⟶ him{{p|DummyAccF|themself}}
⟶ herself{{p|DummyAccNB|their}}
⟶ their{{p|DummyAccM|they}}
⟶ he{{p|DummyAccF|theirs}}
⟶ hers{{p|DummyAccNB}}
⟶ they
The word can be capitalised with the {{ucfirst:}} magic word: {{ucfirst:{{p|DummyAccF}}}}
⟶ She
Based on the English Wikipedia's {{gender}}.
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Replaces a pronoun (in English only) with the equivalent that matches the chosen gender of any editor/user of this wiki.
Parameter | Description | Type | Status | |
---|---|---|---|---|
TASBot Wiki Username | 1 | omit "User:", case-sensitive, see Special:ListUsers | User | required |
Dummy Pronoun | 2 | one of: they, them, their, theirs, themself, themselves
| String | optional |