Difference between revisions of "Template:Tbl-title"

From PC-BSD Wiki
Jump to: navigation, search
m
Line 1: Line 1:
<onlyinclude>|style="background:#FFFfd9; font-weight: bold; text-align: center; padding-top: 5px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; border:solid #BABFA3; border-width:0px 1px 2px 0px;" width="{{{width|auto}}}"|{{{content|{{{1|}}}}}}</onlyinclude>
+
<includeonly>|style="background:#FFFfd9; font-weight: bold; text-align: center; padding-top: 5px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; border:solid #BABFA3; border-width:0px 1px 2px 0px;" width="{{{width|auto}}}"|{{{content|{{{1|}}}}}}</includeonly>
 
<noinclude>
 
<noinclude>
{|
+
===Usage===
{{tbl-title||width=100%|content=This is the title}}
+
'''<nowiki>{{</nowiki>tbl-init{{pipe}}''align='''center''{{pipe}}'''caption='''''1a. The caption'''''<nowiki>}}</nowiki>'''<br>{{highlight|text='''<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>'''
 +
===Result===
 +
{{tbl-init|align=center|caption=1a. The caption}}
 +
{{tbl-title|column title}}
 +
|-
 +
{{tbl-cell|row=1|The content}}
 +
|-
 +
{{tbl-cell|row=2|The content}}
 
|}
 
|}
 
</noinclude>
 
</noinclude>
 
<noinclude>[[category:templates]]</noinclude>
 
<noinclude>[[category:templates]]</noinclude>
<!--
 
|style="background:#{{{bg|ee}}}{{{bg|ee}}}{{{bg|ee}}}; text-align:{{{align|center}}}; padding-top: 5px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; border:solid #BABFA3; border-width:0px 1px 1px 0px; {{{other|}}}"|{{{content|}}}{{{1|}}}
 
-->
 

Revision as of 19:00, 23 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}}
|}

Result

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

Cite error: <ref> tags exist for a group named "tables", but no corresponding <references group="tables"/> tag was found