Editing
Template:Userboxtop/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{tsh|ubxt}} {{High-use|50262}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This template can be used to organize userboxes (or other user-page content) into a single column grouping. Please do '''not''' use this in articles: for historic reasons this template uses different rules for floating alongside other templates and this will lead to unpredictable results. If you need to stack objects in an article for some reason, use {{tl|stack}}. This template will add pages in the [[WP:NS0|main namespace]] to [[:Category:Articles incorrectly using userbox templates]]. == Usage == <pre> {{Userboxtop | toptext = | toptextstyle = | align = | left = | backgroundcolor = | bordercolor = | extra-css = | textcolor = }} {{userboxname1}} {{userboxname2}} {{userboxname3}} {{userboxname4}} {{...etc}}} {{Userboxbottom}} </pre> Note that {{tlc|Userboxbottom}} must be separated from the last userbox by a newline. In the absence of a newline, other text on the page may appear inside the confines of the userbox area. == Parameters == All parameters are optional. {| class="wikitable" |- ! Parameter ! Description |- | <code>toptext</code> | (or the first positional parameter) Overrides the default header "[[Wikipedia:Userboxes|Userboxes]]". Can include wiki-markup. |- | <code>toptextstyle</code> | Additional [[Cascading Style Sheets|CSS]] code for the <code>toptext</code>. |- | <code>align</code> | (or the second positional parameter) <code>left</code> or <code>right</code> (default) <!-- <code>center</code> does not work --> |- | <code>left</code> | Left margin in CSS's [[em (typography)|ems]]. Defaults to 1. |- | <code>backgroundcolor</code> | Any [[Web colors|web color]] (name or <code>#XXXXXX</code> hex format). Defaults to <code>#FFFFFF</code>. |- | <code>bordercolor</code> | Any [[Web colors|web color]] (name or <code>#XXXXXX</code> hex format). Defaults to <code>#99B3FF</code>. |- | <code>extra-css</code> | Additional [[Cascading Style Sheets|CSS]] code for the box itself. |- | <code>textcolor</code> | Any [[Web colors|web color]] (name or <code>#XXXXXX</code> hex format). Defaults to <code>#000000</code>. |} You may also insert breaks by using {{tl|userboxbreak}}. See that template for details. == Hiding userboxes == You can hide userboxes which use this (as well as a few other) forms of template-based userbox organization. Simply go to [[Special:Mypage/skin.css]], which redirects to your current [[WP:SKIN|skin]]'s CSS file, and add the following: <syntaxhighlight lang="css"> table.userboxes { display: none; } </syntaxhighlight> == Redirects == * {{tl|BoxTop}} * {{tl|Boxboxtop}} * {{tl|Boxtop}} * {{tl|User box top}} * {{tl|Userbox top}} == See also == * {{tl|Userboxbreak}} * {{tl|Userboxbottom}} * {{tl|Userboxside}} * {{tl|Userboxgroup}} <includeonly>{{Sandbox other|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:User namespace templates]] [[Category:Userbox arrangement templates]] [[Category:Templates with partial table wikitext]] }}</includeonly> <templatedata> { "params": { "left": { "label": "Left margin size", "description": "Left margin size (in CSS ems). Defaults to 1", "example": "1", "type": "number", "default": "1" }, "bordercolor": { "label": "Border colour", "description": "Colour for the userbox border. Any web color (name or #XXXXXX hex format). Defaults to #99B3FF.", "example": "#99B3FF", "type": "line", "suggestedvalues": [ "#99B3FF", "black", "grey", "#4A412A" ], "default": "#99B3FF" }, "backgroundcolor": { "label": "Background colour", "description": "Background colour for this userbox. Any web color (name or #XXXXXX hex format). Defaults to #FFFFFF.", "example": "#FFFFFF", "type": "line", "suggestedvalues": [ "#FFFFFF", "white", "lightgrey" ], "default": "#FFFFFF" }, "textcolor": { "label": "Text colour", "description": "Default colour for text within this userbox. Any web color (name or #XXXXXX hex format). Defaults to #000000.", "example": "#000000", "type": "line", "suggestedvalues": [ "black", "#000000", "crimson", "darkblue", "green" ], "default": "#000000" }, "align": { "aliases": [ "2" ], "label": "Alignment", "description": "Whether you want your userbox to be left-aligned or right-aligned. Value must be 'left' or 'right'.", "example": "right", "type": "line", "suggestedvalues": [ "left", "right" ], "default": "right", "suggested": true }, "extra-css": { "label": "Extra CSS", "description": "Additional CSS code for the box itself.", "type": "string" }, "toptextstyle": { "label": "Header style (toptextstyle)", "description": "Additional CSS code for the header (toptext).", "type": "string" }, "toptext": { "aliases": [ "1" ], "label": "Header (toptext)", "description": "Overrides the default header \"Userboxes\". Can include wiki-markup", "example": "About me", "type": "line", "suggestedvalues": [ "About me", "Information", "Userboxes" ], "default": "Userboxes", "suggested": true } }, "description": "This template can be used to organize userboxes (or other user-page content) into a single column grouping. Please do *not* use this in articles. Please see https://en.wikipedia.org/wiki/Template:Userboxtop/doc for full documentation.", "paramOrder": [ "toptext", "align", "toptextstyle", "textcolor", "left", "bordercolor", "backgroundcolor", "extra-css" ], "format": "block" } </templatedata>
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:High-use
(
edit
)
Template:Mbox
(
edit
)
Template:No redirect
(
edit
)
Template:Plainlist/styles.css
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Template shortcut
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Template:Tsh
(
edit
)
Module:Arguments
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Redirect
(
edit
)
Module:Shortcut
(
edit
)
Module:Shortcut/config
(
edit
)
Module:Shortcut/styles.css
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/U
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information