Template:Gender/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Adding template for the similar templates)
m (31 revisions imported)
 
(19 intermediate revisions by 11 users not shown)
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS 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 <nowiki>{{GENDER}}</nowiki> [[:m:Help:Magic words|magic word]].
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 {{magic word|GENDER}} magic word.


===Usage===
===Usage===

<pre>
Typical:<br />
{{Gender
{{in5}}{{tlx|gender&nbsp;|<var>Username</var>&nbsp;|<var>case</var>&nbsp;}}
|Username

|Case
Vertical:
}}
<nowiki>{{</nowiki>gender
</pre>
{{!}}<var>Username</var>
{{!}}<var>case</var>
<nowiki>}}</nowiki>


===Parameters===
===Parameters===
;Username : The user's username without the User: prefix
* <code>{{!}}{{var|Username}}</code> or <code>{{!}}1={{var|Username}}</code> – The username without the <code>User:</code> prefix
;Case : Optional parameter for giving the case of the pronoun. Possible values are listed below:
* <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:
:*"nominative" (also "subject", "subjective", and "he/she") – Returns "he", "she" or "he/she". 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.
:*"accusative" (also "object", "oblique", "objective", "dative", "prepositional", and "him/her") – Returns "him", "her", or "him/her".
** <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".
:*"genitive" (also "possessive" and "his/her") – Returns "his", "her" or "his/her".
** <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".
:*"genitive pronoun" (also "possessive pronoun" and "his/hers") – Returns "his", "hers" or "his/hers".
** <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".
:*"reflexive" (also "intensive" and "himself/herself") – Returns "himself", "herself" or "himself/herself".
** <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'']]).


=== Examples ===
=== 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.
In these examples, the hypothetical users User:ExampleMale, User:ExampleFemale and User:ExampleNeutral are supposed to be male, female and of unspecified gender, respectively.


*<code><nowiki>{{gender|ExampleMale}}</nowiki></code> would return <code>he</code>
* <code><nowiki>{{gender|ExampleMale}}</nowiki></code> would return <code>he</code>
*<code><nowiki>{{gender|ExampleFemale}}</nowiki></code> would return <code>she</code>
* <code><nowiki>{{gender|ExampleFemale}}</nowiki></code> would return <code>she</code>
*<code><nowiki>{{gender|ExampleNeutral}}</nowiki></code> would return <code>he/she</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>him/her</code>
* <code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code>them</code>


==See also==
==See also==
* <code><nowiki>{{</nowiki>[[Help:Magic_words#Formatting|gender:]]<nowiki>}}</nowiki></code> magic word
{{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]]
[[Category:Editor's pronouns templates]]
</includeonly>
}}</includeonly>

Latest revision as of 16:08, February 9, 2022

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

Typical:
Template:In5{{gender |Username |case }}

Vertical:

{{gender
|Username
|case
}}

Parameters

  • |Template:Var or |1=Template:Var – The username without the User: 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, 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, him, or them – Returns "him", "her", or "them".
    • genitive, possessive, pos, his/her, his, or their – Returns "his", "her" or "their".
    • genitive pronoun, possessive pronoun, poss, his/hers, 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 them

See also

Template:Pronoun templates