Template:Find sources documentation: Difference between revisions
meta>Mr. Stradivarius don't need the "it is based on Module:Find sources" blurb, as we already have the {{lua}} template |
m 20 revisions imported |
||
(15 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}}{{{shortcuts|}}} | {{Documentation subpage}} | ||
<includeonly>{{Lua|Module:Find sources}}</includeonly> | {{{shortcuts|}}}<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. --> | ||
{{#if: {{{docIntro|}}} | {{{docIntro}}} | This template produces a series of links to various search interfaces to help find additional reference material for articles. }} {{#if: {{{isUsedInMainspace|}}} | | This template should not be used in articles themselves - see [[Wikipedia:EL#Links normally to be avoided]]. }} | {{#if: {{{docIntro|}}} | {{{docIntro}}} | This template produces a series of links to various search interfaces to help find additional reference material for articles. }} {{#if: {{{isUsedInMainspace|}}} | | This template should not be used in articles themselves - see [[Wikipedia:EL#Links normally to be avoided]]. }} | ||
== Usage == | == Usage == | ||
The first parameter is the main search term, which will be treated as a [[literal string]] if multi-part (e.g. <code>Albert Einstein</code> will be searched as the single string "Albert Einstein" not "Albert" and "Einstein" separately). | The first parameter is the main search term, which will be treated as a [[literal string]] if multi-part (e.g. <code>Albert Einstein</code> 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 <code>-</code> (hyphen) to exclude them from the search results, or both (e.g. <code>-"Marilyn Monroe"</code> to exclude matches containing the phrase "Marilyn Monroe", but not either name by itself, from the search results). You do ''not'' need to add <code>-wikipedia</code>, 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''. | Optional subsequent parameters (up to 4) are additional search terms. They can be enclosed in double quotation marks, preceded by an unspaced <code>-</code> (hyphen) to exclude them from the search results, or both (e.g. <code>-"Marilyn Monroe"</code> to exclude matches containing the phrase "Marilyn Monroe", but not either name by itself, from the search results). You do ''not'' need to add <code>-wikipedia</code>, 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 | If no parameters are given, the name of the current subpage is used as the search string. If the current subpage has a disambiguator in parentheses, e.g. [[Happy Birthday (Stevie Wonder song)]], then the main part of the page name will be quoted and the disambiguation text will follow, like <code>"Happy Birthday" Stevie Wonder song</code>. You can specify that another title be used by using the <code>title</code> parameter. | ||
== Search engines == | == Search engines == | ||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<noinclude>{{Notice|title=Don't panic!|This section looks broken until it is transcluded at [[Template:Find sources]].}}</noinclude> | |||
*Default search: | *Default search: | ||
:<code><nowiki>{{</nowiki>{{{template | :<code><nowiki>{{</nowiki>{{{template}}}<nowiki>}}</nowiki></code> | ||
:produces: | :produces: | ||
:{{ {{{template | :{{ {{{template}}} }} | ||
*Simple search: | *Simple search: | ||
:<code><nowiki>{{</nowiki>{{{template | :<code><nowiki>{{</nowiki>{{{template}}}<nowiki>|Albert Einstein}}</nowiki></code> | ||
:produces: | :produces: | ||
:{{ {{{template | :{{ {{{template}}}|Albert Einstein}} | ||
*Complex search: | *Complex search: | ||
:<code><nowiki>{{</nowiki>{{{template | :<code><nowiki>{{</nowiki>{{{template}}}<nowiki>|Albert Einstein|physics OR cosmology|-"Marilyn Monroe"|relativity|science}}</nowiki></code> | ||
:produces: | :produces: | ||
:{{ {{{template | :{{ {{{template}}}|Albert Einstein|physics OR cosmology|-"Marilyn Monroe"|relativity|science}} | ||
(Note that Google and many other search engines use capitalized boolean operators "OR" and "AND".) | |||
*Custom title search: | |||
:<code><nowiki>{{</nowiki>{{{template}}}<nowiki>|title=Happy Birthday (Stevie Wonder song)}}</nowiki></code> | |||
:produces: | |||
:{{ {{{template}}}|title=Happy Birthday (Stevie Wonder song)}} | |||
== See also == | == See also == | ||
* {{Tl|Find sources notice}} - styled article talk header template for article talk pages | * {{Tl|Find sources notice}} - styled article talk header template for article talk pages | ||
* {{Tl|Find sources 2}} - template with more | * {{Tl|Find sources notice 2}} - talk header template with more comprehensive search options | ||
* {{Tl|Find sources | |||
* {{Tl|Find | * {{Tl|Find sources}} - main find sources template | ||
* {{Tl|Find video game sources}} - includes a link to [[User:Gwern|Gwern]]'s [http://www.google.com/cse/home?cx=009114923999563836576:1eorkzz2gp4 Google RS] | |||
* {{Tl|Reliable sources for medical articles}} | |||
* {{Tl|Refideas}} - template to include links to possible sources | * {{Tl|Refideas}} - template to include links to possible sources | ||
* {{Tl|Search}} - the original search template on which this template was based | * {{Tl|Search}} - the original search template on which this template was based | ||
* {{Tl|Search for}} - a multi-purpose search engine sidebar | * {{Tl|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]] | * [[Wikipedia:WikiProject User scripts/Scripts/Search links]] | ||
</includeonly><noinclude> | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Source-finding templates]] | |||
}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> | <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> | ||
</noinclude> | </noinclude> |
Latest revision as of 04:29, 3 September 2020
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 current subpage is used as the search string. If the current subpage has a disambiguator in parentheses, e.g. Happy Birthday (Stevie Wonder song), then the main part of the page name will be quoted and the disambiguation text will follow, like "Happy Birthday" Stevie Wonder song
. You can specify that another title be used by using the title
parameter.
Search engines
The template includes links to the following search engines: {{{linkDescriptions}}}
Examples
Don't panic! This section looks broken until it is transcluded at Template:Find sources. |
- Default search:
{{{{{template}}}}}
- produces:
- {{ {{{template}}} }}
- Simple search:
{{{{{template}}}|Albert Einstein}}
- produces:
- {{ {{{template}}}|Albert Einstein}}
- Complex search:
{{{{{template}}}|Albert Einstein|physics OR cosmology|-"Marilyn Monroe"|relativity|science}}
- produces:
- {{ {{{template}}}|Albert Einstein|physics OR cosmology|-"Marilyn Monroe"|relativity|science}}
(Note that Google and many other search engines use capitalized boolean operators "OR" and "AND".)
- Custom title search:
{{{{{template}}}|title=Happy Birthday (Stevie Wonder song)}}
- produces:
- {{ {{{template}}}|title=Happy Birthday (Stevie Wonder song)}}
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
- {{Reliable sources for medical articles}}
- {{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