Module:Edit button
Revision as of 11:02, 4 October 2022 by Jacmob (talk | contribs) (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")
Module documentation
This documentation is transcluded from Module:Edit button/doc. [edit] [history] [purge]
Module:Edit button is required by Module:Attack speed bar.
Module:Edit button is required by Module:Infobox.
Module:Edit button is required by Module:LocLine.
This module is a helper module to be used by other modules; it may not be designed to be invoked directly. See Near-Reality:Lua/Helper modules for a full list and more information.
Module | Function | Type | Use |
---|---|---|---|
Edit button | (text) | string | Creates an edit button for the current page that the module is invoked ontext defaults to "edit" |
-- {{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