18,700
edits
(making "external link review" into its own section, though it is a WIP at the moment) |
m (→External link review: wording) |
||
Line 27: | Line 27: | ||
*This still leaves the sometimes tedious process of finding a valid Archive link yourself. We might be able to learn some tricks from Wikipedia's [[metawikipedia:InternetArchiveBot|InternetArchiveBot]]. Though it would need to be heavily adapted in order to actually function on our wiki, it knows how to automatically replace dead URLs with snapshots from the Archive that come from the actual time period that the URL was added. Going back in time like that prevents a later snapshot from being pulled which might just be a 404 page. IABot is able to "date" URLs because the MediaWiki API can [https://www.mediawiki.org/wiki/API:Revisions return the revision] where some given text content was added to a page. | *This still leaves the sometimes tedious process of finding a valid Archive link yourself. We might be able to learn some tricks from Wikipedia's [[metawikipedia:InternetArchiveBot|InternetArchiveBot]]. Though it would need to be heavily adapted in order to actually function on our wiki, it knows how to automatically replace dead URLs with snapshots from the Archive that come from the actual time period that the URL was added. Going back in time like that prevents a later snapshot from being pulled which might just be a 404 page. IABot is able to "date" URLs because the MediaWiki API can [https://www.mediawiki.org/wiki/API:Revisions return the revision] where some given text content was added to a page. | ||
*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. | ||
*One other issue the script will highlight is "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: | *One other issue the script will highlight is "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>. | ||
**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 | **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 you need to link to a diff between two versions of a page. As of our current version of MW, there is no "wikified" way to express this -- though it was added in [[User:Iritscen/WikiFuture#1.23|v1.23]]. So in this case, you really do need to use the | **Sometimes you need to link to a diff between two versions of a page. As of our current version of MW, there is no "wikified" way to express this -- though it was added in [[User:Iritscen/WikiFuture#1.23|v1.23]]. So in this case, you really do need to use the style of external link which I used above under the "nowiki" point to link to a sample edit. | ||
*Images hosted on other domains should be localized (uploaded to this wiki, and the external links changed to point to our local copies) to protect against the external sites going down. As a secondary priority we should also copy over images that are currently hosted on other subdomains of oni2.net; though these are less likely to go away, there is no way for the subdomain owner to know whether their images are being linked to if they suddenly get the urge to do some spring cleaning on their account. | *Images hosted on other domains should be localized (uploaded to this wiki, and the external links changed to point to our local copies) to protect against the external sites going down. As a secondary priority we should also copy over images that are currently hosted on other subdomains of oni2.net; though these are less likely to go away, there is no way for the subdomain owner to know whether their images are being linked to if they suddenly get the urge to do some spring cleaning on their account. | ||