45,607
edits
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
local m_utils = require("Module:utilities") | local m_utils = require("Module:utilities") | ||
local m_data = require('Module:qhv-adj/data') | local m_data = require('Module:qhv-adj/data') | ||
local PAGENAME = mw.title.getCurrentTitle().text | local PAGENAME = gsub(mw.title.getCurrentTitle().text, "%s", " ") | ||
local NAMESPACE = mw.title.getCurrentTitle().nsText | local NAMESPACE = mw.title.getCurrentTitle().nsText | ||
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 parent_args["det"] or nil | |||
-- Generate the forms | -- Generate the forms | ||
Line 74: | Line 75: | ||
m_data[decl_type](args, data) | m_data[decl_type](args, data) | ||
end | end | ||
-- Make the table | -- Make the table | ||
return make_table(data) | return make_table(data) | ||
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 |