Difference between revisions of "Template:Infobox user"
m (Removed unnecessary categories.) |
(Simplified Infobox (remove location, country, time zone parser functions).) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
| data1 = {{{name|}}} | | data1 = {{{name|}}} | ||
| class1 = fn | | class1 = fn | ||
+ | |||
+ | | label2 = [[Name at birth]] | ||
+ | | data2 = {{{birthname|}}} | ||
+ | | class2 = nickname | ||
+ | |||
+ | | label3 = Name in real life | ||
+ | | data3 = {{{real_name|}}} | ||
+ | | class3 = nickname | ||
+ | |||
+ | | label4 = Gender | ||
+ | | data4 = {{{gender|}}} | ||
| label5 = Birth date | | label5 = Birth date | ||
Line 22: | Line 33: | ||
| label7 = Current location | | label7 = Current location | ||
− | | data7 = | + | | data7 = {{{location|}}} |
| class7 = label | | class7 = label | ||
| label8 = Country | | label8 = Country | ||
− | | data8 = | + | | data8 = {{{country|}}} |
| label9 = Time zone | | label9 = Time zone | ||
− | | data9 = | + | | data9 = {{{timezone|}}} |
| label10 = Current time | | label10 = Current time | ||
Line 38: | Line 49: | ||
| class11 = category | | class11 = category | ||
− | | | + | | label12 = Ethnicity |
+ | | data12 = {{{ethnicity|}}} | ||
+ | | class12 = category | ||
+ | |||
+ | | label13 = Race | ||
+ | | data13 = {{{race|}}} | ||
+ | | class13 = category | ||
+ | |||
+ | | label14 = Height | ||
+ | | data14 = {{{height|}}} | ||
+ | |||
+ | | label15 = Weight | ||
+ | | data15 = {{{weight|}}} | ||
+ | |||
+ | | label16 = Hair | ||
+ | | data16 = {{{hair|}}} | ||
+ | |||
+ | | label17 = Eyes | ||
+ | | data17 = {{{eyes|}}} | ||
+ | |||
+ | | label18 = [[Blood type]] | ||
+ | | data18 = {{{blood_type|}}} | ||
+ | |||
+ | | label19 = Sexuality | ||
+ | | data19 = {{{sexuality|}}} | ||
+ | | class19 = category | ||
+ | |||
+ | | label20 = [[Intelligence quotient|IQ]] | ||
+ | | data20 = {{{iq|}}} | ||
+ | |||
+ | | label21 = [[Myers-Briggs Type Indicator|Personality type]] | ||
+ | | data21 = {{{personality_type|}}} | ||
+ | | class21 = category | ||
+ | |||
+ | | header22 = {{#if:{{{marital status|}}}{{{spouse|}}}{{{girlfriend|}}}{{{boyfriend|}}}{{{children|}}}{{{siblings|}}}{{{pets|}}}|Family and friends}} | ||
+ | |||
+ | | label23 = Marital status | ||
+ | | data23 = {{{marital status|}}} | ||
+ | | class23 = category | ||
+ | |||
+ | | label24 = Spouse | ||
+ | | data24 = {{{spouse|{{{partner|}}}}}} | ||
+ | |||
+ | | label25 = Girlfriend | ||
+ | | data25 = {{{girlfriend|}}} | ||
+ | |||
+ | | label26 = Boyfriend | ||
+ | | data26 = {{{boyfriend|}}} | ||
+ | |||
+ | | label27 = Children | ||
+ | | data27 = {{{children|}}} | ||
+ | |||
+ | | label28 = Siblings | ||
+ | | data28 = {{{siblings|}}} | ||
+ | |||
+ | | label29 = Pets | ||
+ | | data29 = {{{pets|}}} | ||
+ | |||
+ | | header30 = {{#if:{{{occupation|}}}{{{employer|}}}{{{education|}}}{{{college|}}}{{{university|}}}{{{highschool|}}}|Education and employment}} | ||
| label31 = Occupation | | label31 = Occupation | ||
Line 47: | Line 116: | ||
| data32 = {{{employer|}}} | | data32 = {{{employer|}}} | ||
| class32 = org | | class32 = org | ||
+ | |||
+ | | label33 = Education | ||
+ | | data33 = {{{education|}}} | ||
+ | |||
+ | | label34 = College | ||
+ | | data34 = {{{college|}}} | ||
| label35 = University | | label35 = University | ||
| data35 = {{{university|}}} | | data35 = {{{university|}}} | ||
+ | |||
+ | | label36 = High school | ||
+ | | data36 = {{{highschool|}}} | ||
+ | |||
+ | | header37 = {{#if:{{{hobbies|}}}{{{religion|}}}{{{politics|}}}{{{aliases|}}}{{{movies|}}}{{{books|}}}|Hobbies, favourites, and beliefs}} | ||
+ | |||
+ | | label38 = Hobbies | ||
+ | | data38 = {{{hobbies|}}} | ||
+ | |||
+ | | label39 = Religion | ||
+ | | data39 = {{{religion|}}} | ||
+ | | class39 = category | ||
+ | |||
+ | | label40 = Politics | ||
+ | | data40 = {{{politics|}}} | ||
+ | |||
+ | | label41 = [[Pseudonym|Aliases]] | ||
+ | | data41 = {{{aliases|}}} | ||
+ | | class41 = nickname | ||
+ | |||
+ | | label42 = Movies and shows | ||
+ | | data42 = {{{movies|{{{shows|}}}}}} | ||
+ | |||
+ | | label43 = Books | ||
+ | | data43 = {{{books|}}} | ||
| header44 = {{#if:{{{interests|}}}|Interests}} | | header44 = {{#if:{{{interests|}}}|Interests}} | ||
Line 133: | Line 233: | ||
|data71 = {{{edit_count|}}} | |data71 = {{{edit_count|}}} | ||
− | | label72 = {{#if:{{{permissions|}}}|<span class="plainlinks">[http:// | + | | label72 = {{#if:{{{permissions|}}}|<span class="plainlinks">[http://chg-wiki.geog.ucsb.edu/index.php?title=Special:ListUsers&limit=1&username={{PAGENAMEE}} Permissions]</span>}} |
| data72 = {{{permissions|}}} | | data72 = {{{permissions|}}} | ||
Line 148: | Line 248: | ||
</table> | </table> | ||
}} | }} | ||
− | }} | + | }}{{#ifeq:{{{nocat|false}}}|false|{{#ifexist:Category:Wikipedians in {{{location|}}}, {{{country|}}} | [[Category:Wikipedians in {{{location|}}}, {{{country|}}}]] | {{#ifexist:Category:Wikipedians in {{{location|}}}|[[Category:Wikipedians in {{{location}}}]]| {{#ifexist:Category:Wikipedians in {{substr_any|{{{location|}}}| {{str find0|{{{location|}}}|,}}+2| 50-{{strlen quick|{{{location|}}}}} }} | [[Category:Wikipedians in {{substr_any|{{{location|}}}| {{str find0|{{{location|}}}|,}}+2| 50-{{strlen quick|{{{location|}}}}} }}]] | {{#if:{{{country|}}} | {{#ifeq:{{{country|}}}| UK | [[Category:Wikipedians in the United Kingdom]] | {{#ifexist:Category:Wikipedians in {{{country|}}} | [[Category:Wikipedians in {{{country}}}]] | {{#ifexist:Category:Wikipedians in the {{{country|}}} | [[Category:Wikipedians in the {{{country}}}]] | {{#ifexist:Category:Wikipedians in {{getalias|{{{country|}}}}} | [[Category:Wikipedians in {{getalias|{{{country|}}}}}]] | {{#ifexist:Category:Wikipedians in the {{getalias|{{{country|}}}}} | [[Category:Wikipedians in the {{getalias|{{{country|}}}}}]] }} }} }} }} }} }} }} }} }} }}<noinclude>{{Documentation}}</noinclude> |
− | |||
− | {{#ifeq:{{{nocat|false}}}|false|{{#ifexist:Category:Wikipedians in {{{location|}}}, {{{country|}}} | [[Category:Wikipedians in {{{location|}}}, {{{country|}}}]] | {{#ifexist:Category:Wikipedians in {{{location|}}}|[[Category:Wikipedians in {{{location}}}]]| {{#ifexist:Category:Wikipedians in {{substr_any|{{{location|}}}| {{str find0|{{{location|}}}|,}}+2| 50-{{strlen quick|{{{location|}}}}} }} | [[Category:Wikipedians in {{substr_any|{{{location|}}}| {{str find0|{{{location|}}}|,}}+2| 50-{{strlen quick|{{{location|}}}}} }}]] | {{#if:{{{country|}}} | {{#ifeq:{{{country|}}}| UK | [[Category:Wikipedians in the United Kingdom]] | {{#ifexist:Category:Wikipedians in {{{country|}}} | [[Category:Wikipedians in {{{country}}}]] | {{#ifexist:Category:Wikipedians in the {{{country|}}} | [[Category:Wikipedians in the {{{country}}}]] | {{#ifexist:Category:Wikipedians in {{getalias|{{{country|}}}}} | [[Category:Wikipedians in {{getalias|{{{country|}}}}}]] | {{#ifexist:Category:Wikipedians in the {{getalias|{{{country|}}}}} | [[Category:Wikipedians in the {{getalias|{{{country|}}}}}]] }} }} }} }} }} }} }} }} }} }}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 10:12, 13 December 2012
Contents
Usage
Copy and paste the template below. All parameters are optional. Parameter names must be in lower case.
Infobox user {{{status}}} | ||
---|---|---|
{{{image_caption}}} | ||
Name | {{{name}}} | |
Birth date | {{{birthdate}}} | |
Birth place | {{{birthplace}}} | |
Current location | {{{location}}} | |
Country | {{{country}}} | |
Time zone | {{{timezone}}} | |
Current time | {{{current_time}}} | |
Nationality | {{{nationality}}} | |
Education and employment | ||
Occupation | {{{occupation}}} | |
Employer | {{{employer}}} | |
Education | {{{education}}} | |
University | {{{university}}} | |
Contact info | ||
Website | {{{website}}} | |
Blog | {{{blog}}} | |
{{{email}}} | ||
ICQ | {{{icq}}} | |
AIM | {{{aim}}} | |
GTalk | {{{gtalk}}} | |
XMPP | {{{jabber}}} | |
Skype | {{{skype}}} | |
MSN | {{{msn}}} | |
Yahoo | {{{yahoo}}} | |
.Mac | {{{mac}}} | |
IRC | {{{irc}}} | |
{{{facebook}}} | ||
Google+ | {{{google+}}} | |
{{{pinterest}}} | ||
{{{twitter}}} | ||
YouTube | {{{youtube}}} | |
Flickr | {{{flickr}}} | |
Infobox user subpages | ||
{{{subpages}}} | ||
Account statistics | ||
Joined | {{{joined_date}}} | |
First edit | {{{first_edit}}} | |
Edit count | {{{edit_count}}} | |
Permissions | {{{permissions}}} | |
Signature | {{{signature}}} | |
Userboxes | ||
|
{{Infobox user <!-- INFOBOX FORMATTING --------> | color = | fontcolor = | tablecolor = <!-- LEAD INFORMATION ----------> | title = <!-- optional, defaults to {{BASEPAGENAME}} --> | status = | image = | image_caption = | image_width = | name = | birthdate = | birthplace = | location = | country = | timezone = | current_time = | nationality = <!-- EDUCATION & EMPLOYMENT ----> | occupation = | employer = | education = | university = <!-- CONTACT INFO --------------> | website = <!-- {{URL|example.com}} --> | blog = <!-- {{URL|example.com}} --> | email = | icq = | aim = | gtalk = | jabber = | skype = | msn = | yahoo = | mac = | irc = | facebook = | google+ = | pinterest = | twitter = | youtube = | flickr = <!-- SUBPAGES -----------------> | subpages = <!-- Account statistics -------------> | joined_date = | first_edit = | edit_count = | permissions = | signature = <!-- USERBOXES -----------------> | userboxes = }}
Microformats
The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of wikipedia:microformats on Wikipedia, please see the microformat project.
Sub-templates
Date-of-birth ("bday") information will only be included in the microformat if {{Birth date}}, {{Birth date and age}}, {{Birth-date}} ({{bday}}), or {{Birth-date and age}} ({{b-da}}) are used in the infobox. (but do not use these if the date is before 1583).
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes; nor collapse nested elements which use them.
The above documentation is transcluded from Template:Infobox user/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |