Module:Normalized pagename

Jump to navigation Jump to search

Implements {{Normalized pagename}}.


-- <pre>
--
-- implements {{Normalized pagename}}
--
local p = {}
function p.main( frame )
    local args = frame:getParent().args;
    local pagename = args[ 1 ] or mw.title.getCurrentTitle().prefixedText
    return mw.text.decode( pagename )
end
return p
-- </pre>