Template:Gender/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Reverted edits by Raiku Lucifer Samiyaza (talk) to last version by X!)
(update documentation, list parameters and accepted values)
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> magic word.
=== Usage ===

This template is an easy frontend way to get to the <nowiki>{{GENDER}}</nowiki> magic word. Instead of entering <nowiki>{{GENDER:user|he|she|he/she}}</nowiki> to get the gender, it is as simple as {{tlp|gender|user}} to get the gender.
===Usage===
<pre>
{{Gender
|Username
|Case
}}
</pre>

===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" and "subjective") - Returns "he", "she" or "he/she". This is the default value of the case parameter.
:*"accusative" (also "object", "oblique", "objective", "dative" and "prepositional") - Returns "him", "her", or "him/her".
:*"genitive" (also "possessive") - Returns "his", "her" or "his/her".
:*"reflexive" (also "intensive") - Returns "himself", "herself" or "himself/herself".


=== 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.
*<code><nowiki>{{gender|Jimbo Wales}}</nowiki></code> would return <code>{{gender|Jimbo Wales}}</code>

*<code><nowiki>{{gender|Example}}</nowiki></code> would return <code>{{gender|Example}}</code>
*<code><nowiki>{{gender|Gurch}}</nowiki></code> would return <code>{{gender|Gurch}}</code>
*<code><nowiki>{{gender|ExampleMale}}</nowiki></code> would return <code>he</code>
*<code><nowiki>{{gender|X!}}</nowiki></code> would return <code>{{gender|X!}}</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|ExampleMale|reflexive}}</nowiki></code> would return <code>him</code>
*<code><nowiki>{{gender|ExampleNeutral|accusative}}</nowiki></code> would return <code>him/her</code>


<includeonly>
<includeonly>

Revision as of 22:00, August 15, 2009

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" and "subjective") - Returns "he", "she" or "he/she". This is the default value of the case parameter.
  • "accusative" (also "object", "oblique", "objective", "dative" and "prepositional") - Returns "him", "her", or "him/her".
  • "genitive" (also "possessive") - Returns "his", "her" or "his/her".
  • "reflexive" (also "intensive") - Returns "himself", "herself" or "himself/herself".

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 he/she
  • {{gender|ExampleMale|reflexive}} would return him
  • {{gender|ExampleNeutral|accusative}} would return him/her