Module:Check-empty
Documentation for this module may be created at Module:Check-empty/doc
-- This module returns a category inclusion fragment
-- iff the only wikitext on current page is
-- a transclusion of the specified template
me = {}
me.check = function ( frame )
page = mw.title.getCurrentTitle()
match = mw.ustring.match(page:getContent(), '^%s*{{%s*([^}|]*)[^}]*}}%s*$')
return match
end
return me