Module:Routelist row: Difference between revisions

Content deleted Content added
add gazette
Tag: Reverted
drop nowrap - was causing horizontal scrolling on List of Ontario provincial highways for 407
 
(6 intermediate revisions by one other user not shown)
Line 107:
function dates(established, decommissioned, routeState, args)
-- This function displays the date columns.
local gazette = args.gazette
local gazette_ref = args.gazette_ref
if args.gazette == 'yes' then
return "|align=center|" .. gazette .. gazette_ref
local established = args.established or "—"
local established_ref = args.established_ref or ''
return "|align=center|" .. gazetteestablished .. gazette_refestablished_ref
else
local established_ref = args.established_ref or '' -- Reference for date established
Line 254 ⟶ 256:
local sortedLink = format("<span data-sort-value=\"%s&#32;!\">%s</span>", sortkey, link)
local route = banner .. shield .. ' ' .. sortedLink
return '!scope="row" class="nowrap"|' .. route
end