Open main menu

Wikimedia Commons β

Template:Uc

User: Example

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Uc/doc.

User page link, internal or to other Wikipedias:

  • In the Commons: user conditional, depending on existence,
to either the user page or the user talk page or the contributions special page.
  • In other Wikipedias: to user contributions.

Usage

{{Uc |1= |3= }}

Function:

  • No interwiki language code: Link to the user page within Comons, if it exists
For users without a user page: Link to the user talk page, if it exists
For users even without a user talk page: Link to the page Special:Contributions
  • Any interwiki language code: Link to the page Special:Contributions
"cc" (is not an existing language code): Unconditional link to commons contributions

Template parameters

ParameterDescriptionDefaultStatus
1user name: it is required to specify the nameExamplerequired
2display name (nick name): may be formattedparam #1optional
3language code: for interwiki link, or "cc"emptyoptional
4either a "+" sign or a "-" sign, to prefix with namespace
(can as well be coded with parameter 2 or parameter 3)
emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified


Many users own in the Commons just a User Talk page, but no User page.

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".
If later the other pages are created, it prefers automatically the talk page or user page.
Since existence checks are not possible for other Wikipedias, these checks are performed only when no language code is specified.

Examples

Code Result Notes

{{Uc|Jimbo Wales}}

Jimbo Wales user page is existing

{{Uc|Test}}

Test no user page but user talk page exists

{{Uc|User|-}}

User: User prefix with namespace

{{Uc|User|+}}

User: User prefix with namespace

{{Uc|[[:b:user:Test]]}}

b:user:Test link as-it-is when starting with "[" or "{"

{{Uc|31.22.4.116}}

31.22.4.116 neither user page nor user talk page

{{Uc|Benutzer||de}}

Benutzer user contributions page in de:Wp

{{Uc|User||en}}

User user contributions page in en:Wp

{{Uc|Example||cc}}

Example user contributions page in Commons


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 · uploadsblock 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)

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