Difference between revisions of "Template:Gender/doc"
Jump to navigation
Jump to search
imported>Jc86035 |
imported>Voidxor (Direct link to a page that actually defines the {{GENDER}} magic word.) |
||
| 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> [[ | + | 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> [[mw:Help:Magic words|magic word]]. |
===Usage=== | ===Usage=== | ||
| Line 13: | Line 13: | ||
===Parameters=== | ===Parameters=== | ||
| − | ;Username : The user's username without the User: prefix | + | ; Username : The user's username without the User: prefix |
| − | ;Case : Optional parameter for giving the case of the pronoun. Possible values are listed below: | + | ; Case : Optional parameter for giving the case of the pronoun. Possible values are listed below: |
| − | :*"nominative" (also "subject", "subjective", and "he/she") – Returns "he", "she" or "he/she". This is the default value of the case parameter. | + | :* "nominative" (also "subject", "subjective", and "he/she") – Returns "he", "she" or "he/she". 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". | + | :* "accusative" (also "object", "oblique", "objective", "dative", "prepositional", and "him/her") – Returns "him", "her", or "him/her". |
| − | :*"genitive" (also "possessive" and "his/her") – Returns "his", "her" or "his/her". | + | :* "genitive" (also "possessive" and "his/her") – Returns "his", "her" or "his/her". |
| − | :*"genitive pronoun" (also "possessive pronoun" and "his/hers") – Returns "his", "hers" or "his/hers". | + | :* "genitive pronoun" (also "possessive pronoun" and "his/hers") – Returns "his", "hers" or "his/hers". |
| − | :*"reflexive" (also "intensive" and "himself/herself") – Returns "himself", "herself" or "himself/herself". | + | :* "reflexive" (also "intensive" and "himself/herself") – 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. | 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>he/she</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>him/her</code> |
==See also== | ==See also== | ||
Revision as of 23:15, 11 August 2015
| This is a documentation subpage for Template:Gender. It contains 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.
Contents
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", "subjective", and "he/she") – Returns "he", "she" or "he/she". 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".
- "genitive" (also "possessive" and "his/her") – Returns "his", "her" or "his/her".
- "genitive pronoun" (also "possessive pronoun" and "his/hers") – Returns "his", "hers" or "his/hers".
- "reflexive" (also "intensive" and "himself/herself") – 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 returnhe{{gender|ExampleFemale}}would returnshe{{gender|ExampleNeutral}}would returnhe/she{{gender|ExampleMale|reflexive}}would returnhimself{{gender|ExampleNeutral|accusative}}would returnhim/her
See also