Module:Edit button: Difference between revisions

From Darkan
Jump to navigation Jump to search
(Created page with "-- {{Helper module|name=Edit button|fname1=(text)|ftype1=string|fuse1=Creates an edit button for the current page that the module is invoked on<br /><br /><code>text</code> defaults to "edit"}} -- 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")
 
m (Jawarrior1 moved page Module:Edit Button to Module:Edit button without leaving a redirect)
 
(No difference)

Latest revision as of 08:38, 9 January 2024

[view] [edit] [purge] Template documentation

This documentation is transcluded from Module:Edit button/doc.

Script error: No such module "Helper module". pt:Módulo:Edit button


-- {{Helper module|name=Edit button|fname1=(text)|ftype1=string|fuse1=Creates an edit button for the current page that the module is invoked on<br /><br /><code>text</code> defaults to "edit"}}
-- 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