-- Module to demo techniques for "Update Template:Reign" for Google-Code-in-2017-- mw.text.trim(nil) generates an error
p =
-- Example of trimp.trimgood = function(frame) txt = mw.text.trim(frame.args[1] or "") return txtend
p.trimbad = function(frame) txt = mw.text.trim(frame.args[1]) return txtend
return p