Difference between revisions of "Template:Tbl-init"

From PC-BSD Wiki
Jump to: navigation, search
Line 2: Line 2:
 
<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===
<nowiki>{{tbl-init|width=98%|align=center|caption=1a. The caption}}</nowiki><br><br>
+
{{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>'''<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>'''
The example below includes the use of template:tbl-title. (needs update to explain GroupList effect)
+
{{tbl-init|{{{1|}}}|width="{{{width|98%}}}"|align="{{{align|center}}}"|caption=1a. The caption}}
+
{{tbl-title|Some example}}
+
{{tbl-title|column titles}}
+
{{tbl-title|and a bit of space consuming text}}
+
 
</noinclude><noinclude>[[category:templates]]</noinclude>
 
</noinclude><noinclude>[[category:templates]]</noinclude>

Revision as of 17:37, 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}}
|}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox