Template:Top: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Table formatting)
(documentation)
Line 1: Line 1:
<includeonly>{|border="0" cellpadding="5" cellspacing="0" width=100%
<includeonly>{|border="0" cellpadding="5" cellspacing="0" width=100%
|valign="top"|</includeonly><noinclude>
|valign="top"|</includeonly><noinclude>
{{DisplayBox|bgcolor=g|title=Documentation|text=
This template, together with {{tl|middle}} and {{tl|bottom}}, allows a user to easily create a two-column table.
;Usage
'''<nowiki>{{top}}</nowiki>'''<br><br>
''...text of left column...''<br><br>
'''<nowiki>{{middle}}</nowiki>'''<br><br>
''...text of right column...''<br><br>
'''<nowiki>{{bottom}}</nowiki>'''
It's equivalent to using the wiki code:
<nowiki>{|border="0" cellpadding="5" cellspacing="0" width=100%</nowiki><br>
<nowiki>|valign="top"|</nowiki><br><br>
''...text of left column...''<br><br>
<nowiki>|valign="top" width=50%|</nowiki><br><br>
''...text of right column...''<br><br>
<nowiki>|}</nowiki>
}}


[[Category:Table formatting templates]]
[[Category:Table formatting templates]]
</noinclude>
</noinclude>

Revision as of 17:03, 10 January 2013


Documentation

This template, together with {{middle}} and {{bottom}}, allows a user to easily create a two-column table.

Usage

{{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="top"|

...text of left column...

|valign="top" width=50%|

...text of right column...

|}