Template:Tcb

From WikiEducator
Jump to: navigation, search

{{{text}}}

Themed Captioned Box (tcb)

Display a box with a caption.

Usage


 {{tcb
 |theme= <theme name>
 |width= <a percentage of screen space available>
 |caption=<caption text>
 |text=
<text in the box goes here>
 }}

Parameters:

  • theme: name from Template:Box Theme Attribute
  • width: a percentage of screen space available for the box
  • caption: text line for the box's caption
  • text: the text to appear in the box.

Examples


  {{tcb
  |theme= gaia
  |width= 50
  |caption=My Caption
  |text=
 Text in the box. 
  }}

displays as:


My Caption

Text in the box.

and with no caption:


  {{tcb
  |theme= blues
  |width= 50
  |text=
 Text in the box. 
  }}

displays as:


Text in the box.


Illustrating the Themes

message/ text for the box goes here

goldy:

Gold Theme Illustration

message/ text for the box goes here

khaki:

Khaki Theme Illustration

message/ text for the box goes here

sandyblueslate:

Theme Illustration

message/ text for the box goes here

swiss-swap:

Theme Illustration

message/ text for the box goes here

swiss:

Theme Illustration

message/ text for the box goes here

gaia:

Theme Illustration

message/ text for the box goes here

smart:

Theme Illustration

message/ text for the box goes here

blues:

Theme Illustration

message/ text for the box goes here

blacktie:

Theme Illustration

message/ text for the box goes here