Jump to content

Template:UL2.0

From Wikifunctions

Example (talk)

Template documentation

No description yet available.

Usage

{{UL2.0 |1= |2= |3= |contributions= |deletedcontributions= |editcount= |recentactivity= |logs= |blocklog= |rightslog= |rightsmanagement= |uploadlog= |editfilterlog= |sul= |globalcontribs= |hidename= |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 Wikifunctionsemptyoptional
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
hidenamehiding usernameHides the username in case it is inappropriateemptyoptional
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[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 Wikifunctions

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

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

{{Commons:Link templates/User and user talk links}}