Template:Traffic volume row/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

{{traffic volume row}} (along with {{Traffic volume top}} and {{Traffic volume bottom}}) is used for creating tables of traffic volume data. {{Traffic volume row}} defines the table's rows. Use one for each row.

Usage

Usage is as follows:

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

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

Parameters

  • |1=: The location where data for this row was collected
  • |2=, |3=, |4=, |5=: the data (numbers). Use as many as needed 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 |notes=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 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 |align_note=right or |align_note=center to change the alignment.

TemplateData

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

TemplateData for Traffic volume row

<templatedata> {

 "description": "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).",
 "params": {
   "1": {
     "label": "Location",
     "description": "Location of the measuremnet",
     "type": "string",
     "required": true
   },
   "align1": {
     "label": "1st column data alignment",
     "description": "Normally not used (may be set to 'left', 'center', or 'right' (default))",
     "type": "string",
     "required": false
   },
   "2": {
     "label": "1st column data",
     "description": "Data for the first column",
     "type": "string",
     "required": true
   },
   "align2": {
     "label": "2nd column data alignment",
     "description": "Normally not used (may be set to 'left', 'center', or 'right' (default))",
     "type": "string",
     "required": false
   },
   "3": {
     "label": "2nd column data",
     "description": "Data for the second column. Required if the table has two or more data columns.",
     "type": "string",
     "required": false
   },
   "align3": {
     "label": "3rd column data alignment",
     "description": "Normally not used (may be set to 'left', 'center', or 'right' (default))",
     "type": "string",
     "required": false
   },
   "4": {
     "label": "3rd column data",
     "description": "Data for the third column. Required if the table has three or more data columns.",
     "type": "string",
     "required": false
   },
   "align4": {
     "label": "4th column data alignment",
     "description": "Normally not used (may be set to 'left', 'center', or 'right' (default))",
     "type": "string",
     "required": false
   },
   "5": {
     "label": "4th column data",
     "description": "Data for the fourth column. Required if the table has four data columns.",
     "type": "string",
     "required": false
   },
   "align5": {
     "label": "5th column data alignment",
     "description": "Normally not used (may be set to 'left', 'center', or 'right' (default))",
     "type": "string",
     "required": false
   },
   "note": {
     "label": "Note",
     "description": "A note regarding this row. Should only be used if the table has a 'Notes' column (set in 'Traffic volume top' template)",
     "type": "string",
     "required": false
   },
   "align_note": {
     "label": "Note alignment",
     "description": "Normally not used (may be set to 'left' (default), 'center', or 'right')",
     "type": "string",
     "required": false
   }
 }

} </templatedata>

See also