Difference between revisions of "Template:Multicol"

From Shadow of the Throne Wiki
Jump to: navigation, search
(Removed undocumented 2nd and 3rd positional parameters.)
(Set the border width to 1 to debug a problem.)
Line 26: Line 26:
 
The multi-column region is always positioned on the left of the page.  To change this, place the above Wikitext in a <tt>[[DIV (HTML tag)|DIV]]</tt> block that has the [[Cascading Style Sheet|CSS]] attribute <tt>text-align</tt> set to either <tt>center</tt> or <tt>right</tt>.
 
The multi-column region is always positioned on the left of the page.  To change this, place the above Wikitext in a <tt>[[DIV (HTML tag)|DIV]]</tt> block that has the [[Cascading Style Sheet|CSS]] attribute <tt>text-align</tt> set to either <tt>center</tt> or <tt>right</tt>.
 
</noinclude>
 
</noinclude>
{| width="{{{1|100%}}}" border="0" cellspacing="0" cellpadding="0" style="background-color: transparent;"
+
{| width="{{{1|100%}}}" border="1" cellspacing="0" cellpadding="0" style="background-color: transparent;"
 
| valign="top" width="1*" |
 
| valign="top" width="1*" |
 
<div style="margin-right: 15px">
 
<div style="margin-right: 15px">

Revision as of 03:44, 11 June 2006

Use this template to start a multi-column section of a page. For example:

 {{MultiCol}}
 This text appears in the first column.
 {{ColBreak}}
 This text appears in the second column.
 {{ColBreak}}
 This text appears in the third column.
 {{EndMultiCol}}

This template has one optional parameter: The width of the table used to implement the columns. This can be an absolute value (e.g., 12cm) or a percentage of the page width (e.g., 50%). This parameter defaults to 100%. For example, to create a multi-column section of a page that is only 50% the width of the page, do this:

 {{MultiCol|50%}}
 This text appears in the first column.
 {{ColBreak}}
 This text appears in the second column.
 {{ColBreak}}
 This text appears in the third column.
 {{EndMultiCol}}

The multi-column region is always positioned on the left of the page. To change this, place the above Wikitext in a DIV block that has the CSS attribute text-align set to either center or right.