Open main menu

Example (talk · contribs)

Documentationviewedithistorypurge
This documentation is transcluded from Template:User/doc.

Generates three link entries, either internal or interwiki: User page, user talk page, user contribution special page.

Usage

{{User |User= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
User
1
UsernameUsernameExamplerequired
2
nick namenick name: display text, may be formattedparam. #1optional
3
language codelanguage code: for interwiki linkcommonsoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Generates three link entries, either internal or interwiki: User page, user talk page, user contribution special page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
nick name2

nick name: display text, may be formatted

Default
param. #1
Stringoptional
language code3

language code: for interwiki link

Default
commons
Stringoptional
UsernameUser 1

Username

Default
Example
Userrequired

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

See also

Examples

All parameter combinations

000 {{User}} → Example (talk · contribs) [1]

003 {{User|3=pt}} → Example (talk · contribs) [1]

020 {{User||display}} → display (talk · contribs)[1]

023 {{User||nickname|es}} → nickname (talk · contribs)[1]

100 {{User|Xclios}} → Xclios (talk · contribs)
U00 {{User|User=Xclios}} → Xclios (talk · contribs)

103 {{User|Xclios||it}} → Xclios (talk · contribs)
U03 {{User|User=Xclios|||it}} → Xclios (talk · contribs)

120 {{User|Xclios|Display name}} → Display name (talk · contribs)
U20 {{User|User=Xclios|2=Display name}} → Display name (talk · contribs)

123 {{User|Xclios|Display name|nl}} → Display name (talk · contribs)
U23 {{User|User=Xclios||Display name|nl}} → Display name (talk · contribs)

  1. a b c d It is recommended always to specify parameter #1, or "User="


User and user talk links

Important: Always specify the user names without the namespace
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"

{{Uwt|Username}}

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

{{U|Username|link=no}}

‍Username     does not link to user page
WWW Combinations:

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