Editing Template:Navbox with columns/doc
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 82: | Line 82: | ||
:;''colheaderstyle'' | :;''colheaderstyle'' | ||
::CSS style/s to apply to all column headers. | ::CSS style/s to apply to all column headers. | ||
+ | |||
+ | :;''colheader2style'' | ||
+ | ::CSS style/s to apply to all second level columns headers. | ||
:;''col<sub>n</sub>headerstyle'' | :;''col<sub>n</sub>headerstyle'' | ||
::CSS style/s to apply to the n<sup>th</sup> column header. | ::CSS style/s to apply to the n<sup>th</sup> column header. | ||
− | :;''col<sub>n</sub> | + | :;''col<sub>n</sub>headerstyle2'' |
+ | ::CSS style/s to apply to the n<sup>th</sup> second level column header. | ||
+ | |||
+ | :;''col<sub>n</sub>footer'' | ||
::CSS style/s to apply to the n<sup>th</sup> column footer cell. | ::CSS style/s to apply to the n<sup>th</sup> column footer cell. | ||
Line 110: | Line 116: | ||
:;''col<sub>n</sub>header'' | :;''col<sub>n</sub>header'' | ||
::A header cell for the n<sup>th</sup> column that appears above the column. See below for examples. | ::A header cell for the n<sup>th</sup> column that appears above the column. See below for examples. | ||
+ | |||
+ | :;''col<sub>n</sub>header2 | ||
+ | ::A second header cell for the n<sup>th</sup> column that appears above the column, but below col<sub>n</sub>header. See below for examples. | ||
:;''col<sub>n</sub>footer | :;''col<sub>n</sub>footer | ||
::A footer cell that appears below the n<sup>th</sup> column. | ::A footer cell that appears below the n<sup>th</sup> column. | ||
+ | ===Customization parameters for the column headers and footer=== | ||
:;''col<sub>n</sub>headercolspan | :;''col<sub>n</sub>headercolspan | ||
::A number specifying how many columns the n<sup>th</sup> column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if <code>col1headercolspan = 3</code>, then leave <code>col2header</code> and <code>col3header</code> blank. | ::A number specifying how many columns the n<sup>th</sup> column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if <code>col1headercolspan = 3</code>, then leave <code>col2header</code> and <code>col3header</code> blank. | ||
+ | |||
+ | :;''col<sub>n</sub>headerrowspan | ||
+ | ::Set to either 1 or 2; defaults to 1. The number of rows that the n<sup>th</sup> column header should span. Only set to two if you intend to set colNheader2 for the remaining columns. | ||
+ | |||
+ | :;''col<sub>n</sub>header2colspan | ||
+ | ::A number specifying how many columns the n<sup>th</sup> second level column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if <code>col1header2colspan = 3</code>, then leave <code>col2header2</code> and <code>col3header3</code> blank. | ||
:;''col<sub>n</sub>footercolspan | :;''col<sub>n</sub>footercolspan | ||
Line 242: | Line 258: | ||
|col2headercolspan = 2 | |col2headercolspan = 2 | ||
|col5headercolspan = 3 | |col5headercolspan = 3 | ||
+ | |||
+ | |col1 = col1 | ||
+ | |col2 = col2 | ||
+ | |col3 = col3 | ||
+ | |col4 = col4 | ||
+ | |col5 = col5 | ||
+ | |col6 = col6 | ||
+ | |col7 = col7 | ||
+ | }} | ||
+ | |||
+ | ===Advanced col<sub>n</sub>header example=== | ||
+ | This example shows how to use the col<sub>n</sub>headerrowspan and col<sub>n</sub>headercolspan features to make the headers look the way you want. This one uses both header levels. The gray background for the columns is added for illustration only. | ||
+ | {{Navbox with columns | ||
+ | |name = Navbox with columns/doc | ||
+ | |state = uncollapsed | ||
+ | |title = Row/colspan tests | ||
+ | |||
+ | |colstyle = text-align:center;background:silver; | ||
+ | |colwidth = 15% | ||
+ | |col1width = 12% | ||
+ | |col2width = 13% | ||
+ | |||
+ | |col1headercolspan = 2 | ||
+ | |col3headerrowspan = 2 | ||
+ | |col4headercolspan = 3 | ||
+ | |col7headerrowspan = 2 | ||
+ | |||
+ | |col1header = col1header | ||
+ | |col1header2 = col1header2 | ||
+ | |col2header2 = col2header2 | ||
+ | |col3header = col3header | ||
+ | |col4header = col4header | ||
+ | |col4header2 = col4header2 | ||
+ | |col5header2 = col5header2 | ||
+ | |col6header2 = col6header2 | ||
+ | |col7header = col7header | ||
|col1 = col1 | |col1 = col1 |