Difference between revisions of "Template:Gender/doc"
Jump to navigation
Jump to search
imported>John of Reading m (→Parameters: Typo fixing, replaced: unnnamed → unnamed using AWB) |
imported>Feminist (→Parameters: the options I added) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 19: | Line 19: | ||
* <code>{{!}}2=</code> or the second unnamed parameter – Optional parameter for giving the [[Noun case|case]] of the pronoun. Possible values are listed below, and include linguistic terms (and their abbreviations) and "what I want it to say" versions: | * <code>{{!}}2=</code> or the second unnamed parameter – Optional parameter for giving the [[Noun case|case]] of the pronoun. Possible values are listed below, and include linguistic terms (and their abbreviations) and "what I want it to say" versions: | ||
** <code>nominative</code>, <code>subject</code>, <code>subjective</code>, <code>sub</code>, <code>he/she</code>, or <code>they</code> – Returns "he", "she" or "they". This is the default value of the case parameter. | ** <code>nominative</code>, <code>subject</code>, <code>subjective</code>, <code>sub</code>, <code>he/she</code>, or <code>they</code> – Returns "he", "she" or "they". This is the default value of the case parameter. | ||
| − | ** <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>, or <code>them</code> – Returns "him", "her", or "them". | + | ** <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>, <code>him</code>, or <code>them</code> – Returns "him", "her", or "them". |
| − | ** <code>genitive</code>, <code>possessive</code>, <code>pos</code>, <code>his/her</code>, or <code>their</code> – Returns "his", "her" or "their". | + | ** <code>genitive</code>, <code>possessive</code>, <code>pos</code>, <code>his/her</code>, <code>his</code>, or <code>their</code> – Returns "his", "her" or "their". |
| − | ** <code>genitive pronoun</code>, <code>possessive pronoun</code>, <code>poss</code>, <code>his/hers</code>, or <code>theirs</code> – Returns "his", "hers" or "theirs". | + | ** <code>genitive pronoun</code>, <code>possessive pronoun</code>, <code>poss</code>, <code>his/hers</code>, <code>hers</code>, or <code>theirs</code> – Returns "his", "hers" or "theirs". |
** <code>reflexive</code>, <code>intensive</code>, <code>himself/herself</code>, or <code>themselves</code> – Returns "himself", "herself" or "themselves". | ** <code>reflexive</code>, <code>intensive</code>, <code>himself/herself</code>, or <code>themselves</code> – Returns "himself", "herself" or "themselves". | ||
** <code>reflexive2</code>, <code>intensive2</code>, <code>himself/herself2</code>, or <code>themself</code> – Returns "himself", "herself" or "themself" (preferred by ''[[The Chicago Manual of Style]]'' and some other sources on [[Singular they|singular ''they'']]). | ** <code>reflexive2</code>, <code>intensive2</code>, <code>himself/herself2</code>, or <code>themself</code> – Returns "himself", "herself" or "themself" (preferred by ''[[The Chicago Manual of Style]]'' and some other sources on [[Singular they|singular ''they'']]). | ||
| Line 32: | Line 32: | ||
* <code><nowiki>{{gender|ExampleNeutral}}</nowiki></code> would return <code>they</code> | * <code><nowiki>{{gender|ExampleNeutral}}</nowiki></code> would return <code>they</code> | ||
* <code><nowiki>{{gender|ExampleMale|reflexive}}</nowiki></code> would return <code>himself</code> | * <code><nowiki>{{gender|ExampleMale|reflexive}}</nowiki></code> would return <code>himself</code> | ||
| − | * <code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code> | + | * <code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code>them</code> |
==See also== | ==See also== | ||
| Line 38: | Line 38: | ||
{{Pronoun templates}} | {{Pronoun templates}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --> | <!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --> | ||
[[Category:Language formatting and function templates]] | [[Category:Language formatting and function templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 17:35, 28 November 2020
| This is a documentation subpage for Template:Gender. It contains usage information, categories and other content that is not part of the original template page. |
This template returns the correct third person singular pronoun to refer to a given user, based on what the user has set as their gender in their preferences. It uses the {{GENDER}} magic word.
Contents
Usage
Typical:
{{gender |Username |case }}
Vertical:
{{gender
|Username
|case
}}
Parameters
|Usernameor|1=Username– The username without theUser:prefix|2=or the second unnamed parameter – Optional parameter for giving the case of the pronoun. Possible values are listed below, and include linguistic terms (and their abbreviations) and "what I want it to say" versions:nominative,subject,subjective,sub,he/she, orthey– Returns "he", "she" or "they". This is the default value of the case parameter.accusative,object,oblique,objective,dative,prepositional,obj,him/her,him, orthem– Returns "him", "her", or "them".genitive,possessive,pos,his/her,his, ortheir– Returns "his", "her" or "their".genitive pronoun,possessive pronoun,poss,his/hers,hers, ortheirs– Returns "his", "hers" or "theirs".reflexive,intensive,himself/herself, orthemselves– Returns "himself", "herself" or "themselves".reflexive2,intensive2,himself/herself2, orthemself– Returns "himself", "herself" or "themself" (preferred by The Chicago Manual of Style and some other sources on singular they).
Examples
In these examples, the hypothetical users User:ExampleMale, User:ExampleFemale and User:ExampleNeutral are supposed to be male, female and of unspecified gender, respectively.
{{gender|ExampleMale}}would returnhe{{gender|ExampleFemale}}would returnshe{{gender|ExampleNeutral}}would returnthey{{gender|ExampleMale|reflexive}}would returnhimself{{gender|ExampleNeutral|accusative}}would returnthem
See also
{{gender:}}magic word