local getArgs = require('Module:Arguments').getArgs local p = local function makeInvokeFunction(funcName) -- makes a function that can be returned from #invoke, using -- . return function (frame) local args = getArgs(frame,) return p[funcName](args) endend local function colorboxLinked(color,text,link) return ' 'end local function colorboxUnlinked(color) return '
'endlocal t1 = p.icon = makeInvokeFunction('_icon') function p._icon(args) local link local code = args[1] or local text = args[2] if text then text = '('..text..')' else text = end local showtext = args.showtext local alt for k, v in pairs(t1) do for _, name in ipairs(v) do if mw.ustring.lower(code)
true then if showtext then link = alt = 'alt=' showtext = ''..k..'' else link = k..' (Los Angeles Metro)' alt = k showtext = end else if showtext then link = alt = 'alt=' showtext = ''..k..' ' else link = k alt = k showtext = end end if v.icon
'crenshaw' then return ' '..showtext..text elseif v.icon
'img_square' then return ' '..showtext..text end end end end return colorboxLinked('#fff',code..' Line',code..' Line (Los Angeles Metro)')..textend return p