Module:English variant notice: Difference between revisions

Content deleted Content added
maybe?
kind of a hack
Line 7:
function p.main (frame)
mArguments = require('Module:Arguments')
local args = mArguments.getArgs(frame, {parentFirst = true, wrappers = 'Template:English variant notice'})
title = mw.title.getCurrentTitle()
if mw.title.equals(title, mw.title.makeTitle('Template', title.rootText)) then --if it is on template page, load doc
ifreturn notframe:expandTemplate (mw.{title.equals(title, mw.title.makeTitle('Template',= 'English variant notice/documentation'))) then, --preventargs template= loopargs}
return frame:expandTemplate {title = 'English variant notice/documentation', args = args}
end
end
return p._main (frame, args)