User:Technical 13/Scripts/Gadget-codeBacklinks

From WikiProjectMed
Jump to navigation Jump to search
Browser/skin compatibility table
Browser\Skin Vector MonoBook Modern Cologne Blue
Chrome 29 untested untested untested untested
FireFox 26 Works untested untested untested
IE 7 untested untested untested untested
Opera 12.16 untested untested untested untested
Opera 16 untested untested untested untested
Safari 5 untested untested untested untested
Code Anchors
Author(s)Technical 13
StatusStable
UpdatedJanuary 26, 2015
    (9 years ago)
Browser supportFirefox 26
Skin supportVector
SourceUser:Technical 13/SandBox/Gadget-codeBacklinks.js

This script turns all wikilinks that are in comment sections in .css stylesheets and .js JavaScript pages into actual clickable links (with edit and wlh links as well if not a special page).

[[?title=User_talk:Technical_13/Scripts/Gadget-codeBacklinks&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-codeBacklinks&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-codeBacklinks&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-codeBacklinks&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/SandBox/Gadget-codeBacklinks.js' );// [[User:Technical 13/SandBox/Gadget-codeBacklinks]]

Step two

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