Difference between revisions of "Template:Infobox User/gender"

From Twinsuniverse
Jump to: navigation, search
(forgot the username parameter is required)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{gender: {{PAGENAME}}
+
{{gender: {{{1|NONexistingUSERname}}}
 
| {{categorizer|category=Male users|label=Male|display=infobox|nocat={{{nocat|false}}}}}
 
| {{categorizer|category=Male users|label=Male|display=infobox|nocat={{{nocat|false}}}}}
 
| {{categorizer|category=Female users|label=Female|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}}}}}
 
| {{categorizer|category=Undisclosed gender users|label=''undisclosed''|display=infobox|nocat={{{nocat|false}}}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
This template automatically defines the gender category of your userpage. It can also automatically categorize the page under that category.
+
This template automatically defines the gender category of a userpage. It can also automatically categorize the page under that category.
  
 
==Parameters==
 
==Parameters==
 +
# The username to automatically check the gender of (no parameter name, case sensitive)
 
* '''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:''' Your gender will be determined according to your [[Special:Preferences|user preference setting]].''
+
'''''Note:''' The gender will be determined according to the user's [[Special:Preferences|preference setting]].''
  
 
==Syntax==
 
==Syntax==
To use, this template does not require any parameter.
+
To use, this template only requires a username.
  <nowiki>{{Infobox User/gender}}</nowiki>
+
  <nowiki>{{Infobox User/gender|username}}</nowiki>
  
 
==Examples==
 
==Examples==
Depending on your chosen setting, the result would be either:
+
Depending on the chosen setting of the specified user, the result would be either:
 +
<nowiki>{{Infobox User/gender|{{PAGENAME}}}}</nowiki>
 +
 
 
:{{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:
+
If the user didn't disclose their gender, the result would be:
 
:{{categorizer|category=Undisclosed gender users|label=''undisclosed''|nocat=true}}
 
:{{categorizer|category=Undisclosed gender users|label=''undisclosed''|nocat=true}}
  
  
 
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|nocat=true}}</nowiki>
+
  <nowiki>{{Infobox User/gender|{{PAGENAME}}|nocat=true}}</nowiki>
  
 
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.
 
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.

Revision as of 19:26, 2 January 2013

This template automatically defines the gender category of a userpage. It can also automatically categorize the page under that category.

Parameters

  1. The username to automatically check the gender of (no parameter name, case sensitive)
  • nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).


Note: The gender will be determined according to the user's preference setting.

Syntax

To use, this template only requires a username.

{{Infobox User/gender|username}}

Examples

Depending on the chosen setting of the specified user, the result would be either:

{{Infobox User/gender|{{PAGENAME}}}}
Male [list all]
Female [list all]


If the user didn't disclose their 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|{{PAGENAME}}|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.