Difference between revisions of "Template:CTableStart"

From blackwiki
Jump to navigation Jump to search
imported>Leolaursen
m (Category:CT table-related templates)
imported>Funandtrvl
(tst)
Line 3: Line 3:
 
   | true
 
   | true
 
   | collapsed
 
   | collapsed
}}" style="background-color:none; clear:both;" width={{{table-width|100%}}} align="{{{table-align|left}}}"
+
}}" style="background-color:none; clear:both;" width={{{table-width|100%}}} align="{{{table-align|}}}"
 
! 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}}}"
Line 22: Line 22:
 
| text-align=left
 
| text-align=left
 
}}</pre>
 
}}</pre>
==Required Parameters==
+
==Parameters==
 +
===Required===
 
* '''heading'''
 
* '''heading'''
 
:* Text for the heading
 
:* Text for the heading
  
==Optional Parameters==
+
===Optional===
 
* '''collapsed'''
 
* '''collapsed'''
 
:* to show or hide the table contents by default
 
:* to show or hide the table contents by default
Line 62: Line 63:
 
{{tl|CTableEnd}}
 
{{tl|CTableEnd}}
  
[[Category:CT table-related templates|CTableStart]]
+
[[Category:CT table-related templates]]
 
</noinclude>
 
</noinclude>

Revision as of 21:38, 9 August 2011

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

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

See also

{{CTableEnd}}