Difference between revisions of "Template:CTableStart"
Jump to navigation
Jump to search
Template documentation
imported>Pigsonthewing m (cat) |
|||
| Line 7: | Line 7: | ||
! style="background:{{{bgcolor|lightgrey}}}; color:{{{fgcolor|black}}}" width=100% align="{{{align|center}}}" | <font size={{{fontsize|2}}}>{{{heading|ERROR: No heading specified}}}</font> | ! style="background:{{{bgcolor|lightgrey}}}; color:{{{fgcolor|black}}}" width=100% align="{{{align|center}}}" | <font size={{{fontsize|2}}}>{{{heading|ERROR: No heading specified}}}</font> | ||
|- style="background:{{{text-bgcolor|none}}}; color:{{{text-fgcolor|black}}}" align="{{{text-align|left}}}" | |- style="background:{{{text-bgcolor|none}}}; color:{{{text-fgcolor|black}}}" align="{{{text-align|left}}}" | ||
| − | | </includeonly><noinclude>{{esoteric}} | + | | </includeonly><noinclude> |
| + | {{documentation|content= | ||
| + | {{esoteric}} | ||
==Usage== | ==Usage== | ||
The default values, if the parameter is not specified, are shown below. | The default values, if the parameter is not specified, are shown below. | ||
| Line 63: | Line 65: | ||
==See also== | ==See also== | ||
| − | {{tl|CTableEnd}} | + | *{{tl|CTableEnd}} |
| + | |||
| + | }} | ||
[[Category:Table and column templates]] | [[Category:Table and column templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 06:05, 2 November 2014
Template:Template for discussion/dated
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
The default values, if the parameter is not specified, are shown below.
{{CTableStart
| heading=
| collapsed=true
| table-align=
| table-width=100%
| bgcolor=lightgrey
| fgcolor=black
| align=center
| fontsize=2
| text-bgcolor=none
| text-fgcolor=black
| text-align=left
}}
Parameters
Required
- heading
- Text for the heading
Optional
- collapsed
- to show or hide the table contents by default
- table-align
- table alignment
- table-width
- width of the table
- bgcolor
- background colour of the heading
- fgcolor
- foreground colour of the heading
- align
- heading text alignment
- fontsize
- font size of heading text
- text-bgcolor
- background colour of the body
- text-fgcolor
- foreground colour of the body
- text-align
- body text alignment
Example
{{CTableStart|heading=heading text|table-width=80%}}
body text
{{CTableEnd}}
Template:Template for discussion/dated
| heading text |
|---|
|
body text |
See also
- {{CTableEnd}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |