Template:User rights/doc

From MattWiki
Jump to: navigation, search

Use this to create a userbox about user rights.

Template parameters

ParameterDescriptionTypeStatus
imageimage

File name image to show, excluding the prefix File:

Default
empty
Example
Wikipedia Administrator.svg
Auto value
empty
Fileoptional
logo sizelogo-size

width of image

Default
40px
Example
35px
Auto value
empty
Stringoptional
RFARFA

page to link to

Default
empty
Example
WP:USER
Auto value
empty
Pageoptional
rightsrights

name of the user rights

Default
empty
Example
[[Wikipedia:User access levels#Administrators|admin]]
Auto value
empty
Stringrequired
wherewhere

name of the project

Default
empty
Example
English Wikipedia
Auto value
empty
Stringrequired
language codelang_code

2 letter language code used in URL to verify rights

Default
en
Example
ru
Auto value
empty
Stringoptional
usernameusername

username used in URL to verify rights

Default
BASEPAGENAME
Example
UPX
Auto value
empty
Useroptional
groupgroup

user right name used in URL to verify rights

Default
empty
Example
sysop
Auto value
empty
Stringoptional
info sizeinfo-size

text size

Default
8
Example
7
Auto value
empty
Numberoptional
nocatnocat

nocat, to be passed on to the next template

Default
empty
Example
{{{nocat|}}}
Auto value
empty
Stringoptional
categorycategory

category to place the user page in

Default
empty
Example
Wikipedia administrators
Auto value
empty
Stringoptional

Usage

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

See also