Template:Gender/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(→‎See also: * <nowiki>{{</nowiki>gender:<nowiki>}}</nowiki> magic word)
(→‎Parameters: now supports same short parameter names as Template:Pronoun)
Line 15: Line 15:
; Username : The user's username without the User: prefix
; Username : The user's username without the User: prefix
; Case : Optional parameter for giving the case of the pronoun. Possible values are listed below:
; Case : Optional parameter for giving the case of the pronoun. Possible values are listed below:
:* "nominative" (also "subject", "subjective", and "he/she") – Returns "he", "she" or "they". This is the default value of the case parameter.
:* "nominative" (also "subject", "subjective", "sub", and "he/she") – Returns "he", "she" or "they". This is the default value of the case parameter.
:* "accusative" (also "object", "oblique", "objective", "dative", "prepositional", and "him/her") – Returns "him", "her", or "them".
:* "accusative" (also "object", "oblique", "objective", "dative", "prepositional", "obj", and "him/her") – Returns "him", "her", or "them".
:* "genitive" (also "possessive" and "his/her") – Returns "his", "her" or "their".
:* "genitive" (also "possessive", "pos", and "his/her") – Returns "his", "her" or "their".
:* "genitive pronoun" (also "possessive pronoun" and "his/hers") – Returns "his", "hers" or "theirs".
:* "genitive pronoun" (also "possessive pronoun", "poss", and "his/hers") – Returns "his", "hers" or "theirs".
:* "reflexive" (also "intensive" and "himself/herself") – Returns "himself", "herself" or "themselves".
:* "reflexive" (also "intensive" and "himself/herself") – Returns "himself", "herself" or "themselves".



Revision as of 19:07, December 16, 2017

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

Username
The user's username without the User: prefix
Case
Optional parameter for giving the case of the pronoun. Possible values are listed below:
  • "nominative" (also "subject", "subjective", "sub", and "he/she") – Returns "he", "she" or "they". This is the default value of the case parameter.
  • "accusative" (also "object", "oblique", "objective", "dative", "prepositional", "obj", and "him/her") – Returns "him", "her", or "them".
  • "genitive" (also "possessive", "pos", and "his/her") – Returns "his", "her" or "their".
  • "genitive pronoun" (also "possessive pronoun", "poss", and "his/hers") – Returns "his", "hers" or "theirs".
  • "reflexive" (also "intensive" and "himself/herself") – Returns "himself", "herself" or "themselves".

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 return he
  • {{gender|ExampleFemale}} would return she
  • {{gender|ExampleNeutral}} would return they
  • {{gender|ExampleMale|reflexive}} would return himself
  • {{gender|ExampleNeutral|accusative}} would return their

See also

Template:Pronoun templates