Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a23999dbdfc47929

Jump to content

Template:User WCUP/doc

From Wikipedia, the free encyclopedia

Documentation

[edit]

The {{User WCUP}} template shows that the user is also a user of Wikimedia Commons and has a Wikimedia Commons User Page. It should not be substed. As a userbox, it was designed to be placed on a user page, where that user had the same name on Wikimedia Commons, so by default the main optional parameter takes the name of the page that it's placed on. (If Jimbo Wales put it on his user page, then it would state, "Wikimedia Commons has a User Page for Jimbo Wales".) If it is placed on a different page or if a user has a different username on Wikimedia Commons, an optional "user" parameter allows it to be explicitly given a specific username to link to. In addition, it has multiple optional parameters for formatting. The link to a userpage will never be a red link due to the nature of cross-project linking, so please check your work by previewing and following the link. Due to the limitations of cross-wiki linking, the links will continue to remain blue.

Usage

[edit]
{{User WCUP}}
{{User WCUP|name on Commons}}

Example

[edit]
Code Result
{{User WCUP}}
Wikimedia Commons has a User Page for User WCUP
{{User WCUP|Jimbo Wales}}
Wikimedia Commons has a User Page for Jimbo Wales
{{User WCUP|user=Jimbo Wales}}
Wikimedia Commons has a User Page for Jimbo Wales

Advanced Formatting

[edit]

There are also several additional formatting options in the template. The following attributes are all implicitly assigned a value, but they may be changed by explicitly assigning them a value. Any attribute starting with "info-" refers to the text of the userbox.

Attribute Value

Advanced Formatting Example

[edit]
Wikimedia Commons has a User Page for Jimbo Wales

If we wanted the textbox to float on the right, instead of float on the left, with a "gold" border, a "jolly green" background and text the color of "Harold's Crayon", then {{User WCUP | Jimbo Wales | float=right | border-width=9 |border-color=gold |info-background=#9CCB19 |info-size=20 |info-color=#B62084}} would give us that image which you see over on the right.

TemplateData

[edit]

A userbox to show that a user has a userpage on Wikimedia Commons

Template parameters

ParameterDescriptionTypeStatus
User1 user

The title of the userpage on Wikimedia Commons, minus the User: prefix. Defaults to the base title of the userpage the userbox is placed on.

Default
{{BASEPAGENAME}}
Stringoptional
Floatfloat

Changes where the box floats.

Suggested values
left right none
Default
left
Stringoptional
Border colorborder-color

Changes the color of the userbox border.

Default
#000
Stringoptional
Border Widthborder-width

Changes the width of the userbox border, in pixels.

Default
1
Numberoptional
Info background colorinfo-background

Changes the background color of the userbox.

Default
#FFF
Stringoptional
Info font colorinfo-color

Changes the info font color.

Default
#000
Stringoptional
Info font sizeinfo-size

Changes the info text size, in points.

Default
8
Numberoptional

See also

[edit]