Template:Ridership

From Wikipedia, the free encyclopedia

This template takes up to three arguments: ridership, miles of track, and (optionally) additional miles and produces three values separated by vertical bars for insertion into a table:

  1. The ridership, formatted with commas
  2. The number of miles of track (could be two values if the third parameter is provided), with kilometer conversion and a hidden key to make it sortable
  3. Ridership per mile of track

Example:

{|class="wikitable"
{{ridership|50000|20}}
|}

produces:

50,000 20 mi (32 km) 2,500