Difference between revisions of "Template:Tbl-cell"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
|style="background:#eeeeee; text-align:{{{align|left}}}; padding-top: 5px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; border:solid #BABFA3; border-width:0px 1px 1px 0px; {{{other|}}}"|{{{1|{{{content|}}}}}}
 +
<!--
 
{{{{#switch: {{{row}}}
 
{{{{#switch: {{{row}}}
 
| 1  
 
| 1  
Line 66: Line 68:
 
| 64 = tbl-cellg
 
| 64 = tbl-cellg
 
| template:tbl-cell error
 
| template:tbl-cell error
}}|align={{{align|}}}|content={{{1|{{{content|}}}}}}|other={{{other|}}}}}[[category:Uses Tbl-cell]]</includeonly><noinclude>
+
}}|align={{{align|}}}|content={{{1|{{{content|}}}}}}|other={{{other|}}}}}[[category:Uses Tbl-cell]] --> </includeonly><noinclude>
 
===Usage===
 
===Usage===
The row assignments are not needed for new tables built with this template. The method remains until the tables used on the wiki are adjusted.
+
The row assignments are not needed for new tables built with this template. It should display fine whether they exist or not, since its handled by css now instead of inline style assignments.
 
'''<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>{{highlight|text='''<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>'''
 
'''<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>{{highlight|text='''<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>'''
 
: 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.
 
: 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.

Revision as of 04:34, 19 April 2013

Usage

The row assignments are not needed for new tables built with this template. It should display fine whether they exist or not, since its handled by css now instead of inline style assignments. {{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