Template:Prettytable: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
document usage
 
Elf (talk | contribs)
document usage more
Line 1: Line 1:
<includeonly>border="2" cellspacing="0" cellpadding="4" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:95%; empty-cells:show;"</includeonly><noinclude>
<noinclude>


'''Usage:'''
'''Usage:'''
Line 34: Line 34:
|next row
|next row
|next cell
|next cell
|}</noinclude>
|}
 
This template consists of:
</noinclude>border="2" cellspacing="0" cellpadding="4" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:95%; empty-cells:show;"

Revision as of 21:25, 8 April 2008


Usage:

Use inside a table to format it in a nicer manner; for example:

{| {{prettytable}}
|-
|table content
|next cell
|-
|next row
|next cell
|}

which generates this:

table content next cell
next row next cell

compared to the default:

table content next cell
next row next cell

This template consists of: border="2" cellspacing="0" cellpadding="4" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:95%; empty-cells:show;"