Module:mg-noun: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 136: Line 136:
return table.concat(ret)
return table.concat(ret)
end
end
local no_plural = data.nopl or NAMESPACE == "Template" and false or data.forms.nom_pl == nil


local navframe = [=[
local navframe = [=[
Line 165: Line 163:




return gsub(navframe .. (no_plural and sgwik or wikicode), "{{{([a-z0-9_]+)}}}", repl)
return gsub(navframe .. (data.nopl and sgwik or wikicode), "{{{([a-z0-9_]+)}}}", repl)
  .. (not data.nocat and m_utils.format_categories(data.categories, lang) or "")
  .. (not data.nocat and m_utils.format_categories(data.categories, lang) or "")
end
end