45,647
edits
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
return table.concat(words, sep) | return table.concat(words, sep) | ||
end | |||
function export.link_for_modules(str) | |||
local words = {} | |||
sep = sep or " " | |||
for word in mw.ustring.gmatch(str, "(%S+)") do | |||
word = "[[Contionary:" .. mw.ustring.lower(word) .. "|" .. word .. "]]" | |||
table.insert(words, word) | |||
end | |||
return words | |||
end | end | ||