Difference between revisions of "Template:Infobox User/gender"
From Twinsuniverse
J McKalling (Talk | contribs) (Created page with "<includeonly> {{#switch: {{lc:{{{1|}}}}} | hide = {{categorizer|category=Hidden gender users|label=''hidden''|display=infobox|nocat={{{nocat|false}}}}} | male = {{categorizer|...") |
J McKalling (Talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{ | + | {{gender: {{PAGENAME}} |
− | | | + | | {{categorizer|category=Male users|label=Male|display=infobox|nocat={{{nocat|false}}}}} |
− | + | | {{categorizer|category=Female users|label=Female|display=infobox|nocat={{{nocat|false}}}}} | |
− | | | + | | {{categorizer|category=Undisclosed gender users|label=''undisclosed''|display=infobox|nocat={{{nocat|false}}}}} |
− | | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | This template | + | This template automatically defines the gender category of your userpage. It can also automatically categorize the page under that category. |
==Parameters== | ==Parameters== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
* '''nocat''': Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization). | * '''nocat''': Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization). | ||
− | '''''Note:''' | + | '''''Note:''' Your gender will be determined according to your [[Special:Preferences|user preference setting]].'' |
==Syntax== | ==Syntax== | ||
− | <nowiki>{{Infobox User/gender | + | To use, this template does not require any parameter. |
+ | <nowiki>{{Infobox User/gender}}</nowiki> | ||
==Examples== | ==Examples== | ||
− | + | Depending on your chosen setting, the result would be either: | |
− | + | ||
− | + | ||
− | + | ||
:{{categorizer|category=Male users|label=Male|nocat=true}} | :{{categorizer|category=Male users|label=Male|nocat=true}} | ||
:{{categorizer|category=Female users|label=Female|nocat=true}} | :{{categorizer|category=Female users|label=Female|nocat=true}} | ||
− | + | If you didn't disclose your gender, the result would be: | |
− | + | :{{categorizer|category=Undisclosed gender users|label=''undisclosed''|nocat=true}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | If you | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | :{{categorizer|category= | + | |
The '''nocat''' parameter may be used to suppress automatic categorization like this (any value will do): | The '''nocat''' parameter may be used to suppress automatic categorization like this (any value will do): | ||
− | <nowiki>{{Infobox User/gender | + | <nowiki>{{Infobox User/gender|nocat=true}}</nowiki> |
− | This would render the same result as | + | This would render the same result as usual, but would not automatically categorize under the respective category. This feature works both on the specified and undisclosed settings. |
[[Category:Categorizers|user]] | [[Category:Categorizers|user]] | ||
</noinclude> | </noinclude> |
Revision as of 19:08, 2 January 2013
This template automatically defines the gender category of your userpage. It can also automatically categorize the page under that category.
Parameters
- nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).
Note: Your gender will be determined according to your user preference setting.
Syntax
To use, this template does not require any parameter.
{{Infobox User/gender}}
Examples
Depending on your chosen setting, the result would be either:
If you didn't disclose your gender, the result would be:
- undisclosed [list all]
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{Infobox User/gender|nocat=true}}
This would render the same result as usual, but would not automatically categorize under the respective category. This feature works both on the specified and undisclosed settings.