Last modified on 9 March 2015, at 22:12


Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Boxboxtop/doc.

Collect userboxes into a single column grouping easily. Requires {{Boxboxbottom}} as a partner template.


{{Boxboxtop |bordercolor= |backgroundcolor= |align= |toptext= |extra-css= }}

Needs a {{Boxboxbottom}} at the bottom. Otherwise you'll run in danger of weird issues due to unbalanced HTML tags.

Template parameters

 Parameter text is empty
<templatedata>JSON</templatedata> ./. {{TemplateBox}}

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 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 or the template as described in various Wikipediae.

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

To collect userboxes into a single column grouping easily. Requires {{Boxboxbottom}} as a partner template.

Template parameters
Parameter Description Type Default Auto value Status
align box alignment line right empty optional
backgroundcolor box background colour line FFFFFF empty optional
bordercolor box border colour line 99B3FF empty optional
extra-css extra CSS formatting line empty empty optional
toptext1header header for box line [[Commons:Userboxes|Userboxes]] empty optional

Additional information

The template is intended to be used in the following namespaces: the User namespace

The template is intended to be used by the following user groups: all users


{{Boxboxtop|extra-css=box-shadow: 1px 2px 2px #000;}}

renders as:


To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

The one and only word is being translated on Template:Boxboxtop/i18n.


| bordercolor = 
| backgroundcolor = 
| align = 
| toptext = 
| extra-css =

"your userboxes"

| bottomtext = 

All of the parameters are optional.

You may insert breaks by using {{userboxbreak}}. See that template for details.

Hiding userboxes

You can hide userboxes which utilize this (as well as a few other) forms of template-based userbox organization. Simply edit your userspace CSS override (for example, monobook.css for the Monobook skin) and add the following–

#userboxes { display: none; }

See also