Template:Traffic volume top/doc

Traffic volume top (along with Traffic volume row and Traffic volume bottom) is used for creating tables of traffic volume data. Traffic volume top opens and defines the first row of the table.

Usage
Usage is as follows:

Parameters

 * 1, 2, 3, 4: data column headings, such as year or type of measurement. Only required if more than one data column is used.
 * name: the road name, if it is different to the article title. Otherwise, not required.
 * align: set to  to have the table left-aligned. The default if this parameter is nor included is right-aligned.
 * notes: set to  to include a notes column at the right hand end of the table

The following parameters provide further customisation:
 * location: Defines a custom label to use instead of "Location"
 * volume: Defines a custom label to use instead of "Volume"
 * caption: Defines a custom caption to use above the table
 * captionstyle: The CSS style of the &lt;span&gt; that contains the caption. The default is font-size: 85%.
 * divclass: The CSS class of the &lt;div&gt; that contains the table. The default is thumb tright, or thumb tleft if left is set.
 * tableclass: The CSS class of the table. The default is wikitable infobox.
 * tablestyle: The CSS style of the table. The default is margin: 0px.

Left aligned table, two columns of data
Text will wrap around the table, like this:

Right aligned table, one column, no column header, custom note at bottom
Text will also wrap around this table:

Highly customised table
Text will not wrap around this table because  was included at the end

TemplateData
{ "description": "Creates the table headings for a traffic volume table. Use with the 'Traffic volume row' template (for each row of data) and 'Traffic volume bottom' template (to close the table)", "params": { "divclass": { "label": " CSS class", "description": "Normally not used (the CSS class of the element that contains the table)", "type": "string", "required": false },   "align": { "label": "Table alignment", "description": "The alignment as the table, valid values are 'left' or 'right'. If not included, will default to 'right'", "type": "string", "required": false },   "tableclass": { "label": "Table CSS class", "description": "Normally not used (the CSS class of the table)", "type": "string", "required": false },   "tablestyle": { "label": "Table CSS style", "description": "Normally not used (the CSS style of the table)", "type": "string", "required": false },   "captionstyle": { "label": "Caption CSS style", "description": "Normally not used (the CSS style of the table's caption)", "type": "string", "required": false },   "caption": { "label": "Caption", "description": "Normally not used (a custom caption for the table, instead of the default)", "type": "string", "required": false },   "name": { "label": "Road name", "description": "The road name. Only needs to be entered if it is different to the article title.", "type": "string", "required": false },   "1": {      "label": "1st column heading", "description": "Description of numbers in first data column, such as year or measurement type. Optional if there is only one data column", "type": "string", "required": false },   "location": { "label": "Location column heading", "description": "Normally not used (a custom heading for the location column, instead of the default 'Location')", "type": "string", "required": false },   "4": {      "label": "4th column heading", "description": "Description of numbers in fourth data column, such as year or measurement type. Only required if there are four data columns.", "type": "string", "required": false },   "3": {      "label": "3rd column heading", "description": "Description of numbers in third data column, such as year or measurement type. Only required if there are three or more data columns.", "type": "string", "required": false },   "2": {      "label": "2nd column heading", "description": "Description of numbers in second data column, such as year or measurement type. Only required if there are two or more data columns.", "type": "string", "required": false },   "volume": { "label": "Volume label", "description": "Normally not used (a custom label that spans the data columns, instead of the default 'Volume')", "type": "string", "required": false },   "notes": { "label": "Notes column", "description": "Set to 'yes' to activate a notes column on the right hand side of the table", "type": "string", "required": false } } }