Difference between revisions of "Template:Tbl-init"

From PC-BSD Wiki
Jump to: navigation, search
(try fix)
 
(173 intermediate revisions by one user not shown)
Line 1: Line 1:
{|cellspacing="0" cellpadding="0" class="{{{class|}}}" style="border:solid #BABABA; border-width:2px 2px 2px 2px; border-collapse: collapse; {{{1|}}}; margin-bottom: 15px;" width="{{{width|100%}}}" align="{{{align|center}}}"
+
<includeonly><onlyinclude>{|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}}}"
[[category:Uses Tbl-init]]
+
|+ {{putCommon|28}}{{{caption|{{:template:tbl-init/msg}}}}} <span class="GroupListItem">{{ {{#if: {{{caption|}}}|GroupRef|zero}}|1={{putCommon|19}}|txt={{putCommon|28}}{{{caption|Needs descriptor}}}|url={{FULLPAGENAME}} }}</span></onlyinclude></includeonly><noinclude>
<noinclude>
+
 
===Usage===
 
===Usage===
<nowiki>{{tbl-init|width="100%"|align="center"}}</nowiki>
+
{{highlight|text='''<nowiki>{{</nowiki>tbl-init{{!}}''align='''center''{{!}}'''caption='''''a. is the caption'''''<nowiki>}}</nowiki>'''}}{{br}}'''!'''''column title''
{{tbl-init|{{{1|}}}|width="{{{width|100%}}}" align="{{{align|center}}}"}}
+
{{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 '''{{vtag|noinclude}}{{ttag|GroupRefHeading{{!}}{{ttag|putCommon{{!}}19}}}}{{vtag|/noinclude}}''' at the bottom of the page, below any existing {{vtag|noinclude}}{{ttag|refheading}}{{vtag|/noinclude}} and above the category links section.
 +
 
 +
===Result===
 +
No feedback is given when everything seems to be done correctly:
 +
 
 +
{{tbl-init|caption=a. is the caption}}
 +
!column title
 +
|-
 +
|Content of first row
 +
|-
 +
|Content of second row
 +
|-
 +
|and so on and so forth
 +
|}
 +
 
 +
 
 +
However, captions are now a mandatory element which will result in a reminder:
 +
 
 +
{{tbl-init}}
 +
!column title
 +
|-
 +
|Content of first row
 +
|-
 +
|Content of second row
 +
|-
 +
|and so on and so forth
 +
|}
 +
 
 +
And a listing is separate from the tables, intended to be placed at the bottom of the page:
 +
 
 +
{{groupRefHeading|{{putCommon|19}}}}
 +
[[category:templates]]
 +
[[category:Uses Tbl-init]]
 
</noinclude>
 
</noinclude>
<noinclude>[[category:templates]]</noinclude>
 

Latest revision as of 01:23, 17 March 2015

[edit] Usage

{{tbl-init|align=center|caption=a. is 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>{{GroupRefHeading|{{putCommon|19}}}}</noinclude> at the bottom of the page, below any existing <noinclude>{{refheading}}</noinclude> and above the category links section.

[edit] Result

No feedback is given when everything seems to be done correctly:

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


However, captions are now a mandatory element which will result in a reminder:

Table  Is there no version? needs a caption: {{tbl-init|caption=a. is the caption}}
column title
Content of first row
Content of second row
and so on and so forth

And a listing is separate from the tables, intended to be placed at the bottom of the page:

Tables

  1. Table  Is there no version? a. is the caption
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox