Template:Traffic volume top/doc
![]() | This is a documentation subpage for Template:Traffic volume top. It may contain usage information, categories and other content that is not part of the original template page. |
{{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:
{{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
|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 toleft
to have the table left-aligned. The default if this parameter is nor included is right-aligned.|notes=
: set toyes
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 isfont-size: 85%
.|divclass=
: The CSS class of the <div> that contains the table. The default isthumb tright
, orthumb tleft
if|align=left
is set.|tableclass=
: The CSS class of the table. The default iswikitable infobox
.|tablestyle=
: The CSS style of the table. The default ismargin: 0px
.
Examples
Left aligned table, two columns of data
{{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}}
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 | |||
|
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. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
Right aligned table, one column, no column header, custom note at bottom
{{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}}
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 | ||||
|
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. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
Highly customised table
{{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}}{{-}}
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 | ||
|
Text will not wrap around this table because {{-}}
was included at the end
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)
Parameter | Description | Type | Status | |
---|---|---|---|---|
<div> CSS class | divclass | Normally not used (the CSS class of the <div> element that contains the table) | String | optional |
Table alignment | align | The alignment as the table, valid values are 'left' or 'right'. If not included, will default to 'right' | String | optional |
Table CSS class | tableclass | Normally not used (the CSS class of the table) | String | optional |
Table CSS style | tablestyle | Normally not used (the CSS style of the table) | String | optional |
Caption CSS style | captionstyle | Normally not used (the CSS style of the table's caption) | String | optional |
Caption | caption | Normally not used (a custom caption for the table, instead of the default) | String | optional |
Road name | name | The road name. Only needs to be entered if it is different to the article title. | String | optional |
1st column heading | 1 | Description of numbers in first data column, such as year or measurement type. Optional if there is only one data column | String | optional |
Location column heading | location | Normally not used (a custom heading for the location column, instead of the default 'Location') | String | optional |
4th column heading | 4 | Description of numbers in fourth data column, such as year or measurement type. Only required if there are four data columns. | String | optional |
3rd column heading | 3 | Description of numbers in third data column, such as year or measurement type. Only required if there are three or more data columns. | String | optional |
2nd column heading | 2 | Description of numbers in second data column, such as year or measurement type. Only required if there are two or more data columns. | String | optional |
Volume label | volume | Normally not used (a custom label that spans the data columns, instead of the default 'Volume') | String | optional |
Notes column | notes | Set to 'yes' to activate a notes column on the right hand side of the table | String | optional |
See also