Template:Traffic volume row

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Traffic volume on Traffic volume row
Location Volume
{{{1}}} {{{2}}}
  • Source: a source
Template documentation[view] [edit] [history] [purge]

{{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}}
{{traffic volume row}}
...
{{traffic volume row}}
{{traffic volume bottom}}

Usage of {{traffic volume top}}[edit]

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

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 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
Advanced settings

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;".

Usage of {{traffic volume row}}[edit]

{{traffic volume row|location|data (column 1)|data (column 2)|data (column 3)|data (column 4)|note=}}

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 (&nbsp;) instead.
  • note: A note regarding this location. Only use if |notes=yes is set in {{traffic volume top}}
Advanced settings

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 left or center 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 right or center to change the alignment.

Usage of {{traffic volume bottom}}[edit]

{{traffic volume bottom|note=|volume=|source=}}

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. <ref> tags can be included here to provide a footnote. This a required parameter – all data should come from a reliable source, per Wikipedia:Verifiability.

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 for {{Traffic volume row}}
This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Traffic volume row

Creates a row of data for a traffic volume table. Use with the 'Traffic volume top' template (for the table headings) and 'Traffic volume bottom' template (to close the table).

Template parameters

Parameter Description Type Status
Location 1

Location of the measuremnet

Default
empty
Example
empty
Auto value
empty
String required
1st column data alignment align1

Normally not used (may be set to 'left', 'center', or 'right' (default))

Default
empty
Example
empty
Auto value
empty
String optional
1st column data 2

Data for the first column

Default
empty
Example
empty
Auto value
empty
String required
2nd column data 3

Data for the second column. Required if the table has two or more data columns.

Default
empty
Example
empty
Auto value
empty
String optional
2nd column data alignment align2

Normally not used (may be set to 'left', 'center', or 'right' (default))

Default
empty
Example
empty
Auto value
empty
String optional
3rd column data 4

Data for the third column. Required if the table has three or more data columns.

Default
empty
Example
empty
Auto value
empty
String optional
3rd column data alignment align3

Normally not used (may be set to 'left', 'center', or 'right' (default))

Default
empty
Example
empty
Auto value
empty
String optional
4th column data 5

Data for the fourth column. Required if the table has four data columns.

Default
empty
Example
empty
Auto value
empty
String optional
4th column data alignment align4

Normally not used (may be set to 'left', 'center', or 'right' (default))

Default
empty
Example
empty
Auto value
empty
String optional
Note note

A note regarding this row. Should only be used if the table has a 'Notes' column (set in 'Traffic volume top' template)

Default
empty
Example
empty
Auto value
empty
String optional
Note alignment align_note

Normally not used (may be set to 'left' (default), 'center', or 'right')

Default
empty
Example
empty
Auto value
empty
String optional