维基百科:检测连结

检测连结(英语:Checklinks)由英文维基百科用户Dispenser所开发的专案,专门为主条目进行检测。

检测连结模式

编辑
模式 编码 解释 动作
运作中 (White) 0 发现连结正在运作中。 没必要运作。
讯息 (Green) 1 连结可能重定向(HTTP Move (redirect))。 连结可能还有效,但需再确认。 如果服务器显示HTTP 301(连结已经被永久改变了位置),则更新此连结。
警告 (Yellow) 2 Link that could pose a problem to users. This includes expiring News sources, subscription required, or low signal to noise of links to text. If the link is expiring ensure that all critical detail are fill in to allow someone to find an offline copy.
试着判断 (Orange) 4 The tool thinks that the link is dead. 404 in redirects or redirection / of the website. Check the link, if dead attempt to use archiveurl with an archived copy from the Internet Archive, otherwise tag with {{dead link}}.
失效连结 (Red) 5 连结确定失效。 Ensure the link is correct and doesn't have any bits of wiki markup. If possible use archiveurl with an archived copy from the Internet Archive, otherwise tag with {{dead link}}.
服务器错误或连接问题 (Blue) 3 Five hundred Server Error or Connection Issue If a Server Error contact the webmaster to fix the problem. If a connection issue check to see if the Whois is still valid.
不良连结 (Purple) 6 Spamlink or Google Cache link Parking links should be removed. Google Cache links should be converted back to the regular link or archiveurl

安装

编辑

您的common.js页面加入以下代码,并更新服务器缓存

$(function () {
	mw.util.addPortletLink(
		"p-tb",
		"https://dispenser.info.tm/~dispenser/cgi-bin/webchecklinks.py?page=" + mw.config.get('wgContentLanguage') + ":" + encodeURIComponent(mw.config.get('wgPageName')),
		"检测链接"
	);
});

在浏览任何页面,点选左方工具底下的CHECKLINKS即可使用。