Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.


Historians wanted: Inquire here.

Template:Pronoun: Difference between revisions

Template page
Use new system, simpler and extensible
Finish setup for extensibility, update docs
Line 1: Line 1:
<onlyinclude><includeonly>{{/{{GENDER:{{{1|.}}}|mwmasc|mwfemme|mwother}}|{{#switch:{{{2}}}
<onlyinclude><includeonly>{{/{{#ifexist:User:{{{1|}}}/pronouns
|{{User:{{{1}}}/pronouns}}
|{{GENDER:{{{1|.}}}|mwmasc|mwfemme|mwother}}
}}|{{#switch:{{{2|}}}
|#default|subjective|subject|subj|sub|he/she|he|she|they=they
|#default|subjective|subject|subj|sub|he/she|he|she|they=they
|objective|object|obj|oblique|accusative|dative|prepositional|him/her|him|her|them=them
|objective|object|obj|oblique|accusative|dative|prepositional|him/her|him|her|them=them
Line 12: Line 15:
}}}}</includeonly></onlyinclude>
}}}}</includeonly></onlyinclude>


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.
This template produces a particular form (case/declension; in English only) of someone's chosen pronouns.
<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
<br>It can even be used for people without accounts on this wiki, by pretending that they do and creating a page in userspace&mdash;see below.


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.
== Usage ==
 
Call as <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>
** aliases: <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'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've</code> for -has/-have contraction (results in "he's", "she's", or "they've")
Line 23: Line 28:
** <code>they'd</code> for -would contraction (results in "he'd", "she'd", or "they'd")
** <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>
** aliases: <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>
* <code>their</code> for the possessive determiner (results in "his", "her", or "their")
* <code>their</code> for the possessive determiner (results in "his", "her", or "their")
** equivalents: <code>genitive</code>, <code>possessive</code>, <code>pos</code>, <code>his/her</code>, and <code>his</code>
** aliases: <code>genitive</code>, <code>possessive</code>, <code>pos</code>, <code>his/her</code>, and <code>his</code>
* <code>theirs</code> for the possessive pronoun (results in "his", "hers", or "theirs")
* <code>theirs</code> for the possessive pronoun (results in "his", "hers", or "theirs")
** equivalents: <code>genitive pronoun</code>, <code>possessive pronoun</code>, <code>poss</code>, <code>his/hers</code>, and <code>hers</code>
** aliases: <code>genitive pronoun</code>, <code>possessive pronoun</code>, <code>poss</code>, <code>his/hers</code>, and <code>hers</code>
* <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>
** aliases: <code>reflexive2</code>, <code>intensive2</code>, <code>himself/herself2</code>
** <code>themselves</code> for the reflexive case with the alternate epicene form (results in "himself", "herself", or "themselves")
** <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>
*** aliases: <code>reflexive</code>, <code>intensive</code>, and <code>himself/herself</code>


If omitted, the second parameter defaults to <code>they</code>, i.e. the subjective case.
If omitted, the second parameter defaults to <code>they</code>, i.e. the subjective case.


Examples:
Examples:
<!-- users don't exist
* <code><nowiki>{{p|DummyAccM|them}}</nowiki></code> &longrightarrow; {{p|DummyAccM|them}}
* <code><nowiki>{{p|DummyAccM|them}}</nowiki></code> &longrightarrow; {{p|DummyAccM|them}}
* <code><nowiki>{{p|DummyAccF|themself}}</nowiki></code> &longrightarrow; {{p|DummyAccF|themself}}
* <code><nowiki>{{p|DummyAccF|themself}}</nowiki></code> &longrightarrow; {{p|DummyAccF|themself}}
Line 43: Line 47:
* <code><nowiki>{{p|DummyAccF|theirs}}</nowiki></code> &longrightarrow; {{p|DummyAccF|theirs}}
* <code><nowiki>{{p|DummyAccF|theirs}}</nowiki></code> &longrightarrow; {{p|DummyAccF|theirs}}
* <code><nowiki>{{p|DummyAccNB}}</nowiki></code> &longrightarrow; {{p|DummyAccNB}}
* <code><nowiki>{{p|DummyAccNB}}</nowiki></code> &longrightarrow; {{p|DummyAccNB}}
-->
* <code><nowiki>{{p|DummyAccM|she'd've}}</nowiki></code> &longrightarrow; {{p|DummyAccM|she'd've}}
* <code><nowiki>{{p|DummyAccM|them}}</nowiki></code> &longrightarrow; him
 
