Template:User rights/doc

From Bharatpedia, an open encyclopedia

This is a shared documentation page.

Template parameters

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for User rights

Use this to create a userbox about user rights.

Template parameters

ParameterDescriptionTypeStatus
imageimage

File name image to show, excluding the prefix File:

Example
Bharatpedia Administrator.svg
Fileoptional
logo sizelogo-size

width of image

Default
40px
Example
35px
Stringoptional
RFARFA

page to link to

Example
BP:USER
Page nameoptional
temporarytemporary

includes 'temporary' before rights

Example
temporary=yes, or temporary=y
Stringrequired
rightsrights

name of the user rights

Example
[[Bharatpedia:User access levels#Administrators|admin]]
Stringrequired
wherewhere

name of the project

Example
English Bharatpedia
Stringrequired
language codelang_code

2 letter language code used in URL to verify rights

Default
en
Example
ru
Stringoptional
usernameusername

username used in URL to verify rights

Default
BASEPAGENAME
Example
UPX
Useroptional
groupgroup

user right name used in URL to verify rights

Example
sysop
Stringoptional
info sizeinfo-s info-size

info box text size

Default
8
Example
7
Numberoptional
nocatnocat

disable automatic page category declarations (see BP:NOCAT)

Example
true
Stringoptional
categorycategory

category to place the user page in

Example
Bharatpedia administrators
Stringoptional
logo colorid-c

Left box background color

Default
#DDD
Example
#D0D0D0
Stringoptional

Usage

This template shows that a user has the account creator right.

Markup Renders as
{{User rights|rights=[[Bharatpedia:User access levels#Administrators|admin]]|where=English Bharatpedia}}
This user has admin rights on the English Bharatpedia. (verify)
{{User rights
|image=Bharatpedia Administrator.svg
|rights=administrator
|where=[[Russian Bharatpedia]]
|group=sysop
|lang_code=ru}}
File:Bharatpedia Administrator.svgThis user has administrator rights on the Russian Bharatpedia. (verify ru)
{{User rights
|image=Bharatpedia Administrator.svg
|RFA={{{RFA|}}}
|rights=[[Bharatpedia:User access levels#Administrators|admin]]
|where=[[English Bharatpedia]]
|lang_code={{{lang_code|}}}
|username={{{username|}}}
|group=sysop
|nocat={{{nocat|}}}
|category=Bharatpediaadministrators}}
Wikipedia Administrator.svgThis user has admin rights on the English Bharatpedia. (verify)

See also