local p = {} function p.main(frame) ns = mw.title.getCurrentTitle().nsText(extra) extra = frame.args[1] if ns then return '' .. ns else if error then return string.format(ns '<strong class="error">is not a valid namespace</strong>') end end end return p