टेम्पलेट:Internet Archive author
This template uses Lua: |
Internet Archive author is a template to generate links to 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
Usage
संपादन करींThe template is used like this:
==External links== * {{Internet Archive author |sname=Full name}}
- Use the "Full name" without honorifics. For example:
- For E. E. Smith:
|sname=Edward Elmer Smith
(expand abbreviations) - For Abraham Brill:
|sname=Abraham Arden Brill
(include middle name) - For Sir Charles Dilke, 2nd Baronet:
|sname=Charles Dilke
(remove honorifics)
- For E. E. Smith:
- The template can work without sname because it will default to the article title, however this is not recommended because article titles might change in the future for dab reasons. Thus, lock in the search name by hard coding sname.
- If it's returning many false positives (works by other authors), try the sopt=t option to tighten the search. For example:
{{Internet Archive author |sname=Gyula Krúdy|birth=1878|death=1933}}
- Results in many false positives.
{{Internet Archive author |sname=Gyula Krúdy|birth=1878|death=1933|sopt=t}}
- Result has no false negatives and no false positives (good).
- Tightened search has the danger of creating false negatives. Thus always compare, as above, before using sopt=t .. the goal is to have zero false negatives while creating as few false positives as possible. See section below Tips on searching.
- If no birth-death dates are generated in the URL (i.e. missing dates on Wikidata), they can be hard coded in the template using the birth-death options (see below).
- If the name has multiple spellings use the custom search option. Example for Jakob Böhme:
{{Internet Archive author |search=( (Jacob OR Jakob) AND (Böhme OR Bohme OR Behmen OR Boehme) )}}
- More examples in the Custom search and Tips on searching sections below.
- If the person has multiple names, such as multiple pseudonyms, use multiple instances of the template. If the names have commonalities (such as the same last name), try custom search.
Optional parameters
संपादन करीं- sname: Change the search name only. The name used when searching IA.
- Useful when the article title is a shortened version of the name.
- Example for Benjamin W. Wells:
{{Internet Archive author |sname=Benjamin Willis Wells}}
- yields better results. - Example for Benjamin Farjeon:
{{Internet Archive author |sname=Benjamin Leopold Farjeon}}
- yields better results.
- Example for Benjamin W. Wells:
- Or when a refined search is needed:
- Example for Constantine the Great:
{{Internet Archive author|sname=Constantine I}}
- This yields better results. - Example for Olympiodorus of Thebes:
{{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.
- Example for Constantine the Great:
- dname: Change the display name only.
- name: Change both the display & search name. Normally defaults to the page title. Useful in a number of scenarios:
- The page title is the real name of the person, but on Internet Archive it uses their pseudonym.
- Example for Berta Behrens aka "W. Heimburg":
{{Internet Archive author |name=W. Heimburg}}
- Example for Berta Behrens aka "W. Heimburg":
- To search on multiple names such as multiple pseudonyms, use multiple instances of the template. Or see custom search below.
- birth: Change the birth year. Normally defaults to the year found in Wikidata. If no dates are showing in the search string, and there is an available birth date for the article, it means Wikidata is missing. You can either 1. Update Wikidata (recommended) or 2. Hard-code the dates in the template using the birth= and death= options. For updating Wikidata, the Wikidata page for Joseph Conrad shows an example entity that has complete data. For incomplete entities, the Property for birth is P569 and Property for death is P570 and can be added by clicking "Add" at the bottom of the "Statements" section.
- death: Change the death year. See comments for birth.
- Example for Albert Einstein:
{{Internet Archive author |name=Albert Einstein|birth=1879|death=1955}}
- Example for Albert Einstein:
- media: Specify a media collection(s) to search. Default is all of them: texts audio video
- Example for Edward Elgar:
{{Internet Archive author |media=texts audio}}
produces
- Example for Edward Elgar:
- coda: Special message at end.
- Example for Claude Hagège:
{{Internet Archive author |media=texts|coda=(scanned books)}}
produces
- Works by or about Claude Hagège at Internet Archive (scanned books)
- Example for Claude Hagège:
- search: Custom search string. See section below for examples. No other options work when using custom search (except for dname), options must be hand coded in the search string.
- sopt: Search options:
- sopt=t (or sopt=tight):
- This will make a more specific "tight" search reducing false positives, but at the risk of creating false negatives. Always compare results with and without a tight search.
- sopt=w:
- Used when a name contains extended-ascii (ie. accented letters) such as "Stéphane Mallarmé". It will add a wildcard search eg. "St*phane Mallarm*". This is because the IA database has at least 3 different ways to render accented letters, the wildcard will pick up all cases. However it can also result in many false positives so should be used with care, always comparing results with or without "w" and pick the best one. Evidence shows "w" is best choice in about 40% of names that contain accented letters.
- sopt=t (or sopt=tight):
BC dates
संपादन करींCurrently 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 Internet Archive. When setting dates via the options above, leave off AD/BC designator.
Custom search
संपादन करीं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 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:
- For Ælfric of Eynsham, this works:
{{Internet Archive author |search=("Abbot of Eynsham" OR "Ælfric of Eynsham" OR "Aelfric of Eynsham")}}
- ..but this is easier and better results:
{{Internet Archive author |search=( Eynsham AND (Abbot OR Ælfric OR Aelfric ) )}}
- For Basil Valentine:
{{Internet Archive author |search=("Basil Valentine" OR "Basilius Valentinus")}}
- For Aylmer and Louise Maude:
{{Internet Archive author |search=(Maude AND (Aylmer OR Louise))}}
- Searches for both "Aylmer Maude" and "Louise Maude"
- For Saint Augustine:
{{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")}}
Tips on searching
संपादन करींThe goal when searching Internet Archive is to have zero missed works (false negatives or FN) and as few works by other authors (false positives or FP) as it takes to reach the goal of 0 FN. In most searches there will be some FP because it's unavoidable when searching 7+ million works. However the question is how many FP. Typically if the number of FP are 20% or less of the total results it is acceptable.
Here are some techniques to create searches that have 0 FN's and few (though not 0) FPs.
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 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.
- For a 3-word name where each word has multiple possibilities:
|search=( (first OR first) AND (middle OR middle) AND (last OR last) )
- Most of the time there is usually only 1 word that multiple possibilities so something like:
|search=( first AND (last OR last) )
- Date ranges can be added to exclude books outside the range eg.
|search=creator:(("Daniel Noble" OR "Noble Daniel")) AND date:[1820-01-01 TO 1900-01-01])
- This is potentially dangerous if a book is published after the author's death, but works in difficult cases with large numbers of false positives.
- If there are still problems, consider including book titles in the search:
|search=( first AND (last OR last) AND ("book 1" OR "book 2") )
- This technique is prone to false negatives since there may be journals or anthologies not known about ahead of time.
- If there are not too many false positives, simply filter them out using the negative creator switch (-creator). For example:
- Frank Henry Mason:
|search=( Frank AND (Henry OR H.) AND Mason AND (1875 OR 1876) AND -creator:(Plautus OR Holcomb OR Zephyrin OR gordjenkins) )
- Frank Henry Mason:
- In this example, the "-creator:" tells search to eliminate any creators with those names from the search. Note also the inclusion of two birth dates, sometimes Internet Archive records have incorrect birth data and this will match them.
- For a 3-word name where each word has multiple possibilities:
Information
संपादन करीं- For technical notes see the Lua source code.
- The produced URL is Protocol Relative. See WP:PRURL.
- Prior to November 4, 2015, Internet Archive's search engine was Lucene. It is now Elasticsearch (the same engine used at Wikipedia). It is possible to emulate the old Lucene engine by adding
&solr=1
to the end of a search URL.
इहो देखल जाय
संपादन करीं- "Works By" Project to add this template to articles via semi-automated scripts
- External Link Discovery - tool for finding articles in need of this and other author templates.
- {{Internet Archive}} - general purpose IA search not limited to books. Uses a simple search not as accurate.
- {{OL author}} - includes copyright books. OL is a book catalog, not a book repository (an opensource WorldCat)
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Internet Archive author/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |