Template:Traffic volume top
Location | Volume | ||||
---|---|---|---|---|---|
{{{1}}} | |||||
a location | a number | ||||
|
{{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 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[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}}
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 | |||
|
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}}
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 | ||||
|
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}}{{-}}
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[edit]
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 |