Difference between revisions of "Template:Tbl-init"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{|class="{{{class|spiffy_table}}}" style="border:solid #BABABA; border-width:2px 2px 2px 2px; border-collapse: collapse; {{{1|}}}; margin-left:{{{margin-left|12px}}}; margin-right:{{{margin-right|12px}}}; margin-top:{{{margin-top|10px}}}; margin-bottom:{{{margin-bottom|10px}}}; {{{other|}}}" width="{{{width|98%}}}" align="{{{align|center}}}"
+
<includeonly>{|class="{{{class|spiffy_table}}}" style="border:solid #BABABA; border-width:2px 2px 2px 2px; border-collapse: collapse; {{{1|}}}; margin-left:{{{margin-left|12px}}}; margin-right:{{{margin-right|12px}}}; margin-top:{{{margin-top|10px}}}; margin-bottom:{{{margin-bottom|10px}}}; {{{other|}}}" width="{{{width|97%}}}" align="{{{align|center}}}"
 
<caption style="text-align: left">{{#if: {{{caption|}}}|'''Table {{{caption}}}'''|}} {{{{#if: {{{caption|}}}|GroupList|null}}|group=tables|txt={{#if: {{{caption|}}}|Table {{{caption}}}|}}|url={{FULLPAGENAME}}}}</caption>[[category:Uses Tbl-init]]</includeonly><noinclude>  
 
<caption style="text-align: left">{{#if: {{{caption|}}}|'''Table {{{caption}}}'''|}} {{{{#if: {{{caption|}}}|GroupList|null}}|group=tables|txt={{#if: {{{caption|}}}|Table {{{caption}}}|}}|url={{FULLPAGENAME}}}}</caption>[[category:Uses Tbl-init]]</includeonly><noinclude>  
 
===Usage===
 
===Usage===

Revision as of 15:38, 27 February 2013

Usage

{{tbl-init|align=center|caption=1a. The caption}}
{{tbl-title|column title}}
|-

{{tbl-cell|row=1|The content}}
|-
{{tbl-cell|row=
2|The content}}
|}

Also place a total of exactly one <noinclude>{{GroupListHeading|group=tables}}</noinclude> at the bottom of the page, below any existing <noinclude>{{refheading}}</noinclude> and above the category links section.

Result

Table 1a. The caption [tables 1]
column title
The content
The content

List of Tables


  1. Table 1a. The caption