Wikipedia:Requests for comment/Dead url parameter for citations

Source: Wikipedia, the free encyclopedia.
The following is a closed discussion of the proposal. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

Proposal has unopposed support after 19 days listing. Discussion has now ceased. There is clear consensus to implement adding a |deadurl= parameter to the citation templates. SilkTork *Tea time 10:44, 9 June 2011 (UTC)[reply]

This RfC is to add a |deadurl= parameter to the citation templates. This is so the readers and editors can differentiate between a dead original source link |deadurl=yes or a pre-emptively archived one |deadurl=no. Currently there are two reasons an |archiveurl= parameter is added – 1) dead link replacement (example) and 2) pre-emptive archiving (example). However, there is no way to tell the two edits apart if they are not somehow marked. The status quo until recently has been to treat |archiveurl= as an indication that the url is dead. But as linkrot is becoming a more pressing matter (see Wikipedia:WikiProject External links/Webcitebot2), more editors are archiving material pre-emptively. This is a good cause, but it leaves all citations showing the archived url as the main link indiscriminately. Thus, I believe the need for differentiating the two cases when archive urls are present – whether the original links is a dead url or a live url. I do not currently propose to change the display of citations without a |deadurl= parameter. In fact, only |deadurl=no would affect the display.

The problem with archiving live links is that the main link from the citation is to the archived version (see below). This means clicking the link will take the reader to the archiving service (WebCite, Wayback, etc.) and not the actual original url. The archiving services are notoriously slow and sometimes unreliable. Obviously, the editor may have intended this behaviour, so adding |deadurl=yes or leaving the citation intact would keep the citation linking to the archived version. But most of pre-emptive archiving does not require linking to the archived version.

There are several bots and tools that have been approved to detect dead links reasonably well. They can be easily modified to use the |deadurl=yes when archiving a dead link. Similarly, there are several tools for pre-emptive archiving. They can also be easily modified to use |deadurl=no. (Note that bots will never change "deadurl=yes" to "no". Firstly, live link detection is unreliable as opposed to dead link detection and, secondly, they would not know is the editor intended to show the archived version.) As time goes on, users will add more archived links and more links will rot. Both cases are easily covered by archiving bots – marking the link as |deadurl=yes. For pre-emptive archiving, the editor can themselves add |deadurl=no or this will be done by the tool they use. Of course, many citations won't have the parameter; but as I do not propose to change the status quo display for a missing parameter, the citation display will remain unaffected and cause no issues.

Current behaviour
{{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |archiveurl=http://replay.web.archive.org/20050312094334/http://example.org/ |archivedate=2005-03-12}}
Smith, John. "Example web-page". Archived from the original on 2005-03-12.
Proposed behaviour
{{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |archiveurl=http://replay.web.archive.org/20050312094334/http://example.org/ |archivedate=2005-03-12}}
Smith, John. "Example web-page". Archived from the original on 2005-03-12.
{{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |archiveurl=http://replay.web.archive.org/20050312094334/http://example.org/ |archivedate=2005-03-12 |deadurl=no}}
Smith, John. "Example web-page". Archived from the original on 2005-03-12.
{{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |archiveurl=http://replay.web.archive.org/20050312094334/http://example.org/ |archivedate=2005-03-12 |deadurl=yes}}
Smith, John. "Example web-page". Archived from the original on 2005-03-12.
{{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |archiveurl=http://replay.web.archive.org/20050312094334/http://example.org/ |archivedate=2005-03-12 |deadurl=something else}}
Smith, John. "Example web-page". Archived from the original on 2005-03-12.
{{Dead link}} simplification and moving closer to the url

Per comment below, added 17:38, 30 May 2011 (UTC). A citation without |archiveurl= parameter but with |deadurl=yes will display a {{Dead link}} template next to the url. This will make placing {{Dead link}} after the citation unnecessary. The change can be easily implemented by bot. This would also make syntax consistent with above and reduce workload in case archive parameters are added in the future.

Current usage: {{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |accessdate=30-05-2008}} {{Dead link}}
Smith, John. "Example web-page". Retrieved 30-05-2008. [dead link]
Proposed syntax: {{Cite web |url=http://example.org |title=Example web-page |author=Smith, John |accessdate=30-05-2008 |deadurl=yes}}
Smith, John. "Example web-page" [dead link]. Retrieved 30-05-2008.
Discussion

As nom. —  

TALK 07:34, 21 May 2011 (UTC)[reply
]

Looks good, very good in fact. Can you clarify one thing: that |deadurl= with no value will be equivalent to |deadurl=no? Also I've checked existing usage from March 2011 dump and there are 9900 yes, 790 no, and about 15 other values that I'll sort out manually. Rjwilmsi 12:07, 21 May 2011 (UTC)[reply]
Any non-documented value would be treated the same way as not setting the parameter at all, just to be sure. I don't think we need additional cases for now, so we could categorize the page as problematic or show an error for incorrect usage? Also the dump had more uses than I thought it would. —  
TALK 15:08, 21 May 2011 (UTC)[reply
]
I think it is OK if people think this is a significant problem, though I haven't run across it as a problem myself. My only worry would be that this will be one more mysterious parameter that uninitiated users might not realise they don't normally have to bother with, and we have too many of those already, such as "publisher" in "cite news", which editors constantly think they have to fill in with something, even though in the vast majority of cases it is unnecessary. -- Alarics (talk) 12:16, 21 May 2011 (UTC)[reply]
It is only needed if archive parameters are used; in fact, it only makes a difference if the archived urls are pre-emptive ones and the actual links are live. Since |archiveurl= is used by more experienced editors anyway, I think this optional parameter will not cause confusion. —  
TALK 15:27, 21 May 2011 (UTC)[reply
]
OK well then just go ahead and do it. -- Alarics (talk) 21:20, 21 May 2011 (UTC)[reply]
The above discussion is preserved as an archive of the proposal. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.