This page is semi-protected against editing.


From Wikimedia Commons, the free media repository
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.


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

Template parameters

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

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

This template prefers inline formatting of parameters.

user name1

Name of the user diplay links for

display name2

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

interwiki prefix3

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

block logblocklog

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

block linkblockuser

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


Show contributions link

deleted contributionsdeletedcontributions

Show deleted contributions link

edit counteditcount

Show edit count link

edit filter logeditfilterlog

Show edit filter (AbuseFilter) log link

global contribsglobalcontribs

Show global contributions link

hiding usernamehidename

Hides the username in case it is inappropriate


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

recent activityrecentactivity

Show recent activity link

rights logrightslog

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

right managementrightsmanagement

Show rights management link

SUL infosul crosswiki

Show CentralAuth link

upload loguploadlog

Show upload log link


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


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


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

Some items not translated (yet)

User and user talk links

Code Result [1] Shortcut


Username     links to user page


Username     links to German user page =


Username     links to user talk page


Username     conditional link to contributions page


Username     trails the given name with "~commonswiki"


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


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


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


Username (talk)


Username (talk · contribs)


:en:Username (talk | contribs) ~


Username (talk · contributions · Number of edits)


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


Username (talk · contributions · Move log · Number of edits · logs · block log)


Username (talk · contributions · user rights management)


Username (talkcontribsblock logfilter log)


Username (talk · contribs · logs · block log)


Username (talk · contributions · deleted user contributions · recent activity · logs · block log · global contribs · CentralAuth)


Username (talk · contribs · count · global contribs)


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


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


Username (talk • contribs • rename user • SUL utility)


User:Username (contribs)


taskscontribscountlogspage moves block user block logflag logglobal contribsflag bot


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.