![]() |
This template has been protected from editing to prevent vandalism. Please discuss changes on the talk pageorrequest unprotection. |
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please discuss proposed changes on the talk page first.
Afterwards, changes can initially be done at and tested with Template:U/sandbox.
|
Link to a user, either internal or interwiki
{{U |1= |9= |10= }}
Many users have only a User Talk page but no User page on Commons. This results in a red link with the standard linking [[User:UserName]]
.
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 the new user page with the user name,
or to the talk page with {{Uwt|
when only this one exists.
Sometimes neither user page nor the user talk page exist on Commons.
This template pings the mentioned user like a normal page link. To not ping the user, see {{Noping}}.
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Username |
It is recommended to define the user name. If absent, the name is shown of the last editing user | {{REVISIONUSER}} | suggested |
2 | Displayed Text | May be formatted wikitext or html. | {{{1}}} | optional |
3 | Interwiki Prefix | language code: for interwiki link. If absent, link to user entry in the Commons | empty | optional |
4 |
± ("+" or "-" sign) to precede the user name with the namespace
(ifboth signs are specified, "+" is used and "-" is ignored) | empty | optional | |
link | specify link=no to suppress the link | empty | optional | |
| more parameters to format the namespace (when "+" or "-" is specified)
| optional | ||
case | for formatting of the namespace:
| empty | optional | |
i18n | AnISO 639 language code, to follow another translation then yours
| en | optional | |
9 | empty | optional | ||
10 | empty | optional |
Template data | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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
Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Link to a user, either internal or interwiki.
|
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
Relies on:
Main template code {{U/main}}
Instead of [[User:Konstantinopoulosstephanopoulos|Konstantinopoulosstephanopoulos]]
write just {{U|Konstantinopoulosstephanopoulos}} 0for the same output Konstantinopoulosstephanopoulos
Instead of [[User:Renamed user wfoeefkqoifeqofmcqm|Renamed user wfoeefkqoifeqofmcqm]]
write just {{U|Renamed user wfoeefkqoifeqofmcqm}} 0for the same output Renamed user wfoeefkqoifeqofmcqm
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; only in
case=i
orcase=n
the namespace can be translated using the "{{LangSwitch}}" construct (according to lang
).![]() | Uses Lua:
|
Table: different displays for {{U}} with the namespace option 0 | |
---|---|
{{ U | username }} 0this is the standard | username |
{{ U | username | - }} | User:username |
{{ U | username | - | case = l }} | user:username |
{{ U | username | - | case = i }} | user:username |
{{ U | username | - | case = n }} | user:username |
{{ U | username | + }} | User:username |
{{ U | username | + | case = l }} | user:username |
{{ U | username | + | case = i }} | user:username |
{{ U | username | + | case = n }} | user:username |
{{ U | username | link = n }} | username |
{{ U | username | - | link = n }} | User:username |
{{ U | username | - | link = n | case = l }} | user:username |
{{ U | username | - | link = n | case = i }} | user:username |
{{ U | username | - | link = n | case = n }} | user:username |
{{ U | username | + | link = n }} | User:username |
{{ U | username | + | link = n | case = l }} | user:username |
{{ U | username | + | link = n | case = i }} | user:username |
{{ U | username | + | link = n | case = n }} | user:username |
[edit ]
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) block user | ✔ | {{Vandal}} |
{{User6|Username}} |
Username (talk · contributions · Move log · Statistics · logs · block log) | ✔ | |
{{User7|Username}} |
Username (talk · contributions · user rights management) | ✔ | |
{{User8|Username}} |
Username (talk • contribs • block log • filter log) | – | |
{{User13|Username}} |
Username (talk · contribs · logs · block log) | – | |
{{User14|Username}} |
Username (talk · contributions · deleted user contributions · recent activity · 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}} |
tasks • contribs • count • logs • page moves • block user • block log • flag log • global contribs • flag bot | – | |
{{Checkuser|Username}} |
Username (talk • contribs • Luxo's • SUL • deleted contribs • logs • block user • block log • checkuser) | – |
Be aware that other templates may use the parameter "editor" or "by" for the same purpose.