Jump to content

OniGalore:Current events: Difference between revisions

m
use shorter IW links; wording on extlinks.csv
(→‎BSL tutorials: scratch that, we'll just use Semantic MW)
m (use shorter IW links; wording on extlinks.csv)
Line 22: Line 22:


==External link review==
==External link review==
Help us fight against [[wiktionary:linkrot|link rot]] by correcting bad links that have been found by our automated script.<br />
Help us fight against [[wikt:linkrot|link rot]] by correcting bad links that have been found by our automated script.<br />
The report on bad links is found '''[http://iritscen.oni2.net/val/ValExtLinks%20report.htm HERE]''' and is currently refreshed daily at 9:00 am [[wp:Eastern_Time_Zone|ET]].
The report on bad links is found '''[http://iritscen.oni2.net/val/ValExtLinks%20report.htm HERE]''' and is currently refreshed daily at 9:00 am [[wp:Eastern_Time_Zone|ET]].


===How to fix bad links===
===How to fix bad links===
*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 [[Special:Diff/16377/26212|like this]] to prevent it from showing up in future reports.
*In most cases, fixing an [[wp: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 [[Special:Diff/16377/26212|like this]] to prevent it from showing up in future reports.
*A link marked as "RD" is redirecting us to a new page. The new page should be evaluated, and if it has the content we intended to link to then we should update the link to point to the new location.
*A link marked as "RD" is redirecting us to a new page. The new page should be evaluated, and if it has the content we intended to link to then we should update the link to point to the new location.
*A link marked as "IW" is an external link that could be an [[Help:Editing#Interwiki_links|interwiki link]]. Interwiki links are 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>.
*A link marked as "IW" is an external link that could be an [[Help:Editing#Interwiki_links|interwiki link]]. Interwiki links are 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>[[wp:de:Test]]</nowiki>.
*A link marked as "EI" is an external link to a page on our own wiki that could simply be an [[Help:Editing#Intrawiki_links|intrawiki link]].
*A link marked as "EI" is an external link to a page on our own wiki that could simply be an [[Help:Editing#Intrawiki_links|intrawiki link]].
**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 37: Line 37:
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|Iritscen]] has 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 [[User:Admin|Alloc]] dumps the wiki's external links table to [http://wiki.oni2.net/w/extlinks.csv this location]. Iritscen's Validate External Links script then walks through the table and looks for URLs that return problematic codes like 404. It will also detect other problems in the future. The script and related files are found [http://websvn.chrilly.net/listing.php?repname=Oni2&path=%2FValidate+External+Links%2F here].
So [[User:Iritscen|Iritscen]] has 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: a couple times a day, a script written by [[User:Admin|Alloc]] dumps the wiki's external links table to [http://wiki.oni2.net/w/extlinks.csv this location]. Iritscen's Validate External Links script then walks through the table and looks for URLs that return problematic codes like 404. It will also detect other problems in the future. The script and related files are found [http://websvn.chrilly.net/listing.php?repname=Oni2&path=%2FValidate+External+Links%2F here].


===Coming features===
===Coming features===