Difference between revisions of "Template:CTableStart"

From blackwiki
Jump to navigation Jump to search
imported>AA
(formatting)
imported>AA
(→‎Example: Update)
Line 49: Line 49:
  
 
==Example==
 
==Example==
 +
<pre>
 +
{{CTableStart|heading=heading text|table-width=80%}}
 +
body text
 +
{{CTableEnd}}
 +
</pre>
 
{{CTableStart|heading=heading text|table-width=80%}}
 
{{CTableStart|heading=heading text|table-width=80%}}
 
body text
 
body text

Revision as of 11:45, 19 June 2007

Usage

The default values, if the parameter is not specified, are shown below.

{{CTableStart
| heading=
| collapsed=true
| table-align=left
| table-width=100%
| bgcolor=lightgrey
| fgcolor=black
| align=center
| fontsize=2
| text-bgcolor=none
| text-fgcolor=black
| text-align=left
}}

Required Parameters

  • heading
  • Text for the heading

Optional Parameters

  • 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}}

See also

{{CTableEnd}}