Difference between revisions of "Template:Tbl-init"

From PC-BSD Wiki
Jump to: navigation, search
m
(needed update to current methods - remove reference to defunct templates)
 
(97 intermediate revisions by one user not shown)
Line 1: Line 1:
{|cellspacing="0" cellpadding="0" class="{{{class|}}}" style="border:solid #BABABA; border-width:2px 2px 2px 2px; border-collapse: collapse; {{{1|}}};" width="{{{width|100%}}}" align="{{{align|center}}}"
+
<includeonly>{|class="{{{class|spiffy_table}}}" style="margin-left:{{{margin-left|10px}}}; margin-right:{{{margin-right|10px}}}; margin-top:{{{margin-top|10px}}}; margin-bottom:{{{margin-bottom|10px}}}; {{{other|}}}" width="{{{width|97%}}}" align="{{{align|center}}}"
[[category:Uses Tbl-init]]
+
|+ {{#if: {{{caption|}}}|Table {{{caption}}}|}} <span class="GroupListItem" >{{{{#if: {{{caption|}}}|GroupList|null}}|group=tables|txt={{#if: {{{caption|}}}|Table {{{caption}}}|}}|url={{FULLPAGENAME}}}}</span>[[category:Uses Tbl-init]]</includeonly><noinclude>{{caveat|icon64=This template needs to be improved to include a table "summary" definition, but may also need updating again to match an html5 spec for the same item.}}
<noinclude>
+
 
===Usage===
 
===Usage===
<nowiki>{{tbl-init|width="100%"|align="center"}}</nowiki>
+
{{highlight|text='''<nowiki>{{</nowiki>tbl-init{{pipe}}''align='''center''{{pipe}}'''caption='''''1a. The caption'''''<nowiki>}}</nowiki>'''}}<br/>'''!'''''column title''
{{tbl-init|{{{1|}}}|width="{{{width|100%}}}" align="{{{align|center}}}"}}
+
<br/>'''{{pipe}}-'''
</noinclude>
+
<br/>'''{{pipe}}'''''Content of first row''
<noinclude>[[category:templates]]</noinclude>
+
<br/>'''{{pipe}}-'''
 +
<br/>'''{{pipe}}'''''Content of second row''
 +
<br/>'''{{pipe}}-'''
 +
<br/>'''{{pipe}}'''''and so on and so forth''
 +
<br/>'''{{pipe}}<nowiki>}</nowiki>'''
 +
: Also place a total of exactly one '''<nowiki><</nowiki>noinclude><nowiki>{{GroupListHeading|group=tables}}</nowiki><nowiki></</nowiki>noinclude>''' at the bottom of the page, below any existing <nowiki><</nowiki>noinclude><nowiki>{{refheading}}</nowiki><nowiki></</nowiki>noinclude> and above the category links section.
 +
 
 +
===Result===
 +
{{tbl-init|caption=1a. The caption}}
 +
!column title
 +
|-
 +
|Content of first row
 +
|-
 +
|Content of second row
 +
|-
 +
|and so on and so forth
 +
|}
 +
[[category:templates]]
 +
{{GroupListHeading|group=tables}}
 +
</noinclude><!-- there must be nothing - not even a space after this comment -->

Latest revision as of 01:39, 2 August 2014

Caveat:
This template needs to be improved to include a table "summary" definition, but may also need updating again to match an html5 spec for the same item.

[edit] Usage

{{tbl-init|align=center|caption=1a. The caption}}
!column title
|-
|Content of first row
|-
|Content of second row
|-
|and so on and so forth
|}

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.

[edit] Result

Table 1a. The caption [tables 1]
column title
Content of first row
Content of second row
and so on and so forth

List of Tables


  1. Table 1a. The caption