Difference between revisions of "Template:Find sources notice"
imported>Mr. Stradivarius (add Google News and Google Newspapers search links per update to Template:Find sources) |
imported>ProcrastinatingReader (Per Wikipedia:Templates for discussion/Log/2020 October 4#Reference search tools talk page templates, added {{being deleted}} (XFDcloser)) |
||
| (9 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <noinclude>{{Being deleted|2020 October 4|Reference_search_tools_talk_page_templates|merge=Template:Talk header}}</noinclude>{{tmbox |
| − | |||
| − | |||
| − | |||
| − | |||
| type = notice | | type = notice | ||
| image = | | image = | ||
| Line 286: | Line 282: | ||
--- end tmbox --- | --- end tmbox --- | ||
| − | -->}}<noinclude> | + | -->}}<!-- |
| + | -->{{#if: {{{search1|}}}{{{search1_1|}}}{{{search1_2|}}}{{{search1_3|}}}{{{search1_4|}}}{{{search1_5|}}}{{{search2|}}}{{{search2_1|}}}{{{search2_2|}}}{{{search2_3|}}}{{{search2_4|}}}{{{search2_5|}}}{{{search3|}}}{{{search3_1|}}}{{{search3_2|}}}{{{search3_3|}}}{{{search3_4|}}}{{{search3_5|}}}{{{search4|}}}{{{search4_1|}}}{{{search4_2|}}}{{{search4_3|}}}{{{search4_4|}}}{{{search4_5|}}}{{{search5|}}}{{{search5_1|}}}{{{search5_2|}}}{{{search5_3|}}}{{{search5_4|}}}{{{search5_5|}}}{{{search6|}}}{{{search6_1|}}}{{{search6_2|}}}{{{search6_3|}}}{{{search6_4|}}}{{{search6_5|}}}{{{search7|}}}{{{search7_1|}}}{{{search7_2|}}}{{{search7_3|}}}{{{search7_4|}}}{{{search7_5|}}}{{{search8|}}}{{{search8_1|}}}{{{search8_2|}}}{{{search8_3|}}}{{{search8_4|}}}{{{search8_5|}}}{{{search9|}}}{{{search9_1|}}}{{{search9_2|}}}{{{search9_3|}}}{{{search9_4|}}}{{{search9_5|}}}{{{search10|}}}{{{search10_1|}}}{{{search10_2|}}}{{{search10_3|}}}{{{search10_4|}}}{{{search10_5|}}} | ||
| + | | [[Category:Find sources notice templates with deprecated parameters]] | ||
| + | }}<!-- | ||
| + | -->{{#if: {{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{search1_2|}}}{{{search1_3|}}}{{{search1_4|}}}{{{search1_5|}}} | ||
| + | | [[Category:Find sources notice templates with complex searches]] | ||
| + | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 10:29, 12 October 2020
| This template is currently being merged with Template:Talk header. This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following [[Wikipedia:Templates for discussion/Log/2020 October 4#Reference_search_tools_talk_page_templates|this discussion initiated on Template:YMD to ISO]] at Templates for discussion. Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging. |
| Sources for development of this article may be located at "Find sources notice" – news⧼dot-separator⧽newspapers⧼dot-separator⧽books⧼dot-separator⧽scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽free images |
Template:Find sources notice incorporates the styling of the talk page message box meta-template {{Tmbox}} and the coding of the template {{Find sources multi}} to provide an easy way to tag an article talk page namespace with Google links to potential sources for the article. It allows up to ten searches in the message box, and each search can have up to five search terms. Per Wikipedia:EL#Links normally to be avoided, this template should not be used in article namespace.
Searching
Searching works the same way for each of the ten searches. The first parameter for each search is the main search term, which will be treated as a literal string if multi-part (e.g. Albert Einstein will be searched as the single string "Albert Einstein" not "Albert" and "Einstein" separately).
Optional subsequent parameters (up to 4) are additional search terms. They can be enclosed in double quotation marks, preceded by an unspaced - (hyphen) to exclude them from the search results, or both (e.g. -"Marilyn Monroe" to exclude matches containing the phrase "Marilyn Monroe", but not either name by itself, from the search results). You do not need to add -wikipedia, as the template automatically does this for you. Also, there is no need to add words in plural form unless irregular, as the search interface will match (for example) billiards as well given a search term of billiard.
If no parameters are given, only one search is made and the name of the article is passed as the search string. Note that this may or may not be desirable with disambiguated article names (if the Wikipedia disambiguator is sensible, however, it may actually help refine the search results). In addition, Google News can be set to return only free news articles; see #Parameters for implementation details.
Search engines
The template includes links to the following search engines:
- Google, the flagship search engine from Google Inc.
- Google News, Google's search engine for news sites.
- Google Newspapers, a search of Google's print newspaper archive
- Google Books, Google's search engine for books.
- Google Scholar, Google's search engine for academic papers and other scholarly research.
- JSTOR, an online library containing digitised versions of academic journals. Requires a subscription.
- Google Images, Google's search engine for images. Only images compatible with Wikipedia's licensing are included.
Usage
- Default search
{{Find sources notice}}
- Custom search
{{Find sources notice|custom search term}}
- Complex search
{{Find sources notice|search term 1|search term 2|search term 3|search term 4|search term 5}}
- Two searches
{{Find sources notice|search1=search 1|search2=search 2}}
- All parameters
Show all parameters
|
|---|
{{find sources notice
| small =
| free =
| 1 =
| 2 =
| 3 =
| 4 =
| 5 =
| search2 =
| search2_2 =
| search2_3 =
| search2_4 =
| search2_5 =
| search2_free =
| search3 =
| search3_2 =
| search3_3 =
| search3_4 =
| search3_5 =
| search3_free =
| search4 =
| search4_2 =
| search4_3 =
| search4_4 =
| search4_5 =
| search4_free =
| search5 =
| search5_2 =
| search5_3 =
| search5_4 =
| search5_5 =
| search5_free =
| search6 =
| search6_2 =
| search6_3 =
| search6_4 =
| search6_5 =
| search6_free =
| search7 =
| search7_2 =
| search7_3 =
| search7_4 =
| search7_5 =
| search7_free =
| search8 =
| search8_2 =
| search8_3 =
| search8_4 =
| search8_5 =
| search8_free =
| search9 =
| search9_2 =
| search9_3 =
| search9_4 =
| search9_5 =
| search9_free =
| search10 =
| search10_2 =
| search10_3 =
| search10_4 =
| search10_5 =
| search10_free =
}}
|
Parameters
| Parameter name | Parameter aliases | Description |
|---|---|---|
small |
Toggles the message box from standard size to small if |small=yes.
| |
free |
If |free=yes is added, Google News will only return free as in beer search results for all searches. To set only for individual searches, use the searchn_free parameters.
| |
1 |
search1, search1_1 |
The main search term for the first search. This parameter may be referenced either implicitly or explicitly - see below. |
2, 3, 4, 5 |
search1_2, search1_3, search1_4, search1_5 |
Additional search terms for the first search. Each of the five unnamed parameters may be referenced implicitly or explicitly. For example, |3= typically will be referenced implicitly by putting the value (such as |pqr ) in the third position among the unnamed parameter definitions. Alternatively, |3= may referenced explicitly, such as with |3=pqr.
|
searchn |
searchn_1 |
The main search term for the nth search. For example, search2 is the main term for the second search, search3 is the main term for the third search, etc. The maximum value is search10.
|
searchn_n |
Additional search terms for the nth search. For example, search2_2 is the second search term for the second search, search2_3 is the third search term for the second search, search3_2 is the second search term for the third search, and search3_3 is the third search term for the third search. The maximum value is searchn_5. This means that the maximum value for the maximum search number is search10_5.
| |
searchn_free |
If this parameter is set to "yes", then Google News will return only free (as in beer) search results for the nth search. For example, if |search1_free=yes, all the Google News results from the first search will be free. If |search2_free=yes, then all the Google News results from the second search will be free, and so on. The maximum value is search10_free.
|
Examples
| Default search | |||
|---|---|---|---|
| Code | {{find sources notice}}
| ||
| Result |
| ||
| Custom search | |||
|---|---|---|---|
| Code | {{find sources notice|Albert Einstein}}
| ||
| Result |
| ||
| Complex search | |||
|---|---|---|---|
| Code | {{find sources notice|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}
| ||
| Result |
| ||
| Two searches | |||
|---|---|---|---|
| Code | {{find sources notice|search1=Albert Einstein|search2=Marilyn Monroe}}
| ||
| Result |
| ||
| Two complex searches | |||
|---|---|---|---|
| Code | {{find sources notice|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science|search2=Marilyn Monroe|search2_2="Clark Gable"|search2_3=screenplay}}
| ||
| Result |
| ||
| Two searches, both using free Google News results | |||
|---|---|---|---|
| Code | {{find sources notice|search1=Albert Einstein|search2=Marilyn Monroe|free=yes}}
| ||
| Result |
| ||
| Two searches with only the second using free Google News results | |||
|---|---|---|---|
| Code | {{find sources notice|search1=Albert Einstein|search2=Marilyn Monroe|search2_free=yes}}
| ||
| Result |
| ||
| Ten searches | |||
|---|---|---|---|
| Code | {{find sources notice|search1=Search 1|search2=Search 2|search3=Search 3|search4=Search 4|search5=Search 5|search6=Search 6|search7=Search 7|search8=Search 8|search9=Search 9|search10=Search 10}}
| ||
| Result |
| ||
See also
- {{Find sources notice}} - styled article talk header template for article talk pages
- {{Find sources notice 2}} - talk header template with more comprehensive search options
- {{Find sources}} - main find sources template
- {{Find video game sources}} - includes a link to Gwern's Google RS
- {{Refideas}} - template to include links to possible sources
- {{Search}} - the original search template on which this template was based
- {{Search for}} - a multi-purpose search engine sidebar
- Help:Find sources
- Wikipedia:Template messages/Cleanup/Verifiability and sources
- Wikipedia:WikiProject User scripts/Scripts/Search links
| The above documentation is transcluded from Template:Find sources notice/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |