Template:Traffic volume top/doc

traffic volume top, traffic volume row, and traffic volume bottom are templates for creating tables of traffic volume data. Redirects tv-t, tv-r, and tv-b may be used instead.

Usage is as follows:

...


 * traffic volume top opens and defines the first row of the table
 * traffic volume row defines the table's rows. Use one for each row
 * traffic volume bottom closes and defines the last row of the table

Usage of traffic volume top
Basic parameters are:
 * Unnamed 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;".

Usage of traffic volume row
Basic parameters are:
 * Unnamed parameter 1: The location where data for this row was collected
 * Unnamed parameters 2, 3, 4, 5: the data (numbers). Use as many as need to match the number of columns defined in traffic volume top. If data is unavailable for one of the columns, use a dash or hard space instead.
 * note: A note regarding this location. Only use if yes is set in traffic volume top

The following parameters provide further customisation:
 * align1, align2, align3, align4: The default alignment of the data (number) cells is to the right. These may be set to  or   to change the alignment, e.g. to center align a dash in a cloumn wherr data isn't available.
 * align_note: Change the alignment of the note column. The default is left aligned, but this parameter may be set to  or   to change the alignment.

Usage of traffic volume bottom
Basic parameters are:
 * note: A custom note that appears at the bottom of the table. Optional.
 * volume: The type of measurement, such as Annual average daily traffic. This parameter is optional, but usage is strongly recommended unless the column headings define the type of measurement.
 * source: The source(s) for the numbers. tags can be included here to provide a footnote. This a required parameter – all data should come from a reliable source, per Verifiability.

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