• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:User WP

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
File:Portal-puzzle.svgThis user is a member of WikiProject Example.
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Ambox warning yellow.svgThis template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This template creates a userbox that identifies you as a member of a Wikipedia project, for example:

File:Americas (orthographic projection).svgThis user is a member of
WikiProject Americas.

Contents

  • 1 Usage
  • 2 Parameters
    • 2.1 Unnamed parameters
    • 2.2 Named parameters
      • 2.2.1 Other parameters
  • 3 Examples
  • 4 TemplateData
  • 5 Redirects
  • 6 See also

Usage

This template invokes Template:Userbox, automatically adding multiple parameters, including appropriate text, links and categories. If the project name is listed in the switch subtemplate, this template will also automatically display the right image and colors for the given project, otherwise you can set them using the named parameters.

The code is formatted according to recommendations in Wikipedia:Manual of Style/Accessibility §§ Color​ and Animations, video, and audio content.

Parameters

Unnamed parameters

To use this userbox template, place the following line of Wikitext on your user page:

{{User WP|1|2|3}}

where:

  • 1 is the required project base name (without the "Wikipedia:WikiProject" prefix, nor the "work group" or "task force" postfix)
  • 2 the optional text alignment:
    • center or left (default).
  • 3 for additional parameters:
    • break to display a line break between the "WikiProject" prefix and the base name;
    • list to display additional links to the project talk, articles and stubs, if the appropriate categories exist.

For examples, see the appropriate section below.

Named parameters

  • image the optional image base name (without the "File:" prefix).
  • size the optional image size (without the "px" suffix): default is size=39x39.
  • id-c the optional background color for the image: default is id-c=#DEF.
  • info-c the optional background color for the info: default is info-c=#FFFFFD.
  • info-fc the optional font color for the info, including links.
  • border-c the optional border color: default is border-c=gray.
  • ucat the optional user category (without the "Category:" prefix).
  • nocat the optional user category inhibitor:
    • nocat=true do not declare the membership category;
    • nocat=false declare the membership category (default in User namespace).

Other parameters

Other optional parameters for userboxes with text instead of the image:

  • id: the id text;
  • id-fc: the id text font color;
  • id-op: the id text other CSS parameters;
  • id-s: the id text size in points (default=14).

Examples

  • {{User WP|A-League}}
File:Aus Footy Stub-t.pngThis user is a member of WikiProject A-League.
  • {{User WP|A-League|center}}
File:Aus Footy Stub-t.pngThis user is a member of
WikiProject A-League.

  • {{User WP|Americas}}
File:Americas (orthographic projection).svgThis user is a member of WikiProject Americas.
  • {{User WP|Americas|center}}
File:Americas (orthographic projection).svgThis user is a member of
WikiProject Americas.

  • {{User WP|Disambiguation}}
File:Disambig.svgThis user is a member of WikiProject Disambiguation.
  • {{User WP|Disambiguation|center}}
File:Disambig.svgThis user is a member of
WikiProject Disambiguation.

Examples with three parameters
  • {{User WP|Abkhazia|left|list}}
File:Abkhazia-Flagmap.svgThis user is a member of WikiProject Abkhazia.
talk
  • {{User WP|Abkhazia|center|list}}
File:Abkhazia-Flagmap.svgThis user is a member of
WikiProject Abkhazia.
talk

  • {{User WP|Canadian sport|left|list}}
File:CanadaSoccer.svgThis user is a member of WikiProject Canadian sport.
talk
  • {{User WP|Canadian sport|center|list}}
File:CanadaSoccer.svgThis user is a member of
WikiProject Canadian sport.
talk

  • {{User WP|European Union|left|list}}
File:European stars.svgThis user is a member of WikiProject European Union.
talk
  • {{User WP|European Union|center|list}}
File:European stars.svgThis user is a member of
WikiProject European Union.
talk

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for User WP

This template creates a userbox that identifies you as a member of a Wikipedia project.
ParameterDescriptionTypeStatus
WikiProject base name1
WikiProject base name, without the 'Wikipedia:WikiProject' prefix, nor the 'work group' or 'task force' postfix
Default
Example
Stringrequired
Text alignment2
Text alignment (center or left)
Default
left
Example
center
Stringoptional
Id image base nameimage
Image base name, without the 'File:' prefix
Default
{{#invoke:Portal|image|{{{1|}}}}}
Example
Portal-puzzle.svg
Fileoptional
Id image sizesize
Image size, without the 'px' postfix
Default
39x39
Stringoptional
Id textid
Id text, alternative to the image
Stringoptional
Id image or text background colorid-c
Default
#DEF
Stringoptional
Id text font colorid-fc
Default
black
Stringoptional
Id text other CSS parametersid-opStringoptional
Id text size in pointsid-s
Default
14
Stringoptional
Info background colorinfo-c
Default
#FFFFFD
Stringoptional
Info font colorinfo-fc
Info font color, including links
Stringoptional
Border colorborder-c
Default
gray
Stringoptional
User categoryucat
User category, without the 'Category:' prefix
Default
{{Resolve category redirect|{{#ifexist:Category:WikiProject {{{1}}} participants|WikiProject {{{1}}} participants|{{#ifexist:Category:WikiProject {{{1}}} members|WikiProject {{{1}}} members}}}}}}
Example
WikiProject Italy participants
Page nameoptional
User category inhibitornocat
User category inhibitor to not declare the WikiProject membership (true or false)
Default
false
Example
true
Stringoptional

Redirects

  • Template:User WikiProject
  • Template:User participant
  • Template:Participant
  • Template:Participants
  • Template:Members

See also

  • WP:UBX
  • WP:COLOR
  • HELP:COLOR
  • Template:Userbox
  • Template:Userbox-2

View related userboxes at:

  • Wikipedia:Userboxes/WikiProjects
  • Category:WikiProject user templates
The above documentation is transcluded from Template:User WP/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:User_WP&oldid=35320"
Categories:
  • Pages with broken file links
  • Articles using Template:Background color with invalid colour combination
  • Userboxes with insufficient color contrast
  • Templates using TemplateData
  • WikiProject user templates
Last edited on 1 April 2022, at 23:13

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 1 April 2022, at 23:13.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop