This template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
Internet Archive author is a template to generate links to the Internet Archive for works by or about a person. It is similar in purpose to {{Gutenberg author}} and {{Librivox author}} though not limited to authors. Musicians, film directors, etc.. any person or entity with a work on Archive.org
The template is used like this:
==External links==
* {{Internet Archive author |sname=Full name}}
|sname=Edward Elmer Smith
(expand abbreviations)|sname=Abraham Arden Brill
(include middle name)|sname=Charles Dilke
(remove honorifics){{Internet Archive author|sname=Gyula Krúdy|birth=1878|death=1933}}
{{Internet Archive author|sname=Gyula Krúdy|birth=1878|death=1933|sopt=t}}
{{Internet Archive author|search=( (Jacob OR Jakob) AND (Böhme OR Bohme OR Behmen OR Boehme) )}}
{{Internet Archive author|sname=Benjamin Willis Wells}}
—yields better results.{{Internet Archive author|sname=Benjamin Leopold Farjeon}}
—yields better results.{{Internet Archive author|sname=Constantine I}}
—This yields better results.{{Internet Archive author|sname=Olympiodorus}}
—Middle names of "the", "of" etc. are often—though not always—better removed with sname. Test to see which returns the best results.{{Internet Archive author|name=W. Heimburg}}
{{Internet Archive author|name=Albert Einstein|birth=1879|death=1955}}
{{Internet Archive author|media=texts audio}}
produces{{Internet Archive author|media=texts|coda=(scanned books)}}
producesCurrently the script does not automatically determine if a date is AD or BC e.g. Category:63 BC births. This won't matter too much when searching the Internet Archive. When setting dates via the options above, leave off AD/BC designator.
It is possible to use a custom search. This is mainly useful when a person is known by multiple names, but also other scenarios (see examples).
A custom search is surrounded by () parenthesis when passed to the template. If the Internet Archive returns an error about the 'search engine not working and try again later', it typically means the search parameter isn't enclosed in ()'s or the search string is otherwise malformed or has a syntax error.
Example custom searches:
{{Internet Archive author|search=("Abbot of Eynsham" OR "Ælfric of Eynsham" OR "Aelfric of Eynsham")}}
{{Internet Archive author|search=( Eynsham AND (Abbot OR Ælfric OR Aelfric ) )}}
{{Internet Archive author|search=("Basil Valentine" OR "Basilius Valentinus")}}
{{Internet Archive author|search=(Maude AND (Aylmer OR Louise))}}
{{Internet Archive author|search=("Bishop of Hippo" OR "Saint Augustine" OR "Augustine, Saint" OR "Aurelius Augustine" OR "Aurelius, Augustine" OR "Saint Austin" OR "Austin, Saint")}}
These are some advanced techniques for difficult and unusual situations.
1. Many people have multiple names (birth name, pseudonyms, abbreviated names). Create template entries for each name, including a mirror template for each one using sopt=t. Preview the article—for each template entry click through to the Internet Archive and note the total number of results at the top of the page. Scroll through and look for correct results and see which gives the most. Then scroll through and look for false positives (they usually appear towards the end of the list. This works best in the non-Beta site since search terms are highlighted in the search results.) Often if the sopt=t and non sopt=t entry give very different total result numbers, then sopt=t is the best choice. Once the best template entry is determined, delete the rest from the article and save. It's important to do this preview method in the article itself and not a temp page so that dates work correctly.
2. If technique #1 doesn't work you may need to build a custom search. See the custom search section for examples, but here are some general rules of thumb. Keep in mind searches are literal strings, and if the search term has multiple words it should be surrounded in quotes.
|search=( (first OR first) AND (middle OR middle) AND (last OR last) )
|search=( first AND (last OR last) )
|search=creator:(("Daniel Noble" OR "Noble Daniel")) AND date:[1820-01-01 TO 1900-01-01])
|search=( first AND (last OR last) AND ("book 1" OR "book 2") )
|search=( Frank AND (Henry OR H.) AND Mason AND (1875 OR 1876) AND -creator:(Plautus OR Holcomb OR Zephyrin OR gordjenkins) )
|search=( ("Charles Sturt" OR "Surt, Charles") AND NOT (university OR brabazon) )
&solr=1
to the end of a search URL.