Module:headword: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 573: Line 573:
) then
) then
table.insert(data.categories, data.lang:getCanonicalName() .. " palindromes")
table.insert(data.categories, data.lang:getCanonicalName() .. " palindromes")
end
if mw.ustring.match(pagename, "%-%s%-") then
table.insert(data.categories, data.lang:getCanonicalName() .. " words circumfixed with " .. pagename)
elseif mw.ustring.match(pagename, "%-$") then
table.insert(data.categories, data.lang:getCanonicalName() .. " words prefixed with " .. pagename)
elseif mw.ustring.match(pagename, "^%-") then
table.insert(data.categories, data.lang:getCanonicalName() .. " words suffixed with " .. pagename)
end
end