Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 67: Line 67:
data.head = parent_args["head"] or nil
data.head = parent_args["head"] or nil
data.no_cat = parent_args["nocat"] or nil
-- Generate the forms
-- Generate the forms
Line 184: Line 185:
local wikicode = divframe .. prepositive .. postpositive .. "</div></div>"
local wikicode = divframe .. prepositive .. postpositive .. "</div></div>"
 
return (gsub(wikicode, "{{{([a-z0-9_]+)}}}", repl)) .. require("Module:utilities").format_categories(data.categories, lang)
return (gsub(wikicode, "{{{([a-z0-9_]+)}}}", repl)) .. (data.no_cat and "" or require("Module:utilities").format_categories(data.categories, lang))
end
end




return export
return export