-- this module may be used by to allow for substitution of the-- created when substituting a -- template with the textitle parameter.---- For example, compare the result from-- -- with-- --local p = function p.main(frame) local date = frame.args[1] local success, result = pcall(frame.expandTemplate, frame,) if success then local t = mw.ustring.gsub(result, '[%s]', ' ') t = mw.ustring.gsub(t, '.*|[%s]*texttitle[%s]*=', '