Difference between revisions of "Template:Infobox user"
m (1 revision: Infoboxes) |
m (Removed unnecessary categories.) |
||
| Line 14: | Line 14: | ||
| data1 = {{{name|}}} | | data1 = {{{name|}}} | ||
| class1 = fn | | class1 = fn | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| label5 = Birth date | | label5 = Birth date | ||
| Line 49: | Line 38: | ||
| class11 = category | | class11 = category | ||
| − | | | + | | header20 = {{#if:{{{occupation|}}}{{{employer|}}}{{{education|}}}{{{college|}}}{{{university|}}}{{{highschool|}}}|Education and employment}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| label31 = Occupation | | label31 = Occupation | ||
| Line 116: | Line 47: | ||
| data32 = {{{employer|}}} | | data32 = {{{employer|}}} | ||
| class32 = org | | class32 = org | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| label35 = University | | label35 = University | ||
| data35 = {{{university|}}} | | data35 = {{{university|}}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| header44 = {{#if:{{{interests|}}}|Interests}} | | header44 = {{#if:{{{interests|}}}|Interests}} | ||
| Line 248: | Line 148: | ||
</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> | ||
Revision as of 14:21, 5 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 data {{{country}}}|flag/core|name={{{country}}}|variant=|size=}} | |
| Time zone | {{{timezone}}} | |
| Current time | {{{current_time}}} | |
| Nationality | {{{nationality}}} | |
| Education and employment | ||
| Occupation | {{{occupation}}} | |
| Employer | {{{employer}}} | |
| 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. |