Template:Gender/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(→‎Parameters: tweak to prevent transclusion issues from /doc to template page)
m (no reason to cap. that)
Line 5: Line 5:


===Usage===
===Usage===
<nowiki>{{</nowiki>Gender
<nowiki>{{</nowiki>gender
{{!}}<var>Username</var>
{{!}}<var>Username</var>
{{!}}<var>case</var>
{{!}}<var>case</var>

Revision as of 11:06, December 18, 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

  • |Template:Var or |1=Template:Var – The username without the User: 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, or they – Returns "he", "she" or "they". This is the default value of the case parameter.
    • accusative, object, oblique, objective, dative, prepositional, obj, him/her, or them – Returns "him", "her", or "them".
    • genitive, possessive, pos, his/her, or their – Returns "his", "her" or "their".
    • genitive pronoun, possessive pronoun, poss, his/hers, or theirs – Returns "his", "hers" or "theirs".
    • reflexive, intensive, himself/herself, or themselves – Returns "himself", "herself" or "themselves".
    • reflexive2, intensive2, himself/herself2, or themself – 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 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