Jump to content

Template talk:Internet Archive

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


Pesky persistent italics[edit]

The "name=" field will display as all italics. You may wish to have part of the name displayed in standard type. After trial and error, I found a way which works. Someone who knows more about HTML than I do may have a better method, but this works: If you place a ' ' somewhere in the name it will cancel the italics. If you place another ' ' further on, it will once again display italics. However, if you place a ' ' immediately after "name=", it will not cancel the italics. In order to fool the template into thinking that there is another letter before the initial ' ', you have to insert a space before the ' '. Alas, a standard space (i.e. ASCII 32) will not work. You have to use the other ASCII space which is 255. In Windows you can insert a 255-space with ALT+255. I don't know how to do it on a Mac but I suggest you look in Help:Special symbols. When I get to a Mac, I'll try to find out. If you'd like to see an example, you can see how I used this method at John Gribbel#Politics. Mike Hayes (talk) 20:26, 14 October 2013 (UTC)[reply]

The way you insert ALT+255 into your document in Mac, you choose "Unicode Hex Input" from the drop-down input menu at the upper right in the menu bar - that's the flag symbol. (If it isn't present you will have to enable it in the Input menu in "System Preferences". Click on "Open International" to access that option.) To insert an ASCII-255-equivalent space, hold down the Option key and type 00a0. Mike Hayes (talk) 00:51, 15 October 2013 (UTC)[reply]
The automatic application of italics that was removed in January 2017 following the discussion above has now been re-introduced. I think the argument above is still valid, and the recent change ought to be reverted. -- Michael Bednarek (talk) 04:28, 9 April 2019 (UTC)[reply]
Yes, it seems odd to force italics when not necessarily everything linked to is going to require it. Individual songs, for example. --tronvillain (talk) 16:49, 11 January 2020 (UTC)[reply]

Resultant url redirects[edit]

I used this template to replace

https://archive.org/stream/southafricatrans08cres/southafricatrans08cres#page/153/mode/1up

with

{{Internet Archive|id=southafricatrans08cres|name=South Africa and the Transvaal war|page=153}}

It produces this url:

https://archive.org/stream/southafricatrans08cres#page/n153/mode/2up

which looks fine, but redirects to

https://archive.org/stream/southafricatrans08cres#page/104/mode/2up


What's going on? --Auric talk 00:38, 31 August 2018 (UTC)[reply]

Scraping metadata from the IA page?[edit]

Could a LUA script get metadata from the IA page? A call like:

{{Internet Archive |handbuchderdrog02buchgoog |page=337 |scrape=yes}}

could then result in:

Gustav Adolf Buchheister (1891). "Handbuch der Drogisten-praxis: Ein Lehr- und Nachschlagebuch für Drogisten" (in German). J. Springer. p. 337., at the Internet Archive

— Preceding unsigned comment added by 2001:8a0:5e58:9a00:b5e2:bf0d:d8d4:d0df (talk) 11:45, 17 April 2021 (UTC)[reply]

Registration required parameter[edit]

Often accessing a book in the Internet Archive requires free registration. {{Cite book}} has a |url-access parameter which, if set to "registration", adds a gray lock symbol after the book title link indicating "Free registration required". Can a similar parameter be added to {{Internet Archive}}? —Bruce1eetalk 09:06, 7 July 2024 (UTC)[reply]

I implemented you suggestion in the sandbox and its effect can be seen in examples 1 and 1a of the test cases. -- Michael Bednarek (talk) 12:35, 7 July 2024 (UTC)[reply]
Thanks for picking up my request. The changes you made in the sandbox appear to be working nicely and you've tested all possible scenarios with and without the new "url-access" parameter.
Just one small point. {{Internet Archive/sandbox}} with the "url-access" parameter displays an up arrow in front of the lock symbol:
{{Internet Archive/sandbox|alicesadventures19002gut|''Alice's Adventures Under Ground'' (manuscript) |url-access=registration}}
whereas {{cite book}} does not:
{{cite book |url=https://archive.org/details/alicesadventures19002gut |title=Alice's Adventures Under Ground ''(manuscript)'' |publisher=Macmillan and Co. |url-access=registration}}
Any idea why that would be? I think the way {{cite book}} does it looks cleaner. But it's not a big deal. What you've done is a great improvement, and I'd be happy to see these changes being implemented. —Bruce1eetalk 13:38, 7 July 2024 (UTC)[reply]
The symbol in question, , is an external link icon and indicates that the link is not an internal Wikipedia link. I was not aware of this behaviour by {{cite book}} (dropping that icon) and I raised this at Help talk:Citation Style 1#External link indicator. Apparently, the rationale is not to overload the output with icons. Making this template, {{Internete Archive}}, conform to that behaviour requires surprisingly extensive code changes: the construction of the URL, because it precedes the url-access icon, needs to be duplicated with and without the external link icon. I don't agree with the rationale to drop the external link icon, so I'm reluctant to implement that. -- Michael Bednarek (talk) 05:00, 8 July 2024 (UTC)[reply]
Don't worry about doing that, it's not worth the effort. I think what you've done is just fine. Of course the template documentation would have to be updated to include this new parameter. —Bruce1eetalk 06:24, 8 July 2024 (UTC)[reply]
I'm going to wait another day or two to see whether anyone else pipes in; then I will also update the documentation. -- Michael Bednarek (talk) 07:11, 8 July 2024 (UTC)[reply]