模組:重庆轨道交通出口标志
外观
local p = {}
function p.main(frame)
local code = frame:getParent().args[1]
local len = mw.ustring.len(code)
local seq = {}
if len > 0 and mw.ustring.sub(code, 1, 1) == '*' then
return '<span style="font-size:12px">' .. mw.ustring.sub(code, 2) .. '</span>'
end
for i = 1, len do
local c = mw.ustring.sub(code, i, i)
local size = 16
if c == 'Q' then
size = 17
end
table.insert(seq, '[[File:CRT sign black ' .. c .. '.svg|x' .. size .. 'px|' .. c .. '|link=|class=crt-exit-' .. c .. ' notheme]]')
end
return table.concat(seq)
end
return p