Template:User/doc

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

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
2nick namenick name: display text, may be formattedparam. #1optional
3language codelanguage code: for interwiki linkcommonsoptional
<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.


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="


Code Result [1] Shortcut

{{U|Username}}

Username     links to user page

{{Uc|Username}}

Username     conditional link to contributions page

{{Ud|Username}}

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

{{Un|Username}}

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

{{Ut|Username}}

Username     links to user talk page

{{Uw|Username}}

Username     trails the given name with "~commonswiki"

{{Uwt|Username}}

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

{{Userlist|Username}}

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

{{UL2.0|Username}}

Username (talk)Customizable template

{{Ult|Username}}

Username (talk)

{{User|Username}}

Username (talk · contribs)

{{Uv|Username|:en:}}

:en:Username (talk | contribs) ~

{{User2|Username}}

Username (talk · contributions · Statistics)

{{User3|Username}}

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

{{User4|Username}}

Username ( local | logs | global )

{{User5|Username}}

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

{{User6|Username}}

Username (talk · contributions · Move log · Statistics · 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 (views) · deleted user contributions · recent activity (talk · project · deletion requests) · logs · block log · global contribs · CentralAuth)

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

{{BotUser|Username}}

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