Module:Routelist row
Appearance
Implements {{Routelist row}}
function rowcolor(established, decommissioned)
--This function determines if this is a future route, present route, or decommissioned route, and colors the row appropriately.
if established > lang.FormatDate('Y-m-d') then --this is a future route
print "|style=\"background-color:#ffdead;" title="Future route\""
elseif decommissioned ~= 0 then --this is a decommissioned route
print "|style=\"background-color:#d3d3d3;\" title=\"Former route\""
else --this is a normal route
print "|"
end
end