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="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}}}"
 
<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}}}"
|+ {{#if: {{{caption|}}}|Table {{{caption}}}|}} <span class="GroupListItem" >{{{{#if: {{{caption|}}}|GroupList|null}}|group=tables|txt={{#if: {{{caption|}}}|Tables {{{caption}}}|}}|url={{FULLPAGENAME}}}}</span>[[category:Uses Tbl-init]]</includeonly><noinclude>  
+
|+ {{#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>  
 
===Usage===
 
===Usage===
 
{{highlight|text='''<nowiki>{{</nowiki>tbl-init{{pipe}}''align='''center''{{pipe}}'''caption='''''1a. The caption'''''<nowiki>}}</nowiki>'''}}<br>'''<nowiki>{{</nowiki>tbl-title{{pipe}}'''''column title'''''<nowiki>}}</nowiki><br>{{pipe}}-'''<br>'''<nowiki>{{</nowiki>tbl-cell{{pipe}}row='''''1''{{pipe}}''The content'''''<nowiki>}}</nowiki>'''<br>'''{{pipe}}-<br><nowiki>{{</nowiki>tbl-cell{{pipe}}row='''''2''{{pipe}}''The content'''''<nowiki>}}</nowiki><br>{{pipe}}<nowiki>}</nowiki>'''
 
{{highlight|text='''<nowiki>{{</nowiki>tbl-init{{pipe}}''align='''center''{{pipe}}'''caption='''''1a. The caption'''''<nowiki>}}</nowiki>'''}}<br>'''<nowiki>{{</nowiki>tbl-title{{pipe}}'''''column title'''''<nowiki>}}</nowiki><br>{{pipe}}-'''<br>'''<nowiki>{{</nowiki>tbl-cell{{pipe}}row='''''1''{{pipe}}''The content'''''<nowiki>}}</nowiki>'''<br>'''{{pipe}}-<br><nowiki>{{</nowiki>tbl-cell{{pipe}}row='''''2''{{pipe}}''The content'''''<nowiki>}}</nowiki><br>{{pipe}}<nowiki>}</nowiki>'''
Line 6: Line 6:
  
 
===Result===
 
===Result===
 +
This works perfectly below, but not within the wiki pages? Very odd indeed. It uses (or should use) all the same mechanisms.
 
{{tbl-init|caption=1a. The caption}}
 
{{tbl-init|caption=1a. The caption}}
 
!column title
 
!column title

Revision as of 13:57, 1 September 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

This works perfectly below, but not within the wiki pages? Very odd indeed. It uses (or should use) all the same mechanisms.

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

List of Tables


  1. Table 1a. The caption