Forum:Having problems with GoogleSearch template
I am having trouble with template:GoogleSearch. It will not allow me to insert the URL of a Google Search results page, which is why I created the template in the first place. I can do something like this:
I can also do something like:
But I am having difficulty with inserting a URL, such as http://www.google.com/search?source=ig&hl=en&q=Good+Burger+is+the+greatest+movie+ever+made It comes out as:
Can somebody please help me? It shouldn't be doing this. What's the deal? Thanks in advance. PF4Eva, the President of Imagination Vote for me My tax returns 21:46, 17 April 2007 (UTC)
{{GoogleSearch|left|http://www.google.com/search?source=ig&hl=en&q=Good+Burger+is+the+greatest+movie+ever+made}}
There's your problem (in bold). MediaWiki thinks that a parameter "http://www.google.come/search?source" should be defined, rather than having that mess as parameter 2. You can fix the template to have {{{2}}} become {{{url}}} and just use url=(that mess) where you just have the URL.
Did that make sense? I hope it made sense. —Major Sir Hinoa prepare for trouble • make it double? 22:47, 17 April 2007 (UTC)
- No luck, sorry. Here's the latest revision.[1] As you can see, wither it didn't work or I didn't do it right to begin with. This is a very important template intended to save articles (such as Ace Frehley) from being marked as vanity, when in fact, Ace Frehley is a very notable person.
I think the problem is that your directions weren't written clearly enough for me to fully understand. It worked great in the preview, but when I saved the finished product, it became what it is now. Thanks for all your help. PF4Eva, the President of Imagination Vote for me My tax returns 21:14, 18 April 2007 (UTC)
Hey, try with this code:
<div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; text-align: left; float: {{{1}}};"> <div style="float: left;"> [[Image:GoogleFFSmall.jpg|60px]]</div> <div style="margin-left: 60px;">[[WTF|Unfamiliar]] with the subject? Luckily, for you, the [[evil]] [[umpire|empire]] [[Google]] has plenty of [[search results]] for: <br><span class="plainlinks">[http://www.google.com/search?q={{FULLPAGENAME}} {{PAGENAME}}]</span>.</div> </div>
Basically, I've changed it a bit. It now takes the page name and when you click on the link it links to the search. Oh, and the syntax is:
Syntax:
{{GoogleSearch|right/left}}
Er, I hope that helps and I think that's what you wanted to do... If you want me to try an implement anything else... just say. —Braydie 21:27, 19 April 2007 (UTC)