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

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(Transclude Template:Find sources multi/template directly instead of using preload text)
imported>Mr. Stradivarius
(Pass introlink parameter to Template:Find sources multi/doc/template, add error-tracking categories)
Line 7: Line 7:
  
 
  -->{{#ifeq: {{#if:{{{inarticle|}}}|♪|{{NAMESPACE}}}} | {{ns:0}}  
 
  -->{{#ifeq: {{#if:{{{inarticle|}}}|♪|{{NAMESPACE}}}} | {{ns:0}}  
     | {{error|Error: Please do not use this template in articles.}}<!--
+
     | {{error|Error: Please do not use this template in articles.}}[[Category:Pages with templates in the wrong namespace]][[Category:Find sources multi transclusions with errors]]<!--
  
 
     --- start span tag for the find sources code ---
 
     --- start span tag for the find sources code ---
Line 34: Line 34:
 
     -->{{#if: {{{link1|}}}
 
     -->{{#if: {{{link1|}}}
 
         | {{find sources multi/{{{link1}}} |1= Example |display= {{{display1|}}} | free = {{{free|}}} }}
 
         | {{find sources multi/{{{link1}}} |1= Example |display= {{{display1|}}} | free = {{{free|}}} }}
         | {{error|Error: link1 parameter empty}}
+
         | {{error|Error: link1 parameter empty}}[[Category:Find sources multi transclusions with errors]]
 
       }}<!--
 
       }}<!--
  
Line 41: Line 41:
 
     --- This can't be fixed with #if: statements, as #if: statements make the {{int:dot-separator}} code display wrong. ---
 
     --- This can't be fixed with #if: statements, as #if: statements make the {{int:dot-separator}} code display wrong. ---
  
     -->{{#ifeq: {{{separator}}} | | {{error|Error: separator parameter is present but has no assigned value}} }}<!--
+
     -->{{#ifeq: {{{separator}}} | | {{error|Error: separator parameter is present but has no assigned value}}[[Category:Find sources multi transclusions with errors]] }}<!--
  
 
     --- link 2 ---
 
     --- link 2 ---
Line 259: Line 259:
 
           | inarticle = {{{inarticle|}}}
 
           | inarticle = {{{inarticle|}}}
 
           | free      = {{{free|¬}}}
 
           | free      = {{{free|¬}}}
 +
          | introlink = {{{introlink|}}}
 
           | link1    = {{{link1|<noinclude>link1</noinclude>}}}
 
           | link1    = {{{link1|<noinclude>link1</noinclude>}}}
 
           | link2    = {{{link2|<noinclude>link2</noinclude>}}}
 
           | link2    = {{{link2|<noinclude>link2</noinclude>}}}

Revision as of 09:01, 15 March 2013

Google⧼dot-separator⧽Google Books⧼dot-separator⧽Google Scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽Free Google Images⧼dot-separator⧽Archive.org⧼dot-separator⧽Bing⧼dot-separator⧽Google News recent⧼dot-separator⧽New York Times⧼dot-separator⧽Wikipedia Reference Search⧼dot-separator⧽DuckDuckGo⧼dot-separator⧽VGRS⧼dot-separator⧽Google Newspapers

50px Template documentation

This template produces a series of links to various search interfaces to help find additional reference material for articles. It is based on the {{find sources multi}} meta-template. This template should not be used in articles themselves - see Wikipedia:EL#Links normally to be avoided.

Usage

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).

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 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.
  • The Internet Archive, a digital library of public websites.
  • Bing, Microsoft's flagship search engine.
  • Google News, Google's search engine for news sites. Only recent news stories will be searched for.
  • The website of The New York Times, a highly respected newspaper.
  • Wikipedia Reference Search, a Google search that only searches sites vetted by Wikipedians.
  • DuckDuckGo, a search engine that uses information from crowd-sourced websites (such as Wikipedia) to provide its results.
  • Thibbs' Google RS, a custom Google search engine that limits the search to sites listed in Wikipedia:WikiProject Video games/Sources.
  • Google Newspapers, a search of Google's digital archive of print newspapers.

Examples

  • Default search:
{{Find sources multi/all}}
produces:
Google⧼dot-separator⧽Google Books⧼dot-separator⧽Google Scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽Free Google Images⧼dot-separator⧽Archive.org⧼dot-separator⧽Bing⧼dot-separator⧽Google News recent⧼dot-separator⧽New York Times⧼dot-separator⧽Wikipedia Reference Search⧼dot-separator⧽DuckDuckGo⧼dot-separator⧽VGRS⧼dot-separator⧽Google Newspapers
  • Simple search:
{{Find sources multi/all|Albert Einstein}}
produces:
Google⧼dot-separator⧽Google Books⧼dot-separator⧽Google Scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽Free Google Images⧼dot-separator⧽Archive.org⧼dot-separator⧽Bing⧼dot-separator⧽Google News recent⧼dot-separator⧽New York Times⧼dot-separator⧽Wikipedia Reference Search⧼dot-separator⧽DuckDuckGo⧼dot-separator⧽VGRS⧼dot-separator⧽Google Newspapers
  • Complex search:
{{Find sources multi/all|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}
produces:
Google⧼dot-separator⧽Google Books⧼dot-separator⧽Google Scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽Free Google Images⧼dot-separator⧽Archive.org⧼dot-separator⧽Bing⧼dot-separator⧽Google News recent⧼dot-separator⧽New York Times⧼dot-separator⧽Wikipedia Reference Search⧼dot-separator⧽DuckDuckGo⧼dot-separator⧽VGRS⧼dot-separator⧽Google Newspapers

See also