Template:Prettytable: Difference between revisions

Template page
w:c:strategywiki>DrBob
m (Cleanup)
w:c:strategywiki>DrBob
m (Cleanup)
Line 1: Line 1:
border="2" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;{{qif|test={{{notwide|}}}|then=|else=width:100%}}"<noinclude>
border="1" cellspacing="4" cellpadding="1" class="wikitable" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;{{qif|test={{{notwide|}}}|then=|else=width:100%}}"<noinclude>


Template to put at the top of table declarations to standardise and prettify their appearance.
Template to put at the top of table declarations to standardise and prettify their appearance.
Line 30: Line 30:
=== Not wide ===
=== Not wide ===


<pre>{| {{prettytable|notwide}}
<pre>{| {{prettytable|notwide=1}}
| Boo!
| Boo!
| Foo
| Foo
Line 40: Line 40:
|}</pre>
|}</pre>


{| {{prettytable|notwide}}
{| {{prettytable|notwide=1}}
| Boo!
| Boo!
| Foo
| Foo

Revision as of 11:45, 10 February 2007

border="1" cellspacing="4" cellpadding="1" class="wikitable" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;Template:Qif"

Template to put at the top of table declarations to standardise and prettify their appearance. By default it will make the table occupy all the page's width. If you want to turn it off, call the template as follows: {{prettytable|notwide}}.

Example

Wide

{| {{prettytable}}
| Boo!
| Foo
| Bar
|-
| Test
| 2
| 3
|}
Boo! Foo Bar
Test 2 3

Not wide

{| {{prettytable|notwide=1}}
| Boo!
| Foo
| Bar
|-
| Test
| 2
| 3
|}
Boo! Foo Bar
Test 2 3