Module:Edit button

From Brighter Shores Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Edit button/doc

-- Creates a link that opens the editor screen for whatever page this module is invoked on

return function(text)
	local page_title = mw.title.getCurrentTitle().fullText
	local url = tostring(mw.uri.fullUrl(page_title,'action=edit'))
	return '['..url..' '..(text or 'edit')..']'
end