Difference between revisions of "Template:RBTop"

From BattleMaster Wiki
Jump to navigation Jump to search
m
 
m (updated documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| cellpadding="{{{Padding|5px}}}" style="border-collapse:collapse; width:{{{Width|315px}}}; float: {{{Align|Right}}}; border: {{{BorderColor|#000000}}} {{{Border|1px}}} solid; color: {{{TextColor|#000000}}}; background:{{{BackColor|#ffffff}}}; {{{ExtraCSS|}}}"</includeonly>
+
<includeonly>{| style="margin: {{{Margin|5px}}}; border-collapse:collapse; width:{{{Width|315px}}}; float: {{{Align|Right}}}; border: {{{Border|1px}}} {{{BorderStyle|solid}}} {{{BorderColor|#000000}}}; color: {{{TextColor|#000000}}}; background:{{{BackColor|#ffffff}}}; {{{ExtraCSS|}}}"</includeonly>
 
<noinclude>
 
<noinclude>
 
===Intro===
 
===Intro===
Line 9: Line 9:
 
All possible parameters, vertical format:
 
All possible parameters, vertical format:
  
* Border (Default:1px) = The size of the table borders.
+
* Margin (Default:5px) = The distance between the table and the content around it. Larger numbers leave more whitespace around the RealmBox.
* Padding (Default:5px) = The left and right margins between the cell contents and the cell border.
 
 
* Width (Default:315px) = The width of the realmbox. It will increase automatically if you place any large images in any of the blocks.
 
* Width (Default:315px) = The width of the realmbox. It will increase automatically if you place any large images in any of the blocks.
* Align (Default:Right) = The alignment of the realmbox on the page. If it is right or left, text will flow around it.  
+
* Align (Default:Right) = The alignment of the realmbox on the page. If it is right or left, text will flow around it. Use "none" to prevent the table from "floating". ''(i.e. text will not wrap around it.)''
 +
* BorderStyle = The style of table borders. Use "hidden" to create a RealmBox without any border lines at all.
 
* BorderColor (Default:#000000) = The color of the table lines.
 
* BorderColor (Default:#000000) = The color of the table lines.
 +
* Border (Default:1px) = The size (thickness) of the table lines.
 
* BackColor (Default:#FFFFFF) = The background color of the entire realmbox.
 
* BackColor (Default:#FFFFFF) = The background color of the entire realmbox.
 
* TextColor (Default:#000000) = The color of the text to use in the cells.
 
* TextColor (Default:#000000) = The color of the text to use in the cells.
Line 32: Line 33:
 
<pre>
 
<pre>
 
{{{RBTop
 
{{{RBTop
|Border =
+
|Margin =  
|Padding =  
 
 
|Width =  
 
|Width =  
 
|Align =  
 
|Align =  
 +
|Border =
 +
|BorderStyle =
 
|BorderColor =  
 
|BorderColor =  
 
|BackColor =  
 
|BackColor =  

Latest revision as of 19:18, 2 December 2008


Intro

This template is part of the RealmBox Project.

This is the opening element of the realmbox. It must be the first block used.

Parameters

All possible parameters, vertical format:

  • Margin (Default:5px) = The distance between the table and the content around it. Larger numbers leave more whitespace around the RealmBox.
  • Width (Default:315px) = The width of the realmbox. It will increase automatically if you place any large images in any of the blocks.
  • Align (Default:Right) = The alignment of the realmbox on the page. If it is right or left, text will flow around it. Use "none" to prevent the table from "floating". (i.e. text will not wrap around it.)
  • BorderStyle = The style of table borders. Use "hidden" to create a RealmBox without any border lines at all.
  • BorderColor (Default:#000000) = The color of the table lines.
  • Border (Default:1px) = The size (thickness) of the table lines.
  • BackColor (Default:#FFFFFF) = The background color of the entire realmbox.
  • TextColor (Default:#000000) = The color of the text to use in the cells.
  • ExtraCSS (Default:blank) = Any extra CSS elements desired to modify the table layout. Make sure to include the closing semicolon.

Usage

You can copy/paste the following text to use this as part of your realmbox.

Typical Usage

For normal, basic usage of the template, most users will only use the following parameters:

{{RBTop}}

Complete List

Power users who want complete control, or have an elaborate design, may wish to copy this complete parameter list. Make sure to delete the parameters you are not using.

{{{RBTop
|Margin = 
|Width = 
|Align = 
|Border = 
|BorderStyle = 
|BorderColor = 
|BackColor = 
|TextColor = 
|ExtraCSS = 
}}}