local p =
-- local templateRegex = "[Aa][Ff][Cc] submission"local templateRegex = "User:The Earwig/Sandbox/AfC submission"
-- Is this the first submission template on the page?-- Later templates emit nothing, only recording the submission state.local function isMainTemplate(args, text) local match = mw.ustring.match(text, "%