Template:Infobox

From Citizendium
Revision as of 16:01, 24 April 2009 by imported>Chris Day
Jump to navigation Jump to search


Usage Each row in an infobox can be defined with four variables.

  1. label
  2. labelstyle
  3. data
  4. datastyle

Up to 25 different rows can be defined. They can be used in various combinations as seen in the code below. If no label or data style is designated the default style will be used.

This text is above the infobox code.

This is the title
1 A Header
2 A Label 2 Some Data
3 Another Label 3 Some more Data
4 A Header
6 Some data only that expands across both columns
8 A Header
9 A Label 9 Some Data
10 Another Label 10 Some more Data
11 Another Label 11 Some more Data
12 A Header
14 Some data only that expands across both columns

This text is below the infobox code.

Code for infobox

{{Infobox
| title   = This is the title
| 1_label = 1 A Header
| 1_data  = ---
| 2_label = 2 A Label
| 2_data  = 2 Some Data
| 3_label = 3 Another Label
| 3_data  = 3 Some more Data
| 4_label = 4 A Header
| 4_data  = ---
| 5_label = 5 A Label only
| 6_data  = 6 Some data only that expands across both columns
| 8_label = 8 A Header
| 8_labelstyle=background:lightgrey
| 8_data  = ---
| 9_label = 9 A Label
| 9_labelstyle=background:lightblue; font-style:italic
| 9_data  = 9 Some Data
| 10_label = 10 Another Label
| 10_data  = 10 Some more Data
| 10_datastyle=background:lightgreen; font-style:italic
| 11_label = 11 Another Label
| 11_labelstyle=background:lightblue
| 11_data  = 11 Some more Data
| 11_datastyle=background:lightgreen
| 12_label = 12 A Header
| 12_data  = ---
| 13_label = 13 A Label only
| 14_data  = 14 Some data only that expands across both columns
| 14_datastyle=background:lightgreen; font-style:italic; border: 1px solid red
}}