Difference between revisions of "Module:IDs"
Jump to navigation
Jump to search
(Created page with "local p = {}; function p.run(frame) local ids = frame.args[1] local ret = "" for id in string.gmatch(ids, "([A-Z0-9]{4,})(?:,|$)") do ret = ret .. id .. utf8.char(2...") |
m |
||
Line 3: | Line 3: | ||
function p.run(frame) | function p.run(frame) | ||
local ids = frame.args[1] | local ids = frame.args[1] | ||
− | local ret = "" | + | local ret = "<span style=\"font-family: monospace; font-size: 13px;\">" |
for id in string.gmatch(ids, "([A-Z0-9]{4,})(?:,|$)") do | for id in string.gmatch(ids, "([A-Z0-9]{4,})(?:,|$)") do | ||
ret = ret .. id .. utf8.char(2002) | ret = ret .. id .. utf8.char(2002) | ||
end | end | ||
− | return ret | + | return ret .. "</span>" |
end | end |
Revision as of 14:18, 18 May 2020
Documentation for this module may be created at Module:IDs/doc
local p = {}; function p.run(frame) local ids = frame.args[1] local ret = "<span style=\"font-family: monospace; font-size: 13px;\">" for id in string.gmatch(ids, "([A-Z0-9]{4,})(?:,|$)") do ret = ret .. id .. utf8.char(2002) end return ret .. "</span>" end