Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Userboxtop/doc: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>D. Cello
Created page with '<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT --> ==Purpose== To collect images or userb…'
 
imported>D. Cello
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 38: Line 38:
|-
|-
| <code>backgroundcolor</code>
| <code>backgroundcolor</code>
| Any [[Web colors|web color]] (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#FFFFFF</tt>.
| Any Web colors|web color (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#FFFFFF</tt>.
|-
|-
| <code>bordercolor</code>
| <code>bordercolor</code>
| Any [[Web colors|web color]] (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#99B3FF</tt>.
| Any Web colors|web color (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#99B3FF</tt>.
|-
|-
| <code>extra-css</code>
| <code>extra-css</code>
| Allows you to provide additional [[Cascading Style Sheets|CSS]] style information.
| Allows you to provide additional CSS style information.
|-
|-
| <code>textcolor</code>
| <code>textcolor</code>
| Any [[Web colors|web color]] (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#000000</tt>.
| Any Web colors|web color (name or <tt>#XXXXXX</tt> hex format). Defaults to <tt>#000000</tt>.
|-
|-
| <code>toptext</code>
| <code>toptext</code>
| Overrides the standard [[Wikipedia:Userboxes|Userbox]] text and link. Can include wiki-markup.
| Overrides the standard Userbox text and link. Can include wiki-markup.
|}
|}



Latest revision as of 21:17, 10 February 2010

Purpose[edit source]

To collect images or userboxes into a single column grouping easily. This template is not just for userboxes; it is also an efficient way of creating a column of images to run along the side of an article.

Usage[edit source]

{{userboxtop
| align = 
| left =
| backgroundcolor = 
| bordercolor = 
| extra-css =
| textcolor = 
| toptext = 
}}

[userboxes]

{{userboxbottom}}

All of the parameters are optional.

Customizing[edit source]

Detailed explanations of the parameters are below.

Parameter Valid values
align left or right (default)
left Any left margin value. Defaults to 1.
backgroundcolor web color (name or #XXXXXX hex format). Defaults to #FFFFFF.
bordercolor web color (name or #XXXXXX hex format). Defaults to #99B3FF.
extra-css Allows you to provide additional CSS style information.
textcolor web color (name or #XXXXXX hex format). Defaults to #000000.
toptext Overrides the standard Userbox text and link. Can include wiki-markup.

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

Hiding userboxes[edit source]

You can hide userboxes which use 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–

table.userboxes { display: none; }

See also[edit source]