Template:Gender/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
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 <nowiki>{{magic word|GENDER}}</nowiki> [[:m:Help:Magic words|magic word]].
 
===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===
;* <code>{{!}}{{var|Username}}</code> :or The<code>{{!}}1={{var|Username}}</code> user's– The username without the <code>User:</code> prefix
;Case* :<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<code>nominative</code>, "<code>subject"</code>, "<code>subjective"</code>, and<code>sub</code>, "<code>he/she")</code>, or <code>they</code> - Returns "he", "she" or "he/shethey". This is the default value of the case parameter.
:*"* <code>accusative"</code>, (also "<code>object"</code>, "<code>oblique"</code>, "<code>objective"</code>, "<code>dative"</code>, "<code>prepositional"</code>, and<code>obj</code>, "<code>him/her")</code>, <code>him</code>, or <code>them</code> - Returns "him", "her", or "him/herthem".
:*"genitive"* (also<code>genitive</code>, "<code>possessive"</code>, and<code>pos</code>, "<code>his/her")</code>, -<code>his</code>, or <code>their</code> – Returns "his", "her" or "his/hertheir".
:*"* <code>genitive pronoun"</code>, (also "<code>possessive pronoun"</code>, and<code>poss</code>, "<code>his/hers")</code>, <code>hers</code>, or <code>theirs</code> - Returns "his", "hers" or "his/herstheirs".
:*"reflexive"* (also<code>reflexive</code>, "<code>intensive"</code>, and "<code>himself/herself")</code>, -or <code>themselves</code> – Returns "himself", "herself" or "himself/herselfthemselves".
** <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>he/shethey</code>
* <code><nowiki>{{gender|ExampleMale|reflexive}}</nowiki></code> would return <code>himself</code>
* <code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code>him/herthem</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}}
 
</includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:Language formatting and function templates]]
[[Category:Editor's pronouns templates]]
}}</includeonly>