This page is semi-protected against editing.

Template:UL2.0

From Wikimedia Commons, the free media repository
(Redirected from Template:Userlinks2.0)
Jump to navigation Jump to search

Example (talk)

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:UL2.0/doc.

No description yet available.

Usage

{{UL2.0 |1= |2= |3= |contributions= |deletedcontributions= |editcount= |recentactivity= |logs= |blocklog= |rightslog= |rightsmanagement= |uploadlog= |editfilterlog= |sul= |globalcontribs= |blockuser= |hidename= }}

Template parameters

ParameterDescriptionDefaultStatus
1user nameName of the user diplay links foremptyrequired
2display nameDisplayed name of the user (for the user page link), by default the user nameemptyoptional
3interwiki prefixInterwiki prefix for the links, if they should not point to Commonsemptyoptional
contributionscontributionsShow contributions linkemptyoptional
deletedcontributionsdeleted contributionsShow deleted contributions linkemptyoptional
editcountedit countShow edit count linkemptyoptional
recentactivityrecent activityShow recent activity linkemptyoptional
logslogsShow logs link (i.e. log entries created by the user)emptyoptional
blocklogblock logShow block log link (i.e. log entries about blocks given to the user)emptyoptional
rightslogrights logShow rights log link (i.e. log entries about changes to the rights of the user)emptyoptional
rightsmanagementright managementShow rights management linkemptyoptional
uploadlogupload logShow upload log linkemptyoptional
editfilterlogedit filter logShow edit filter (AbuseFilter) log linkemptyoptional
sul
crosswiki
SUL infoShow CentralAuth linkemptyoptional
globalcontribsglobal contribsShow global contributions linkemptyoptional
blockuserblock linkShow link to block the user (can be used only by admins)emptyoptional
hidenamehiding usernameHides the username in case it is inappropriateemptyoptional
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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
user name1

Name of the user diplay links for

Userrequired
display name2

Displayed name of the user (for the user page link), by default the user name

Lineoptional
interwiki prefix3

Interwiki prefix for the links, if they should not point to Commons

Lineoptional
block logblocklog

Show block log link (i.e. log entries about blocks given to the user)

Lineoptional
block linkblockuser

Show link to block the user (can be used only by admins)

Lineoptional
contributionscontributions

Show contributions link

Lineoptional
deleted contributionsdeletedcontributions

Show deleted contributions link

Lineoptional
edit counteditcount

Show edit count link

Lineoptional
edit filter logeditfilterlog

Show edit filter (AbuseFilter) log link

Lineoptional
global contribsglobalcontribs

Show global contributions link

Lineoptional
hiding usernamehidename

Hides the username in case it is inappropriate

Lineoptional
logslogs

Show logs link (i.e. log entries created by the user)

Lineoptional
recent activityrecentactivity

Show recent activity link

Lineoptional
rights logrightslog

Show rights log link (i.e. log entries about changes to the rights of the user)

Lineoptional
right managementrightsmanagement

Show rights management link

Lineoptional
SUL infosul crosswiki

Show CentralAuth link

Lineoptional
upload loguploadlog

Show upload log link

Lineoptional

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

Relies on:
Module:String#replace (for «s/ /_/g»), {{int:…}} stuff

Example

{{UL2.0|Example|||contributions=1 |deletedcontributions=1 |editcount=1 |recentactivity=1 |logs=1 |blocklog=1 |rightslog=1 |rightsmanagement=1 |uploadlog=1 |editfilterlog=1 |sul=1 |crosswiki=1 |globalcontribs=1 |blockuser=1}}

renders as:

Localization

This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).

Some items not translated (yet)

User and user talk links

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}}

{{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 · 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}}

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.