Template:Find sources documentation: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mr. Stradivarius
don't need the "it is based on Module:Find sources" blurb, as we already have the {{lua}} template
meta>Mr. Stradivarius
add a link to the template configuration module, and display template parameters on this page
Line 1: Line 1:
{{Documentation subpage}}{{{shortcuts|}}}
{{Documentation subpage}}{{{shortcuts|}}}
<includeonly>{{Lua|Module:Find sources}}</includeonly>
<includeonly>{{Lua|Module:Find sources|Module:Find sources/templates/{{{template}}}}}</includeonly>
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->


Line 20: Line 20:


*Default search:
*Default search:
:<code><nowiki>{{</nowiki>{{{template|}}}<nowiki>}}</nowiki></code>
:<code><nowiki>{{</nowiki>{{{template}}}<nowiki>}}</nowiki></code>


:produces:
:produces:


:{{ {{{template|}}} }}
:{{ {{{template}}} }}


*Simple search:
*Simple search:
:<code><nowiki>{{</nowiki>{{{template|}}}<nowiki>|Albert Einstein}}</nowiki></code>
:<code><nowiki>{{</nowiki>{{{template}}}<nowiki>|Albert Einstein}}</nowiki></code>


:produces:
:produces:


:{{ {{{template|}}}|Albert Einstein}}
:{{ {{{template}}}|Albert Einstein}}


*Complex search:
*Complex search:
:<code><nowiki>{{</nowiki>{{{template|}}}<nowiki>|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}</nowiki></code>
:<code><nowiki>{{</nowiki>{{{template}}}<nowiki>|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}</nowiki></code>


:produces:
:produces:


:{{ {{{template|}}}|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}
:{{ {{{template}}}|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}


== See also ==
== See also ==

Revision as of 23:28, 30 September 2014


This template produces a series of links to various search interfaces to help find additional reference material for articles. 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: {{{linkDescriptions}}}

Examples

  • Default search:
{{{{{template}}}}}
produces:
{{ {{{template}}} }}
  • Simple search:
{{{{{template}}}|Albert Einstein}}
produces:
{{ {{{template}}}|Albert Einstein}}
  • Complex search:
{{{{{template}}}|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}
produces:
{{ {{{template}}}|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science}}

See also