Difference between revisions of "Template:Infobox user"

From CHG-Wiki
Jump to navigationJump to search
(Undo revision 994 by Libby (talk))
(Simplified Infobox (remove location, country, time zone parser functions).)
 
(9 intermediate revisions by the same user not shown)
Line 33: Line 33:
  
 
| label7      = Current location
 
| label7      = Current location
| data7      = {{#if:{{{location|}}}| {{#ifeq:{{#if:{{{country|}}}|1|0}}{{#ifexist:{{{location}}}, {{{country}}}|1|0}}|11<!-- i.e. both conditions are met-->|[[{{{location}}}, {{{country}}}|{{{location}}}]] | {{#ifeq:{{#ifeq:{{strfind short|{{{location|}}}|,|1}}|0|0|1}}{{#ifexist:{{{location|}}}|1|0}}|11<!-- i.e. both conditions are met-->| [[{{{location}}}]] | {{{location}}} }} }} }}
+
| data7      = {{{location|}}}
 
| class7      = label
 
| class7      = label
  
 
| label8      = Country
 
| label8      = Country
| data8      = {{#if:{{{country|}}}|{{flag|{{{country}}}}}}}
+
| data8      = {{{country|}}}
  
 
| label9      = Time&nbsp;zone
 
| label9      = Time&nbsp;zone
| data9      = {{#if:{{{timezone|}}}|{{#if:{{isValidPageName|{{{timezone}}}}}|[[{{{timezone}}}]]|{{{timezone}}}}}}}
+
| data9      = {{{timezone|}}}
  
 
| label10      = Current&nbsp;time
 
| label10      = Current&nbsp;time
Line 233: Line 233:
 
|data71      = {{{edit_count|}}}
 
|data71      = {{{edit_count|}}}
  
| label72    = {{#if:{{{permissions|}}}|<span class="plainlinks">[http://chg-wiki.geog.ucsb.edu/index.php?title=Special:ListUsers&limit=1&username{{ROOTPAGENAMEE}} Permissions]</span>}}
+
| 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|}}}
  

Latest revision as of 10:12, 13 December 2012

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

Copy and paste the template below. All parameters are optional. Parameter names must be in lower case.













Infobox user
{{{status}}}
{{{image_caption}}}
{{{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 {{{email}}}
ICQ {{{icq}}}
AIM {{{aim}}}
GTalk {{{gtalk}}}
XMPP {{{jabber}}}
Skype {{{skype}}}
MSN {{{msn}}}
Yahoo {{{yahoo}}}
.Mac {{{mac}}}
IRC {{{irc}}}
Facebook {{{facebook}}}
Google+ {{{google+}}}
Pinterest {{{pinterest}}}
Twitter {{{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

{{{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.