From Fedora Project Wiki

(Allow user to specify pronouns and show them under Personal Information in infobox template)
(TEST: Add an if-block to the pronouns inclusion in userbox title (i.e. if a user does not have pronouns set, do not show them))
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| cellpadding="5" border="0" style="border-spacing: 0px; background-color: #000000; 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: #000000; 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: #000000; font-size: larger; font-weight: bold; text-align: center; border: 0;" | {{{REAL-NAME}}}
! colspan="2" style="color: white; background-color: #000000; font-size: larger; font-weight: bold; text-align: center; border: 0;" | {{{REAL-NAME}}} {{#if:{{{pronouns|}}}|({{{pronouns}}})}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align: center; border: 0;" {{!}} [[Image:{{{image}}}{{!}}none{{!}}{{{REAL-NAME}}}]]
{{!}} colspan="2" style="text-align: center; border: 0;" {{!}} [[Image:{{{image}}}{{!}}none{{!}}{{{REAL-NAME}}} ({{{pronouns}}})]]
}}
}}
{{#if:{{{pronouns|}}}{{{location|}}}{{{birthday|}}}{{{homepage|}}}{{{email|}}}{{{gpg|}}}|
{{#if:{{{pronouns|}}}{{{location|}}}{{{birthday|}}}{{{homepage|}}}{{{email|}}}{{{gpg|}}}|
Line 34: Line 34:
{{!}} style="border: 0;" {{!}} '''GPG key:''' {{!}}{{!}} style="border: 0;" {{!}} [https://keys.gnupg.net/pks/lookup?search=0x{{{gpg}}} {{{gpg}}}]
{{!}} style="border: 0;" {{!}} '''GPG key:''' {{!}}{{!}} style="border: 0;" {{!}} [https://keys.gnupg.net/pks/lookup?search=0x{{{gpg}}} {{{gpg}}}]
}}
}}
{{#if:{{{identi.ca|}}}{{{jabber|}}}{{{irc-nick|}}}{{{irc-channels|}}}{{{callsign|}}}{{{twitter|}}}{{{facebook|}}}{{{googleplus|}}}{{{linkedin|}}}{{{github|}}}{{{gitlab|}}}{{{callsign|}}}{{{telegram|}}}|
{{#if:{{{identi.ca|}}}{{{jabber|}}}{{{irc-nick|}}}{{{irc-channels|}}}{{{callsign|}}}{{{twitter|}}}{{{facebook|}}}{{{linkedin|}}}{{{github|}}}{{{gitlab|}}}{{{callsign|}}}{{{telegram|}}}|
{{!}}-
{{!}}-
! colspan="2" style="color: white; background-color: #337acc; font-weight: bold; text-align: center; border: 0;" {{!}} Contact information
! colspan="2" style="color: white; background-color: #337acc; font-weight: bold; text-align: center; border: 0;" {{!}} Contact information
Line 70: Line 70:
{{!}}- class{{{facebook{{!}}<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0;"
{{!}}- class{{{facebook{{!}}<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0;"
{{!}} style="border: 0;" {{!}}'''Facebook:''' {{!}}{{!}} style="border: 0;" {{!}} [https://facebook.com/{{{facebook}}} {{{facebook}}}]
{{!}} style="border: 0;" {{!}}'''Facebook:''' {{!}}{{!}} style="border: 0;" {{!}} [https://facebook.com/{{{facebook}}} {{{facebook}}}]
}}<!--
-->{{#if:{{{googleplus|}}}|&#8203;
{{!}}- class{{{googleplus{{!}}<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0;"
{{!}} style="border: 0;" {{!}}'''Google+:''' {{!}}{{!}} style="border: 0;" {{!}} [https://plus.google.com/{{{googleplus}}} {{{googleplus}}}]
}}<!--
}}<!--
-->{{#if:{{{linkedin|}}}|&#8203;
-->{{#if:{{{linkedin|}}}|&#8203;
Line 85: Line 81:
-->{{#if:{{{gitlab|}}}|&#8203;
-->{{#if:{{{gitlab|}}}|&#8203;
{{!}}- class{{{gitlab{{!}}<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0;"
{{!}}- class{{{gitlab{{!}}<noinclude>x</noinclude>}}}="hiddenStructure" style="background-color: #fbfbff; vertical-align: top; border: 0;"
{{!}} style="border: 0;" {{!}}'''Gitlab:''' {{!}}{{!}} style="border: 0;" {{!}} [https://gitlab.com/{{{gitlab}}} {{{gitlab}}}]
{{!}} style="border: 0;" {{!}}'''GitLab:''' {{!}}{{!}} style="border: 0;" {{!}} [https://gitlab.com/{{{gitlab}}} {{{gitlab}}}]
}}
}}
{{#if:{{{fas-name|g}}}|&#8203;
{{#if:{{{fas-name|g}}}|&#8203;

Revision as of 19:56, 4 November 2020

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
|image-text   = A transparent version of File:Persona-telecommuter.png, slightly modified to make the background transparent.
|pronouns     = they/them
|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
|linkedin     = rhfedora
|fediverse    = @fedora@fosstodon.org
|fediverse-url = fosstodon.org/@fedora
|github       = rhfedora
|gitlab       = rhfedora
|fas-name     = rhfedora
|telegram     = rhfedora
}}

Output:

R. H. Fedora (they/them)
R. H. Fedora (they/them)
Personal information
Pronouns: they/them
Location: San Francisco, California
Birthday: Private
Homepage: https://fedoraproject.org/
E-mail: rhfedora@example.com
GPG key: DEADBEEF
Contact information
Jabber: rhfedora@example.com​
Ham Radio: N2ASD​
Twitter: fedora
Telegram: rhfedora
Facebook: fedora
LinkedIn: rhfedora
GitHub: rhfedora
GitLab: rhfedora

Fedora-specific information
FAS name: rhfedora
Fedora e-mail: rhfedora@fedoraproject.org
Fedora homepage: rhfedora.fedorapeople.org
 


More Examples

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