Jump to content

Module:aii-conj-check/sandbox

From Wiktionary, the free dictionary


local export = {}

function export.preventDirectInvocation(frame)
	-- Ensures that verb conjugation templates can only be called from [[Module:aii-conj]]
    local currentTitle = mw.title.getCurrentTitle()
    if currentTitle.namespace == 0 then
        error("Please use [[Template:aii-conj]] instead. Direct use of this template is not allowed.", 0)
    end
end

return export