Module:qhv-adj: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 46: Line 46:
decl_type = frame.args.decl
decl_type = frame.args.decl
else
else
decl_type, numbers = export.detect_decl(word, parent_args.c)
if parent_args.c and parent_args[1] then
decl_type = parent_args.c
numbers = {parent_args[1]}
else
decl_type, numbers = export.detect_decl(word, parent_args.c)
end
end
end
Line 54: Line 59:
args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)
args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)
if numbers then
for i, number in ipairs(numbers) do
args[i] = number
end
end
end
end