Template:U

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:U/doc.

Link to a user, either internal or interwiki

  • For users without a user page you may link to their talk page with {{Ut}}.
  • For links to users of the German Wikipedia choose the effective {{Ud}}.

Usage

{{U |1= }}

Many users have only a User Talk page but no User page on Commons. This results in a red link when the user is mentioned using a standard {{user|UserName}} template.
An easy edit to fix this link is just to change the {{U| to {{Ut| to link the user talk page with the user name.

Another reason for a redlink may result of changing the user name by the postfix "~commonswiki".
An easy edit to fix this link is just to change it to {{Uw| to link to the new user page with the user name.

Sometimes neither user page nor the user talk page exist on Commons.

  • The Template:Uc checks whether the user page exists, and links to it if yes.
Otherwise it checks whether the user talk page exists, and links to it if yes.
Otherwise it links to the special page "user contributions" that lists the editor's contributions on Commons.
If the other pages are created later, it automatically prefers the talk page over the user page.
Since existence checks are not possible in other Wikipedias, these checks are performed only when no language code is specified.

Template parameters

ParameterDescriptionDefaultStatus
1user name: it is recommended to define the user name.
If absent, the name is shown of the last editing user
emptyoptional
2nick name: display text, may be formatted wikitext or htmlemptyoptional
3language code: for interwiki link. If absent, link to user entry in the Commonsemptyoptional
4+ or - to precede the user name with the namespace User:
+ ("plus" sign) to make User: a part of the link,
- ("minus" sign) to precede User: as plain text;

(if both signs are specified, "+" is used and "-" is ignored)

The +/- parameter can as well be specified with parameter 2 or 3.
emptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.

The template does not generate any localizable text; with + or - always the namespace in English: "User" is displayed.

User and user talk links

Code Result [1] Shortcut

{{u|Username}}

Username     links to user page

{{ud|Username}}

Username     links to German user page =

{{ut|Username}}

Username     links to user talk page

{{uc|Username}}

Username     conditional link to contributions page

{{uw|Username}}

Username     trails the given name with "~commonswiki"; 0 see also: uwt

{{ult|Username}}

Username (talk)

{{user|Username}}

Username (talk · contribs)

{{uv|Username|:en:}}

:en:Username (talk | contribs) ~

{{user2|Username}}

Username (talk · contributions · Number of edits)

{{user3|Username}}

Username (talk · contributions · Move log · block log · uploads · Abuse filter logblock user {{Vandal}}

{{user6|Username}}

Username (talk · contributions · Move log · Number of edits · logs · block log)

{{user7|Username}}

Username (talk · contributions · user rights management)

{{user8|Username}}

Username (talkcontribsblock logfilter log)

{{user13|Username}}

Username (talk · contribs · logs · block log)

{{user14|Username}}

Username (talk · contributions · deleted user contributions · recent activity · logs · block log · global contribs · SULinfo)

{{user21|Username}}

Username (talk · contribs · count · global contribs)

{{userlinks|Username}}

Username (talk · contribs · deleted contribs · logs · edit filter log · block user · block log)

{{admin|Username}}

Username (talk contribs blocks protections deletions moves rights rights changes) {{A}}

{{userSUL|Username}}

Username (talk • contribs • rename user • SUL utility)

{{botUser|Username}}

User:Username (contribs)

{{newbot|Username}}

taskscontribscountlogspage moves block user block logflag logglobal contribsflag bot

{{checkuser|Username}}

Username (talk contribs Luxo's SUL deleted contribs logs block user block log checkuser)
  1. Interwiki template: Interwiki access (with 3=language code)
Be aware that other templates may use the parameter "editor" or "by" for the same purpose.