Difference between revisions of "Module:Sandbox/Ahecht/sandbox"
< Module:Sandbox | Ahecht
Jump to navigation
Jump to search
blackwiki>Ahecht (test) |
blackwiki>Ahecht (test) |
||
| Line 3: | Line 3: | ||
function p.main(frame) | function p.main(frame) | ||
output = mw.getCurrentFrame():getTitle() | output = mw.getCurrentFrame():getTitle() | ||
| − | return output | + | return mw.ustring.gsub(output, mw.site.namespaces[828].name, mw.site.namespaces[10].name) |
end | end | ||
return p | return p | ||
Revision as of 21:06, 7 May 2017
Documentation for this module may be created at Module:Sandbox/Ahecht/sandbox/doc
local p = {}
function p.main(frame)
output = mw.getCurrentFrame():getTitle()
return mw.ustring.gsub(output, mw.site.namespaces[828].name, mw.site.namespaces[10].name)
end
return p