Difference between revisions of "Template:Find sources"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(Add capability for a custom message)
imported>Salix alba
(add an in article parameter which allows the template to be used in NS:0 if in article is set, this is needed by template;Notability)
Line 1: Line 1:
{{#switch:{{NAMESPACEE}}
+
{{#ifeq: {{{inarticle|{{NAMESPACEE}}}}}|{{ns:0}}|<br><font size="+2" color=red>Please do not use the findsources template in articles.</font><br><br>  
|{{ns:0}}=<br><font size="+2" color=red>Please do not use the findsources template in articles.</font><br><br>  
+
| {{{message|''Find sources:''}}} <span class="plainlinks">[http://www.google.com/search?as_eq=wikipedia&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&num=50 "{{{1|{{SUBPAGENAME}}}}}"{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}{{#if:{{{4|}}}|&nbsp;{{{4}}}|}}{{#if:{{{5|}}}|&nbsp;{{{5}}}|}}] &ndash; [http://www.google.com/search?q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&tbm=nws&tbs=ar:1{{#ifeq:{{{free|}}}|yes|,apr:f|}} {{#ifeq:{{{free|}}}|yes|free&nbsp;|}}news]{{int:dot-separator}}[http://www.google.com/search?tbs=bks:1&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} books]{{int:dot-separator}}[http://scholar.google.com/scholar?q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} scholar]{{int:dot-separator}}[http://www.jstor.org/action/doBasicSearch?Query={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&acc=on&wc=on JSTOR]{{int:dot-separator}}[http://images.google.com/images?safe=off&as_rights=(cc_publicdomain%7ccc_attribute%7ccc_sharealike%7ccc_noncommercial%7ccc_nonderived)&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} free images]</span>}}<noinclude>{{documentation}}<!--Place interwiki and category links on the documentation subpage, please.</noinclude>
|#default={{{message|''Find sources:''}}} <span class="plainlinks">[http://www.google.com/search?as_eq=wikipedia&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&num=50 "{{{1|{{SUBPAGENAME}}}}}"{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}{{#if:{{{4|}}}|&nbsp;{{{4}}}|}}{{#if:{{{5|}}}|&nbsp;{{{5}}}|}}] &ndash; [http://www.google.com/search?q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&tbm=nws&tbs=ar:1{{#ifeq:{{{free|}}}|yes|,apr:f|}} {{#ifeq:{{{free|}}}|yes|free&nbsp;|}}news]{{int:dot-separator}}[http://www.google.com/search?tbs=bks:1&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} books]{{int:dot-separator}}[http://scholar.google.com/scholar?q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} scholar]{{int:dot-separator}}[http://www.jstor.org/action/doBasicSearch?Query={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}}&acc=on&wc=on JSTOR]{{int:dot-separator}}[http://images.google.com/images?safe=off&as_rights=(cc_publicdomain%7ccc_attribute%7ccc_sharealike%7ccc_noncommercial%7ccc_nonderived)&q={{urlencode:"{{{1|{{SUBPAGENAME}}}}}"}}{{#if:{{{2|}}}|+{{urlencode:{{{2}}}}}|}}{{#if:{{{3|}}}|+{{urlencode:{{{3}}}}}|}}{{#if:{{{4|}}}|+{{urlencode:{{{4}}}}}|}}{{#if:{{{5|}}}|+{{urlencode:{{{5}}}}}|}} free images]</span>}}<noinclude>{{documentation}}<!--Place interwiki and category links on the documentation subpage, please.</noinclude>
 

Revision as of 11:18, 7 March 2013

Find sources: "Find sources"news⧼dot-separator⧽books⧼dot-separator⧽scholar⧼dot-separator⧽JSTOR⧼dot-separator⧽free images

Template documentation[create]