Template:Gender/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (tweak) |
(→Parameters: tweak to prevent transclusion issues from /doc to template page) |
||
Line 11: | Line 11: | ||
===Parameters=== |
===Parameters=== |
||
* <code> |
* <code>{{!}}{{var|Username}}</code> or <code>{{!}}1={{var|Username}}</code> – The username without the <code>User:</code> prefix |
||
* <code> |
* <code>{{!}}2=</code> or the second unnnamed 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>, or <code>them</code> – Returns "him", "her", or "them". |
Revision as of 11:06, December 18, 2017
This is a documentation subpage for Template:Gender. It may contain 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.
Usage
{{Gender |Username |case }}
Parameters
|Template:Var
or|1=Template:Var
– The username without theUser:
prefix|2=
or the second unnnamed 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
, orthem
– Returns "him", "her", or "them".genitive
,possessive
,pos
,his/her
, ortheir
– Returns "his", "her" or "their".genitive pronoun
,possessive pronoun
,poss
,his/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 returntheir
See also
{{gender:}}
magic word