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