Module:qhv-verb: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 81: | Line 81: | ||
data.no_cat = parent_args["nocat"] or parent_args["det"] or nil | data.no_cat = parent_args["nocat"] or parent_args["det"] or nil | ||
data.thematic_vowel = tv | data.thematic_vowel = tv | ||
data.trans = parent_args["t"] or parent_args[1] or nil | |||
-- Generate the forms | -- Generate the forms | ||
Line 280: | Line 281: | ||
]=] | ]=] | ||
local wikicode = divframe_active .. active .. divframe_passive .. passive | local wikicode = divframe_active .. active .. (data.trans and divframe_passive .. passive or "") | ||
return (gsub(wikicode, "{{{([a-z0-9_]+)}}}", repl)) .. (data.no_cat and "" or 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)) |