Board Thread:Support Requests - Getting Technical/@comment-28083312-20170322212912

Firstly, I think I need the MediaWiki system message that controls the edit-button text on pages that are protected, the default is “View Source” I believe. I would like to change that to say “Log-in to Edit,” as my home wiki requires editors to log in, & I think that kind of message would be exceptionally helpful to anonymous editors. Naturally though, it would not do to have MediaWiki articles say this, because logging in will obviously not allow a user to edit those pages lol. Maybe some JavaScript could be used to target specific namespaces, but my skill with JavaScript is practically nil, so I don’t know how I would go about writing it. An even better use for it, if it’s possible, would be to have the JS check to see if a specific page within the Main Namespace is edit-protected. If it is, then it should display View Source, but if it isn’t, then it should display “Log-in to Edit” to anonymous viewers. Hell, an even better use of JavaScript would be to then change the  tag to direct a user to Special:Userlogin instead of to , since that would just be all the more useful in helping along readers down the road to becoming editors. I know it’s a lot to ask, but these later ideas aren’t fully necessary, I just need the MediaWiki page that controls the View Source system message. The rest would be welcome bonuses, but I can make do with just the page.

Thanks in advance. 