{{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 edit

Usage is as follows:

{{Traffic volume top}}
{{Traffic volume row}}
...
{{Traffic volume row}}
{{Traffic volume bottom}}

{{Traffic volume top|first column|second column|third column|fourth column|name=|align=|notes=}}

Parameters edit

  • |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 left to have the table left-aligned. The default if this parameter is nor included is right-aligned.
  • |notes=: set to yes 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 <span> that contains the caption. The default is font-size: 85%.
  • |divclass=: The CSS class of the <div> that contains the table. The default is thumb tright, or thumb tleft if |align=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.


Examples edit

Left aligned table, two columns of data edit

{{traffic volume top|align=left|name=Tonkin Highway|2007–08|2008–09}}
{{traffic volume row|North of Benara Road|39,760||align2=center}}
{{traffic volume row|South of Great Eastern Highway|56,220|57,160}}
{{traffic volume row|East of Abernethy Road||align1=center|55,960}}
{{traffic volume row|Bridge Over Canning River||align1=center|26,090}}
{{traffic volume row|North of Thomas Road||align1=center|9,570}}
{{traffic volume bottom|volume=Average vehicles per weekday|source=Main Roads Western Australia}}
Traffic volume on Tonkin Highway
Location Volume
2007–08 2008–09
North of Benara Road 39,760
South of Great Eastern Highway 56,220 57,160
East of Abernethy Road 55,960
Bridge Over Canning River 26,090
North of Thomas Road 9,570
  • Volume: Average vehicles per weekday
  • Source: Main Roads Western Australia

Text will wrap around the table, like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Right aligned table, one column, no column header, custom note at bottom edit

{{tv-t|name=Kwinana Freeway}}
{{tv-r|Narrows Bridge|160,090|}}
{{tv-r|North of Leach Highway|103,400}}
{{tv-r|South of Roe Highway|85,200}}
{{tv-r|South of Rowley Road|61,840}}
{{tv-r|South of Mundijong Road|37,650}}
{{tv-b|note=Data is from 2007 – 2008|volume=Average vehicles per weekday|source=Main Roads Western Australia}}
Traffic volume on Kwinana Freeway
Location Volume
Narrows Bridge 160,090
North of Leach Highway 103,400
South of Roe Highway 85,200
South of Rowley Road 61,840
South of Mundijong Road 37,650
  • Data is from 2007 – 2008
  • Volume: Average vehicles per weekday
  • Source: Main Roads Western Australia

Text will also wrap around this table:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Highly customised table edit

{{traffic volume top|align=left|caption=D21 traffic volume (2010)|[[AADT]]|[[AAST]]|location=Counting site|notes=yes|tableclass="wikitable"|captionstyle=""}}
{{traffic volume row|2702 Kaštel|1,952|2,989|note=Adjacent to the Kaštel border crossing}}
{{traffic volume row|2707 Sveti Ivan|1,980|2,510|note=Adjacent to the Ž5008 junction}}
{{traffic volume row|2719 Vižinada north|1,414|2,262|note=Between the D44 and the Ž5041 junctions}}
{{traffic volume row|2721 Baderna north|1,925|2,478|note=Adjacent to the D48 junction}}
{{traffic volume row|2717 Bale|2,366|3,148|note=Between the Ž5098 and the Ž5096 junctions}}
{{traffic volume row|3905 Pula north|10,696|13,527|note=Between the Ž5115 and the Ž5117 junction}}
{{traffic volume bottom|source=Hrvatske ceste}}{{-}}
D21 traffic volume (2010)
Counting site Volume Notes
AADT AAST
2702 Kaštel 1,952 2,989 Adjacent to the Kaštel border crossing
2707 Sveti Ivan 1,980 2,510 Adjacent to the Ž5008 junction
2719 Vižinada north 1,414 2,262 Between the D44 and the Ž5041 junctions
2721 Baderna north 1,925 2,478 Adjacent to the D48 junction
2717 Bale 2,366 3,148 Between the Ž5098 and the Ž5096 junctions
3905 Pula north 10,696 13,527 Between the Ž5115 and the Ž5117 junction
  • Source: Hrvatske ceste

Text will not wrap around this table because {{-}} was included at the end

TemplateData edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Traffic volume top in articles based on its TemplateData.

TemplateData for Traffic volume top

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)

Template parameters

ParameterDescriptionTypeStatus
<div> CSS classdivclass

Normally not used (the CSS class of the <div> element that contains the table)

Stringoptional
Table alignmentalign

The alignment as the table, valid values are 'left' or 'right'. If not included, will default to 'right'

Stringoptional
Table CSS classtableclass

Normally not used (the CSS class of the table)

Stringoptional
Table CSS styletablestyle

Normally not used (the CSS style of the table)

Stringoptional
Caption CSS stylecaptionstyle

Normally not used (the CSS style of the table's caption)

Stringoptional
Captioncaption

Normally not used (a custom caption for the table, instead of the default)

Stringoptional
Road namename

The road name. Only needs to be entered if it is different to the article title.

Stringoptional
1st column heading1

Description of numbers in first data column, such as year or measurement type. Optional if there is only one data column

Stringoptional
Location column headinglocation

Normally not used (a custom heading for the location column, instead of the default 'Location')

Stringoptional
4th column heading4

Description of numbers in fourth data column, such as year or measurement type. Only required if there are four data columns.

Stringoptional
3rd column heading3

Description of numbers in third data column, such as year or measurement type. Only required if there are three or more data columns.

Stringoptional
2nd column heading2

Description of numbers in second data column, such as year or measurement type. Only required if there are two or more data columns.

Stringoptional
Volume labelvolume

Normally not used (a custom label that spans the data columns, instead of the default 'Volume')

Stringoptional
Notes columnnotes

Set to 'yes' to activate a notes column on the right hand side of the table

Stringoptional

See also edit