Module:Routelist row: Difference between revisions

Content deleted Content added
fix
drop nowrap - was causing horizontal scrolling on List of Ontario provincial highways for 407
 
(8 intermediate revisions by one other user not shown)
Line 107:
function dates(established, decommissioned, routeState, args)
-- This function displays the date columns.
local established_ref = args.established_ref or '' -- Reference for date established
local decommissioned_ref = args.decommissioned_ref or '' -- Reference for date decommissioned
if args.gazette == 'yes' then
return "|align=center|" .. formed(routeState, established, args.circa_established) ..
local established = args.established or "—"
established_ref .. "||align=center|" .. removed(routeState, decommissioned, args.circa_decommissioned) ..
local established_ref = args.established_ref or ''
decommissioned_ref
return "|align=center|" .. established .. established_ref
else
local established_ref = args.established_ref or '' -- Reference for date established
local decommissioned_ref = args.decommissioned_ref or '' -- Reference for date decommissioned
return "|align=center|" .. formed(routeState, established, args.circa_established) ..
established_ref .. "||align=center|" .. removed(routeState, decommissioned, args.circa_decommissioned) ..
decommissioned_ref
end
end
 
Line 216 ⟶ 225:
local shield
if not noshield then
local shieldFile, second = parser(args, 'shieldlist') or parser(args, 'shield') or ''
if shieldFile == nil or shieldFile == '' then
shield = ''
Line 247 ⟶ 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