From Fedora Project Wiki

(Added this infobox to Category:User page templates)
m (use includeonly, onlyinclude not supported)
Line 1: Line 1:
<onlyinclude>{| cellpadding="5" border="0" style="border-spacing:0px; background-color:#fbfbff; font-size:95%; margin:0 0 0.5em 1em; width:25em; border: 0; {{#ifeq:{{NAMESPACE}}|Template||float:right}}"
+
<includeonly>{| cellpadding="5" border="0" style="border-spacing:0px; background-color:#fbfbff; font-size:95%; margin:0 0 0.5em 1em; width:25em; border: 0; {{#ifeq:{{NAMESPACE}}|Template||float:right}}"
! colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; font-size: larger; -moz-border-radius-topright: 8px; -moz-border-radius-topleft: 8px; border: 0;" | {{{REAL-NAME}}}
+
! colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; font-size: larger; -moz-border-radius-topright: 8px; -moz-border-radius-topleft: 8px; border: 0;" |       {{{REAL-NAME}}}
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
 
{{!}}-
 
{{!}}-
Line 7: Line 7:
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Personal information
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Personal information
 
}}
 
}}
|-  class{{{location<includeonly>|</includeonly>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
+
|-  class{{{location|g}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
| style="border: 0;" |'''Location:''' || style="border: 0;"| {{{location}}}
 
| style="border: 0;" |'''Location:''' || style="border: 0;"| {{{location}}}
|- class{{{email<includeonly>|</includeonly>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
+
|- class{{{email|g}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
| style="border: 0;" | '''Email:''' || style="border: 0" | {{{email}}}
 
| style="border: 0;" | '''Email:''' || style="border: 0" | {{{email}}}
|- class{{{homepage<includeonly>|</includeonly>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
+
|- class{{{homepage|g}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
| style="border: 0;" |'''Homepage:''' || style="border: 0;" | [http://{{{homepage}}} {{{homepage}}}]
 
| style="border: 0;" |'''Homepage:''' || style="border: 0;" | [http://{{{homepage}}} {{{homepage}}}]
|- class{{{birthday<includeonly>|</includeonly>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
+
|- class{{{birthday|g}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
| style="border: 0;" | '''Birthday:''' || style="border: 0;" | {{{birthday}}}
 
| style="border: 0;" | '''Birthday:''' || style="border: 0;" | {{{birthday}}}
 
|- class{{{gpg|<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
|- class{{{gpg|<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0"
 
| style="border: 0;" | '''GPG-Key:''' || style="border: 0;" | [http://pgp.surfnet.nl:11371/pks/lookup?op=index&search=0x{{{gpg}}} {{{gpg}}}]
 
| style="border: 0;" | '''GPG-Key:''' || style="border: 0;" | [http://pgp.surfnet.nl:11371/pks/lookup?op=index&search=0x{{{gpg}}} {{{gpg}}}]
{{#if:{{{fas-name<includeonly>|</includeonly>}}}|
+
{{#if:{{{fas-name|g}}}|
 
{{!}}-
 
{{!}}-
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Fedora-specific Information
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Fedora-specific Information
Line 27: Line 27:
 
{{!}} style="border: 0;" {{!}} '''Fedorapeople:''' {{!}}{{!}} style="border: 0" {{!}} http://{{{fas-name}}}.fedorapeople.org
 
{{!}} style="border: 0;" {{!}} '''Fedorapeople:''' {{!}}{{!}} style="border: 0" {{!}} http://{{{fas-name}}}.fedorapeople.org
 
{{!}}-
 
{{!}}-
}}{{#if:{{{twitter<includeonly>|</includeonly>}}}{{{identi.ca|}}}{{{jabber|}}}{{{irc-nick|}}}{{{irc-channels|}}}|
+
}}{{#if:{{{twitter|}}}{{{identi.ca|}}}{{{jabber|}}}{{{irc-nick|}}}{{{irc-channels|}}}|
 
{{!}}-
 
{{!}}-
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Contact information}}
 
!  colspan="2" style="color: white; background-color: #3074c2; font-weight: bold; text-align:center; border: 0; " {{!}} Contact information}}
Line 42: Line 42:
 
|-
 
|-
 
! colspan="2" style="color: #3074c2; background-color: #3074c2; font-weight: bold; text-align:center; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px; border: 0;" | &nbsp;
 
! colspan="2" style="color: #3074c2; background-color: #3074c2; font-weight: bold; text-align:center; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px; border: 0;" | &nbsp;
|}</onlyinclude>
+
|}</includeonly>
 
+
<noinclude>
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
[[Category:User page templates]]
 
[[Category:User page templates]]
 
{{tempdoc}}
 
{{tempdoc}}
 +
</noinclude>

Revision as of 16:02, 10 February 2011

Template documentation [edit]
This documentation is transcluded from Template:Infobox user/doc. It will not be transcluded on pages that use this template.

Template:Infobox user is an infobox that provides basic information about a user. This template is typically used in user pages.

For a minimal use of this template, insert {{infobox user|REAL-NAME=R. H. Fedora}}. Many other fields may be provided, so it may be easier to copy and paste one of the examples below.

Examples

Important.png
Syntax Warning
"Failed to Decode JSON" messages are mainly due to a syntax mismatch. Ensure "fas-name" is lowercase. (You can also try wrapping the rest of your profile with noinclude statements)
Note.png
Note
This example will still show the JSON error message as there is no "rhfedora" user.

Typical user information

This example shows a sample user's infobox.

{{Infobox user
|REAL-NAME    = R. H. Fedora
|image        = Persona-telecommuter-transparent.png
|location     = San Francisco, California
|birthday     = Private
|homepage     = https://fedoraproject.org/
|email        = rhfedora@example.com
|gpg          = DEADBEEF
|identi.ca     = rhfedora
|jabber       = rhfedora@example.com
|irc-nick     = rhfedora
|irc-channels = #fedora, #fedora-devel
|callsign     = N2ASD
|twitter      = fedora
|facebook     = fedora
|googleplus   = +Fedora
|linkedin     = rhfedora
|github       = rhfedora
|gitlab       = rhfedora
|fas-name     = rhfedora
|telegram     = rhfedora
}}

Output:

R. H. Fedora
R. H. Fedora
Personal information
Location: San Francisco, California
Email: rhfedora@example.com
Homepage: https://fedoraproject.org/
Birthday: Private
GPG-Key: DEADBEEF
Fedora-specific Information
FAS-Name: rhfedora
Fedora Email: rhfedora@fedoraproject.org
Fedorapeople: http://rhfedora.fedorapeople.org
Contact information
Twitter: fedora
Identi.ca: {{{identi.ca}}}
Jabber: rhfedora@example.com
IRC: rhfedora on irc.freenode.net
#fedora, #fedora-devel
 


More Examples

Many examples of this template can be found at Special:WhatLinksHere.