Module:mg-spel: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 104: Line 104:
local links = {}
local links = {}
for alt in gmatch(term, "([^%s,]+)") do
for alt in gmatch(term, "([^%s,]+)") do
if uc then alt = gsub(alt, "^(.)", mw.ustring.upper("%1")) end
if uc then alt = gsub(alt, "^(.)", function(foo) return mw.ustring.upper(foo) end) end
alt = "[[Contionary:" .. alt .. "|" .. alt .. "]]"
alt = "[[Contionary:" .. alt .. "|" .. alt .. "]]"
table.insert(links, alt)
table.insert(links, alt)