Module:aii-conj-check/sandbox
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox of
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