Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day No edit summary |
imported>Chris Day No edit summary |
||
Line 57: | Line 57: | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude> | ||
Each row in an infobox can be made with four variables. | |||
# label | |||
# labelstyle | |||
# data | |||
# datastyle | |||
They can be used in various combinations as seen below. If no style is designated the default style will be used. | |||
This text is above the infobox code. | This text is above the infobox code. | ||
{{Infobox | {{Infobox |
Revision as of 15:58, 24 April 2009
Each row in an infobox can be made with four variables.
- label
- labelstyle
- data
- datastyle
They can be used in various combinations as seen below. If no 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 }}