Template:Userlinks2.0

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

Example (talk)

Documentationviewedithistorypurge
This documentation is transcluded from Template:Userlinks2.0/doc.

No description yet available.

Usage

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

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
sulSUL infoShow SUL (Single User Login) info linkemptyoptional
crosswikiCentralAuthShow CentralAuth linkemptyoptional
globalcontribsglobal contribsShow global contributions linkemptyoptional
blockuserblock linkShow link to block the user (can be used only by admins)emptyoptional
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

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
CentralAuthcrosswiki

Show CentralAuth 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
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

Show SUL (Single User Login) info 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

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

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.