Module:linkeach: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 18: | Line 18: | ||
local words = {} | local words = {} | ||
for word in mw.ustring.gmatch(str, "(%S+)") do | for word in mw.ustring.gmatch(str, "(%S+)") do | ||
word = "[[ | word = "[[" .. mw.ustring.lower(word) .. "|" .. word .. "]]" | ||
table.insert(words, word) | table.insert(words, word) | ||
end | end | ||
return table.concat(words, | return table.concat(words, " ") | ||
end | end | ||