Template:Top

From ChoralWiki
Revision as of 16:08, 25 April 2013 by Carlos (talk | contribs) (expanding doc)
Jump to navigation Jump to search


Documentation

Templates {{top}}, {{middle}} and {{bottom}} allow a user to easily create a multi-column table.

Usage

for 2 columns

{{top}}
<text of left column>
{{middle}} or {{mdl}}
<text of right column>
{{bottom}} or {{btm}}


It's equivalent to using the wiki code:

{|border="0" cellpadding="5" cellspacing="0" width=100%
|valign="top"|
<text of left column>
|valign="top" width=50%|
<text of right column>
|}


for 3 or more columns

{{top}}
<text of left column>
{{middle|3}}
<text of center column>
{{middle|3}}
<text of right column>
{{bottom}}


Optional parameters

Use the optional parameters |border= and |width= inside {{top}} to define different values from their default ones ( 0px and 100%, respectively)

{{top|border= |width= }}