Difference between revisions of "Template:Tbl-init"

From PC-BSD Wiki
Jump to: navigation, search
(needed update to current methods - remove reference to defunct templates)
Line 2: Line 2:
 
|+ {{#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.}}
 
|+ {{#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.}}
 
===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/>'''!'''''column title''
 +
<br/>'''{{pipe}}-'''
 +
<br/>'''{{pipe}}'''''Content of first row''
 +
<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.
 
: 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.
  
Line 9: Line 16:
 
!column title
 
!column title
 
|-
 
|-
|The content
+
|Content of first row
 
|-
 
|-
|The content
+
|Content of second row
 +
|-
 +
|and so on and so forth
 
|}
 
|}
 
[[category:templates]]
 
[[category:templates]]
 
{{GroupListHeading|group=tables}}
 
{{GroupListHeading|group=tables}}
 
</noinclude><!-- there must be nothing - not even a space after this comment -->
 
</noinclude><!-- there must be nothing - not even a space after this comment -->

Revision as of 00: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.

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.

Result

Table  Is there no version? 1a. The caption [Tables 1]
column title
Content of first row
Content of second row
and so on and so forth

 Translator:  Please update the last element on this page, and/or locate the {{groupListHeading|group=tables}} line, replace that with {{GroupRefHeading|{{putCommon|19}}}}


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

Variants
Actions
Navigation
Toolbox