Difference between revisions of "Template:Articletable"
From Spydiewiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
<noinclude> | |||
This template creates a layout for tables that are used in articles. The width is self-adjusting. | |||
< | '''Usage:''' | ||
<pre> | |||
{|{{Articletable}} | |||
!Caption 1 | |||
!Caption 2 | |||
!Caption 3 | |||
|- | |||
|Content 1 | |||
|Content 2 | |||
|Content 3 | |||
|} | |||
</pre> | |||
'''Result:''' | |||
{|border="2" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;{{{style|}}}" | |||
!Caption 1 | |||
!Caption 2 | |||
!Caption 3 | |||
|- | |||
|Content 1 | |||
|Content 2 | |||
|Content 3 | |||
|} | |||
'''Source code for the template:''' | |||
[[Category:Templates]] | |||
</noinclude> | |||
border="2" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;{{{style|}}}" |
Revision as of 01:14, 2 March 2008
This template creates a layout for tables that are used in articles. The width is self-adjusting.
Usage:
{|{{Articletable}} !Caption 1 !Caption 2 !Caption 3 |- |Content 1 |Content 2 |Content 3 |}
Result:
Caption 1 | Caption 2 | Caption 3 |
---|---|---|
Content 1 | Content 2 | Content 3 |
Source code for the template:
border="2" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;"