Difference between revisions of "Template:Find sources multi/gnewspapers"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
m (Protected Template:Find sources multi/gnewspapers: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
imported>Izno
 
Line 1: Line 1:
[http://www.google.com/search?&q={{urlencode:"{{#if: {{{1|}}} | {{{1}}} | {{SUBPAGENAME}} }}"}}{{#if: {{{2|}}} | +{{urlencode:{{{2}}}}} }}{{#if: {{{3|}}} | +{{urlencode:{{{3}}}}} }}{{#if: {{{4|}}} | +{{urlencode:{{{4}}}}} }}{{#if: {{{5|}}} | +{{urlencode:{{{5}}}}} }}+site:news.google.com/newspapers&source=newspapers {{#if: {{{display|}}} | {{{display}}} | Google Newspapers }}]<noinclude>
+
[https://www.google.com/search?&q={{urlencode:"{{#if: {{{1|}}} | {{{1}}} | {{SUBPAGENAME}} }}"}}{{#if: {{{2|}}} | +{{urlencode:{{{2}}}}} }}{{#if: {{{3|}}} | +{{urlencode:{{{3}}}}} }}{{#if: {{{4|}}} | +{{urlencode:{{{4}}}}} }}{{#if: {{{5|}}} | +{{urlencode:{{{5}}}}} }}+site:news.google.com/newspapers&source=newspapers {{#if: {{{display|}}} | {{{display}}} | Google Newspapers }}]<noinclude>
  
 
{{documentation|Template:Find sources multi/doc/links}}
 
{{documentation|Template:Find sources multi/doc/links}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:18, 10 September 2016

Google Newspapers

Template documentation[view] [edit] [history] [purge]

This template provides a search link to Google's newspaper archive search. It is part of the {{find sources multi}} meta-template, but it can also be used on its own. This template should not be used in articles themselves - see Wikipedia:EL#Links normally to be avoided.

Usage

{{Find sources multi/gnewspapers|search term 1|search term 2|search term 3|search term 4|search term 5|display=custom display text}}

The first parameter 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, 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).

Examples

  • Default search:
{{Find sources multi/gnewspapers}}
produces:
Google Newspapers
  • Simple search:
{{Find sources multi/gnewspapers|Albert Einstein}}
produces:
Google Newspapers
  • Complex search:
{{Find sources multi/gnewspapers|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}
produces:
Google Newspapers
  • Custom display text
{{Find sources multi/gnewspapers|Albert Einstein|display=Custom display text}}
produces:
Custom display text

See also