* <code><nowiki>{{p|DummyAccF|themself}}</nowiki></code> &longrightarrow; herself
The word can be capitalised with the <nowiki>{{</nowiki>[[mw:Help:Magic_words#ucfirst|ucfirst:]]<nowiki>}}</nowiki> magic word: <code><nowiki>{{ucfirst:{{p|DummyAccF}}}}</nowiki></code> &longrightarrow; {{ucfirst:{{p|DummyAccF}}}}
* <code><nowiki>{{p|DummyAccNB|their}}</nowiki></code> &longrightarrow; their
 
* <code><nowiki>{{p|DummyAccM|they}}</nowiki></code> &longrightarrow; he
== Setting up pronouns ==
* <code><nowiki>{{p|DummyAccF|theirs}}</nowiki></code> &longrightarrow; hers
 
* <code><nowiki>{{p|DummyAccNB}}</nowiki></code> &longrightarrow; they
This system is extensible: If you create [[Special:MyPage/pronouns]] with the text <code>neuter</code> for example,
then calls to this template will use the pronouns [[Special:EditPage/Template:Pronoun/neuter|listed in <code>./neuter</code>]] for you.
<br>If you don't create that user page, this template will use the <nowiki>{{</nowiki>[[mw:Help:Magic_words#GENDER|GENDER:]]<nowiki>}}</nowiki> magic word,
which is one of epicene/fem./masc. '''depending on what you've set in [[Special:Preferences#mw-prefsection-personal-i18n|Special:Preferences]].'''
'''There's no need to create the user page''' if you use one of those sets of pronouns.


The word can be capitalised with the <nowiki>{{</nowiki>[[mw:Help:Magic_words#ucfirst|ucfirst:]]<nowiki>}}</nowiki> magic word: <code><nowiki>{{ucfirst:{{p|DummyAccF}}}}</nowiki></code> &longrightarrow; <!-- user doesn't exist {{ucfirst:{{p|DummyAccF}}}} --> She
You may want to create a user page for a person of interest (mentioned in articlespace), even though that person doesn't have or may never have an account on this wiki,
in order to get the right pronouns with this template. Infer what username they ''would'' use, and create <code>User:&lt;that username&gt;/pronouns</code>.


Based on the English Wikipedia's <nowiki>{{</nowiki>[[wikipedia:Template:Gender|gender]]<nowiki>}}</nowiki>.
Existing subpages of this template:
{{Special:PrefixIndex/Template:Pronoun/}}


{{TemplateData preamble}}<templatedata>
{{TemplateData preamble}}<templatedata>

Revision as of 22:03, 5 April 2026


This template produces a particular form (case/declension; in English only) of someone's chosen pronouns.
It can even be used for people without accounts on this wiki, by pretending that they do and creating a page in userspace—see below.

Usage

Call as {{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")
    • aliases: nominative, subject, subjective, sub, and he/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")
  • them for the objective case (results in "him", "her", or "them")
    • aliases: accusative, object, oblique, objective, dative, prepositional, obj, him/her, and him
  • their for the possessive determiner (results in "his", "her", or "their")
    • aliases: genitive, possessive, pos, his/her, and his
  • theirs for the possessive pronoun (results in "his", "hers", or "theirs")
    • aliases: genitive pronoun, possessive pronoun, poss, his/hers, and hers
  • themself for the reflexive case (results in "himself", "herself", or "themself")
    • aliases: reflexive2, intensive2, himself/herself2
    • themselves for the reflexive case with the alternate epicene form (results in "himself", "herself", or "themselves")
      • aliases: reflexive, intensive, and himself/herself

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
  • {{p|DummyAccM|she'd've}} ⟶ he

The word can be capitalised with the {{ucfirst:}} magic word: {{ucfirst:{{p|DummyAccF}}}} ⟶ She

Setting up pronouns

This system is extensible: If you create Special:MyPage/pronouns with the text neuter for example, then calls to this template will use the pronouns listed in ./neuter for you.
If you don't create that user page, this template will use the {{GENDER:}} magic word, which is one of epicene/fem./masc. depending on what you've set in Special:Preferences. There's no need to create the user page if you use one of those sets of pronouns.

You may want to create a user page for a person of interest (mentioned in articlespace), even though that person doesn't have or may never have an account on this wiki, in order to get the right pronouns with this template. Infer what username they would use, and create User:<that username>/pronouns.

Existing subpages of this template:


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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
TASBot Wiki Username1

omit "User:", case-sensitive, see Special:ListUsers

Userrequired
Dummy Pronoun2

one of: they, them, their, theirs, themself, themselves, they're, they've, they'll, they'd

Default
they
Stringoptional