Template:Top2: Difference between revisions
(Created page with "<includeonly>{|border="{{{border|0}}}" cellpadding="5" cellspacing="0" width={{{width|100%}}} |valign="baseline"|</includeonly><noinclude> {{Top/doc}} Category:Experimental...") |
No edit summary |
(7 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 14:49, 15 May 2021
Templates {{top}}, {{middle}} and {{bottom}} allow a user to easily create a multi-column table. The shorter aliases {{top}}, {{mdl}} and {{btm}} may also be used.
Usage
for 2 columns
{{top}}
<text of left column>
{{middle}}
<text of right column>
{{bottom}}
It's equivalent to using the wiki code:
{|border="0" cellpadding="5" cellspacing="0" width=100%
|valign="baseline"|
<text of left column>
|valign="baseline" width=50%|
<text of right column>
|}
for 3 or more columns
{{top}} |
{{top}} |
and so on... |
Optional parameters
Use the optional parameters |border=
and |width=
inside {{top}} to define different values from their default ones ( |border=0px
and |width=100%
, respectively)
{{top|border= |width= }}