Template talk:Dlw

From Wikipedia, the free encyclopedia

{{inline}}

This template is within the scope of WikiProject Inline Templates, a collaborative effort to improve and manage Wikipedia's inline footnote, cleanup and dispute templates. If you would like to participate, you can visit the project page, where you can join the project and see a list of open tasks.
Some discussion of this template may take place at the project's talk page, rather than here.

Contents

[edit] Use

Use {{dlw|dead link address|dead link caption}}

I.e. {{dlw|http://free.oszoo.org|OS Zoo webpage}} produces:


OS Zoo webpage at the Internet Archive Wayback Machine

See dead link.

[edit] New format

perhaps we should change this to something you would put after a link, i.e.

http://foomatic.org (dead link, view on the Wayback Machine)

or

http://foomatic.org (dead link, view on the Wayback Machine)

--67.1.157.21 22:30, 5 December 2005 (UTC)

Using the words "view" or "link here instead" as link text is not very good for accessibility. Why not try:

Image:Link.gif http://foo.com/bar is now a dead link; please use this archived version of The Bar Foo Page from the wayback machine.

Though I must say, not sure about the colours. – MrWeeble Talk Brit tv 19:43, 20 December 2005 (UTC)

[edit] I made an inline version

This version just doesn't flow for in-line links, e.g., from IBM:

...to any moral issues. The credibility of Black's book has been questioned, as has its claim that the Holocaust would have been impossible without Dehomag's data processing systems. The author has responded to these claims at the Internet Archive Wayback Machine. As of 2004 IBM's possible complicity in the Holocaust is the subject of at least one unresolved lawsuit. IBM has donated more than 10,000 pages of archived documents...

Yuck!

I call the new template {{dlw-inline}}. It looks like this:

...to any moral issues. The credibility of Black's book has been questioned, as has its claim that the Holocaust would have been impossible without Dehomag's data processing systems. The author has responded to these claims [dead linkhistory]. As of 2004 IBM's possible complicity in the Holocaust is the subject of at least one unresolved lawsuit. IBM has donated more than 10,000 pages of archived documents...

Enjoy. --James S. 05:46, 17 January 2006 (UTC)

[edit] Wayback URL

I changed "/*/" to "/2/" in the Wayback Machine URL. This causes the most recent available version of the page to be displayed, instead of going to the menu of dates. ("/1/" gets the final version from the 1990s, if there is one, or the first from the 2000s if there isn't.)

This has been The Right Thing in every case I've seen so far. --James S. 20:23, 18 January 2006 (UTC)

I'm not so sure about this. In many cases the most recently archived version of a page is a version with the meaningful content removed, so it's preferable to give the user a menu of dates to choose from. Here is one example from an article on the 2003 EU accession treaty; the dlw template did not improve matters but merely provided this useless URL: http://web.archive.org/web/2/http://www.orgalime.org/positions/enlargement.htm. I have already fixed that particular page. --Mathew5000 01:55, 29 May 2006 (UTC)

[edit] Problems with '=' character in URLs

dlw and dlw-inline break if the URL contains '=' character. An example: [The dinosaur hunters {{{title}}}] [dead linkdinosaur hunters history]. —Preceding unsigned comment added by 85.140.3.248 (talk • contribs)

Uh oh. I'll ask about this at the villiage pump technical. --James S. 23:02, 20 January 2006 (UTC)

Solution: if the URL has '=' in it, surround it in <nowiki>...</nowiki> tags:

The example: {{dlw-inline|<nowiki>http://www-pso.adm.monash.edu.au/news/Story.asp?ID=60&SortType=7</nowiki>|The dinosaur hunters}}

Gives: [http://www-pso.adm.monash.edu.au/news/Story.asp?ID=60&SortType=7 The dinosaur hunters] [dead linkhttp://www-pso.adm.monash.edu.au/news/Story.asp?ID=60&SortType=7 history]

That works. Certainly all bots should check for and do this if '=' in URL.

--James S. 23:26, 20 January 2006 (UTC)

I think if you replace "=" with "%3D" it should work as well. -- Netoholic @ 23:36, 20 January 2006 (UTC)
If you need an = in the parameter text, give the parameter name explicitly. For instance, {{sometemplate|1=blabla=foobar}} instead of {{sometemplate|blabla=foobar}} which is interpreted as giving a parameter named "blabla" with text "foobar". --Brion 00:29, 21 January 2006 (UTC)
For this template, it might be best, while it's not used on too many pages, to specifically give the parameters names. For example, instead of {{{1}}}, use {{{url}}}; instead of {{{2}}} use {{{text}}} or {{{desc}}} (description). This avoids confusion, since, on this template, the {{{2}}} text is actually displayed before the {{{1}}} link. -- Netoholic @ 00:45, 21 January 2006 (UTC)
url and title provide compatibility with other templates. If no-one objects I'll have a hack at it in a wee while. HTH HAND —Phil | Talk 14:55, 23 January 2006 (UTC)
I have now added the parameter names. I have also added a history link, because it seems impossible to reach the history from the page unless you have detailed knowledge of manipulating Internet Archive URLs. Be aware that this will not actually work if there is no search history in the Internet Archive: our example on the template page itself is an example! HTH HAND —Phil | Talk 15:20, 23 January 2006 (UTC)

[edit] Image and punctuation

Do we need to include Image:Link.gif in this template? As the image is clickable, it may introduce confusion. jareha (comments) 17:05, 3 April 2006 (UTC)

I've removed the period at the end of this template. It might have been needed in some cases, but what of cases where it wasn't? jareha (comments) 17:05, 3 April 2006 (UTC)

I removed the image. I don't find it helpful in any way and it makes the external links sections look messy. --Randy 19:20, 21 May 2006 (UTC)
Thanks for that change. I wasn't bold enough to make it myself. jareha (comments) 21:43, 21 May 2006 (UTC)

[edit] Better tone

It seems that the present wording is informal, especially the "use...instead" and that it would be nice to have a link to the original (dead) page. A better version might be "[example.com] ([available at Internet Archive])". Jason McHuff 06:46, 12 February 2007 (UTC)

Agreed, maybe something like {{Wayback}} template? I'm think we should merge all these Internet Archive templates.—Dispenser 21:08, 16 March 2007 (UTC)

[edit] Template:Wayback merge

The ongoing merge with Template:Wayback should probably be going into the latter rather than into this template, which has a very unituitive name. But, the code here (as of my timestamp) is clearly better than that at {{wayback}}. — SMcCandlish [talk] [cont] ‹(-¿-)› 23:35, 22 April 2007 (UTC)