Template:Gender/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(linking to meta) |
m (31 revisions imported) |
||
(22 intermediate revisions by 14 users not shown) | |||
Line 2:
<!-- 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
===Usage===
Typical:<br />
{{in5}}{{tlx|gender |<var>Username</var> |<var>case</var> }}
Vertical:
<nowiki>{{</nowiki>gender
{{!}}<var>Username</var>
{{!}}<var>case</var>
<nowiki>}}</nowiki>
===Parameters===
** <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 ===
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|ExampleFemale}}</nowiki></code> would return <code>she</code>
* <code><nowiki>{{gender|ExampleNeutral}}</nowiki></code> would return <code>
* <code><nowiki>{{gender|ExampleMale|reflexive}}</nowiki></code> would return <code>himself</code>
* <code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code>
==See also==
<includeonly>▼
* <code><nowiki>{{</nowiki>[[Help:Magic_words#Formatting|gender:]]<nowiki>}}</nowiki></code> magic word
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->▼
{{Pronoun templates}}
<
▲<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:Language formatting and function templates]]
[[Category:Editor's pronouns templates]]
▲}}</includeonly>
|
Latest revision as of 16:08, February 9, 2022
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
Typical:
Template:In5{{gender |Username |case }}
Vertical:
{{gender |Username |case }}
Parameters
|Template:Var
or|1=Template:Var
– 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