m (o) |
mNo edit summary |
||
Line 1: | Line 1: | ||
-- Creates a link that opens the editor screen for whatever page this module is invoked on |
-- Creates a link that opens the editor screen for whatever page this module is invoked on |
||
− | local p = {} |
||
− | + | return function() |
|
local page_title = mw.title.getCurrentTitle().fullText |
local page_title = mw.title.getCurrentTitle().fullText |
||
local url = tostring(mw.uri.fullUrl(page_title,'action=edit')) |
local url = tostring(mw.uri.fullUrl(page_title,'action=edit')) |
||
return '['..url..' edit]' |
return '['..url..' edit]' |
||
end |
end |
||
− | |||
− | return p |
Revision as of 03:30, 22 November 2014
Documentation for this module may be created at Module:Edit button/doc