Template:Userboxtop/doc: Difference between revisions

no edit summary
prefix>DixonDBot
m (Migrating 17 interwiki links, now provided by Wikidata on d:Q5622814)
 
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1:
{{Documentation subpage}}
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
-->
 
This template can be used to collect images or userboxes into a single column grouping easily.
 
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]] if used there.
 
=== Usage ===
Line 41 ⟶ 34:
|-
| <code>toptext</code>
| (or the first positional parameter) Overrides the standard [[Wikipedia:Userboxes|Userbox]] text and link. Can include wiki-markup.
|-
| <code>align</code>
Line 50 ⟶ 43:
|-
| <code>backgroundcolor</code>
| Any [[Web colors|web color]] (name or <ttcode>#XXXXXX</ttcode> hex format). Defaults to <ttcode>#FFFFFF</ttcode>.
|-
| <code>bordercolor</code>
| Any [[Web colors|web color]] (name or <ttcode>#XXXXXX</ttcode> hex format). Defaults to <ttcode>#99B3FF</ttcode>.
|-
| <code>extra-css</code>
| Allows you to provide additional [[Cascading Style Sheets|CSS]] style information.
|-
| <code>textcolor</code>
| Any [[Web colors|web color]] (name or <ttcode>#XXXXXX</ttcode> hex format). Defaults to <ttcode>#000000</ttcode>.
|}
 
Line 66 ⟶ 59:
=== 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–
 
<code><nowiki>table.userboxes { display: none; }</nowiki></code>
Line 74 ⟶ 67:
* {{tl|Userboxbreak}}
* {{tl|Userboxbottom}}
* {{tl|Userboxside}}
 
<includeonly>
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
[[Category:User namespace templates]]
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
</includeonly>
 
<noinclude>
<includeonly>
[[Category:ATT Template Documentation]]
[[es:Usuario:Userbox/Userboxtop]]
</includeonlynoinclude>