User:Technical 13/Scripts/Gadget-veditLinks

From WikiProjectMed
Jump to navigation Jump to search
VisualEditor Links
Author(s)Technical 13
StatusBeta
UpdatedJanuary 27, 2021
    (3 years ago)
Browser supportFirefox 34
Skin supportVector
SourceUser:Technical 13/Scripts/Gadget-veditLinks.js
GitHub repositoryveditLinks

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.