Jump to content

User:Technical 13/Scripts/Gadget-veditLinks

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 17:59, 30 December 2014 (Create page. Very basic description). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Code Anchors
Author(s)Technical 13
StatusBeta
UpdatedJanuary 27, 2021
    (4 years ago)
BrowsersFirefox 34
SkinsVector
SourceUser:Technical 13/Scripts/Gadget-veditLinks.js

This script is for use by editors using VisualEditor. Its purpose is to change the "edit" links in the various {{Lx}} style templates into "edit source" links and add a "edit beta" link.

[[?title=User_talk:Technical_13/Scripts/Gadget-veditLinks&action=edit&section=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug |?title=User_talk:Technical_13/Scripts/Gadget-veditLinks&action=edit&section=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug]] [[?title=User_talk:Technical_13/Scripts/Gadget-veditLinks&action=edit&section=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature |?title=User_talk:Technical_13/Scripts/Gadget-veditLinks&action=edit&section=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature]]

Using this script

On the English Wikipedia

This script can be imported to skin.js or common.js by adding:

importScript( 'User:Technical 13/Scripts/Gadget-veditLinks.js' );// [[User:Technical 13/Scripts/Gadget-veditLinks]]

Step two

Once you have saved the above to your common.js, you will have to WP:BYPASS your cache to see the effects.