18,700
edits
(→Coming features: feature is now implemented) |
(→External link review: feature has been implemented) |
||
Line 26: | Line 26: | ||
*In most cases, fixing an [[wikipedia:List_of_Japanese_Latin_alphabetic_abbreviations#N|NG]] link will mean finding the desired web page in the [http://www.archive.org Internet Archive] and linking to that archived page instead. | *In most cases, fixing an [[wikipedia:List_of_Japanese_Latin_alphabetic_abbreviations#N|NG]] link will mean finding the desired web page in the [http://www.archive.org Internet Archive] and linking to that archived page instead. | ||
*In some cases, an NG link will not be recoverable and should be surrounded in nowiki tags [http://wiki.oni2.net/w/index.php?title=User_talk:Bobbysoon/Animation_Discussion&curid=4347&diff=26212&oldid=16377 like this] to remove it from the external links table, so that it stops showing up in the reports. | *In some cases, an NG link will not be recoverable and should be surrounded in nowiki tags [http://wiki.oni2.net/w/index.php?title=User_talk:Bobbysoon/Animation_Discussion&curid=4347&diff=26212&oldid=16377 like this] to remove it from the external links table, so that it stops showing up in the reports. | ||
*Links marked as IW are external links that could be [[Help:Editing#Interwiki_links|interwiki links]], which make links shorter and more resistant to rot. The suggested interwiki link markup will be given in the report. For Wikipedia, you can add a language code in order to link to a page in a specific language, e.g. <nowiki>[[wikipedia:de:Test]]</nowiki>. | |||
<!--Advice for when the script detects external internals... | <!--Advice for when the script detects external internals... | ||
**Sometimes an "external internal" may seem to be necessary; for instance you may wish to link to a specific version of a page, which used to require putting the full URL, [http://wiki.oni2.net/w/index.php?title=Oni&oldid=7685 like this]. In fact, there's no need to link to any page at all, as the "id" of an edit, like the one you see in that sample URL, is unique wiki-wide. All you need to do is plug the edit ID into the Permalink page [[Special:Permalink/7685|like this]], and you're done (you'll notice that the preceding link says "Special:Permalink" in the wikitext, but "Permalink" is actually a shortcut for "PermanentLink", so that's how it shows up for the reader). | **Sometimes an "external internal" may seem to be necessary; for instance you may wish to link to a specific version of a page, which used to require putting the full URL, [http://wiki.oni2.net/w/index.php?title=Oni&oldid=7685 like this]. In fact, there's no need to link to any page at all, as the "id" of an edit, like the one you see in that sample URL, is unique wiki-wide. All you need to do is plug the edit ID into the Permalink page [[Special:Permalink/7685|like this]], and you're done (you'll notice that the preceding link says "Special:Permalink" in the wikitext, but "Permalink" is actually a shortcut for "PermanentLink", so that's how it shows up for the reader). | ||
Line 33: | Line 34: | ||
While MediaWiki makes it easy to find bad links to pages on our own wiki, marking them in red and providing tools like Wantedpages, there is no automatic check of external links. MediaWiki compiles all these links into a table, but it does not ping the URLs to see if they give any response. The most you are allowed to do is [[Special:LinkSearch|search]] through the links table, and even that isn't implemented well. Over the years, many links on our wiki have gone dead as the Web has changed and various file hosts have gone out of business. | While MediaWiki makes it easy to find bad links to pages on our own wiki, marking them in red and providing tools like Wantedpages, there is no automatic check of external links. MediaWiki compiles all these links into a table, but it does not ping the URLs to see if they give any response. The most you are allowed to do is [[Special:LinkSearch|search]] through the links table, and even that isn't implemented well. Over the years, many links on our wiki have gone dead as the Web has changed and various file hosts have gone out of business. | ||
So [[User:Iritscen|I]] have implemented an automated solution that will help us catch these problems more easily; a human hand will still be needed to fix the problems. Here's how it works: every day, a script written by Alloc dumps MW's external links table to [http://wiki.oni2.net/w/extlinks.csv this location]. I will regularly be running a script which walks through the table and looks for URLs that return | So [[User:Iritscen|I]] have implemented an automated solution that will help us catch these problems more easily; a human hand will still be needed to fix the problems. Here's how it works: every day, a script written by Alloc dumps MW's external links table to [http://wiki.oni2.net/w/extlinks.csv this location]. I will regularly be running a script which walks through the table and looks for URLs that return NG codes like 404. It will also detect other problems in the future. | ||
===Coming features=== | ===Coming features=== | ||
*Detection of "external internal" links, which occur when someone puts the full URL to another page on this same wiki, like <nowiki>"[http://wiki.oni2.net/OniGalore:Current_events]"</nowiki> instead of <nowiki>"[[OniGalore:Current events]]"</nowiki>. | *Detection of "external internal" links, which occur when someone puts the full URL to another page on this same wiki, like <nowiki>"[http://wiki.oni2.net/OniGalore:Current_events]"</nowiki> instead of <nowiki>"[[OniGalore:Current events]]"</nowiki>. | ||
*At a cursory glance, I can see that many external links no longer display the content that they were intended to display. In many cases, web sites are silently redirecting the user to their main page without using the appropriate code that indicates the content was not found. Only visual inspections of the pages can catch these issues. Once we have dealt with the low-hanging fruit of pages that return NG codes, the screenshot feature in the script will be activated, which will allow us to easily confirm if the "OK" links (and "OK" snapshots from the Internet Archive) are actually loading the intended page. | *At a cursory glance, I can see that many external links no longer display the content that they were intended to display. In many cases, web sites are silently redirecting the user to their main page without using the appropriate code that indicates the content was not found. Only visual inspections of the pages can catch these issues. Once we have dealt with the low-hanging fruit of pages that return NG codes, the screenshot feature in the script will be activated, which will allow us to easily confirm if the "OK" links (and "OK" snapshots from the Internet Archive) are actually loading the intended page. | ||