Module:Sandbox/BrandonXLF/3: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 189:
for roadType, info in pairs(data) do
local localOut = ''
shield = parser({
['route'] = '1',
['state'] = subpage:gsub('.+/', '')
}, 'shieldmain', roadType, 'Module:Road data/strings/' .. subpage)
if type(shield) == 'table' then
ifshield = shield[0] then
end
out = out .. '<br>' .. ('[[File:%s|x25px|alt=|link=]]'):format(shield[0])
end
elseifif shield then
outlocalOut = out .. '<br>'localOut .. ('[[File:%s|x25px|alt=|link=]]'):format(shield)
end
shieldmain = parser({
['route'] = '1',
['state'] = subpage:gsub('.+/', '')
}, 'shieldmain', roadType, 'Module:Road data/strings/' .. subpage)
if type(shieldmain) == 'table' then
shield = shield[0]
end
 
if shieldmain then
outlocalOut = out .. '<br>'localOut .. ('[[File:%s|x25px|alt=|link=]]'):format(shield[0])
end
if localOut then
out = out .. '<br>' .. localOut
end
end