Jump to content

Template:Uc

From Wikimedia Commons, the free media repository

User: Example

Template documentation[ view · edit · history · purge ]
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 Commons, if it exists
For users without a user page: Link to the user talk page, if it exists
For users without a user talk page: Link to the user~commonswiki page, if it exists
For users without user~commonswiki page: Link to the user~commonswiki talk page, if it exists
For "users" without all that: 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: the User namespace

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 checks whether the user~commonswiki page exists, and links to it if yes.
Otherwise it checks whether the user~commonswiki 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 what first can be found.
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|Example}}

Example user page is existing

{{Uc|Test}}

Test no user page but user talk page exists

{{Uc|Example|-}}

User: Example prefix with namespace

{{Uc|Example|+}}

User: Example prefix with namespace

{{Uc|[[:b:User:Example]]}}

b:User:Example link as-it-is when starting with "[" or "{"

{{Uc|127.0.0.1}}

127.0.0.1 IP user

{{Uc|Example||de}}

Example user contributions page in de:Wp

{{Uc|Example||en}}

Example user contributions page in en:Wp

{{Uc|Example||cc}}

Example user contributions page in Commons


[edit ]

Code Result [1] Shortcut

{{U|Example}}

Example     links to user page

{{Uc|Example}}

Example     conditional link to contributions page

{{Ud|Example}}

Example     links to German user page =
{{Ue|Example}} Example     links to English user page (not yet a template) =

{{Un|Example}}

‍Example     does not link to user page; no echo function

{{Ut|Example}}

Example     links to user talk page

{{Uw|Example}}

Example     trails the given name with "~commonswiki"

{{Uwt|Example}}

Example     links to the talk page of "~commonswiki" user

{{Userlist|Example}}

Example     Lua based list of one or more users {{ Ul }}
WWW Combinations:

{{UL2.0|Example}}

Example (talk)Customizable template

{{Ult|Example}}

Example (talk)

{{User|Example}}

Example (talk · contribs)

{{Uv|Example|:en:}}

:en:Example (talk | contribs) ~

{{User2|Example}}

Example (talk · contributions · Statistics)

{{User3|Example}}

Example (talk · contributions · Move log · block log · uploads · Abuse filter log {{Vandal}}

{{User4|Example}}

Example ( local | logs | global )

{{User5|Example}}

Example (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

{{User6|Example}}

Example (talk · contributions · Move log · Statistics · logs · block log)

{{User7|Example}}

Example (talk · contributions · user rights management)

{{User8|Example}}

Example (talkcontribsblock logfilter log)

{{User13|Example}}

Example (talk · contribs · logs · block log)

{{User14|Example}}

Example (talk · contributions (views) · deleted user contributions · deleted uploads · recent activity (talk · project · deletion requests) · logs · block log · global contribs · CentralAuth)

{{User21|Example}}

Example (talk · contribs · count · global contribs)

{{Userlinks|Example}}

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

{{Admin|Example}}

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

{{UserSUL|Example}}

Example (talk • contribs • rename user)

{{BotUser|Example}}

Example (contribs)

{{Newbot|Example}}

taskscontribscountlogspage moves block user block logflag logglobal contribsflag bot

{{Checkuser|Example}}

Example (talk contribs Luxo SUL deleted contribs logs block user block log)
  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.