TinyPortal

Development => Block Codes => Topic started by: whatever on January 08, 2007, 10:21:21 PM

Title: Search Wikipedia
Post by: whatever on January 08, 2007, 10:21:21 PM
This is the block I made for manuscript, right column (which is very narrow):


<form action="http://www.wikipedia.org/search-redirect.php" method="get">
  <input type="hidden" name="language" value="en" />
  <input type="text" name="search" size="20" />
  <br>
  <br>
  <input type="submit" name="go" value=" Go! " />
</form>


That stacks the two elements - search box and 'go' button - vertically, to save width.

This places them side by side:

<form action="http://www.wikipedia.org/search-redirect.php" method="get">
  <input type="hidden" name="language" value="en" />
  <input type="text" name="search" size="20" />  <input type="submit" name="go" value=" Go! " />
</form>


I see no reason to add a header to this, as that can be done in the box title.
Title: Re: Search Wikipedia
Post by: RoarinRow on January 08, 2007, 11:33:28 PM
Cool, I'll have to try this out   :up:

Edit - it works, it just opens the results in the same browser   :)
Title: Re: Search Wikipedia
Post by: Glander on January 09, 2007, 12:56:51 AM
Hey, thanks buddy. I have put it, with a little change for the Netherlands, in the left colom.

For those who wants to have it for the Netherlands:


<center><form action="http://nl.wikipedia.org/wiki/Speciaal:Search" method="get" target="_new">
  <input type="hidden" name="language" value="nl" />
  <input type="text" name="search" size="20" />
  <br>
  <br>
  <input type="submit" name="go" value=" Zoek " />
</form></center>


I hope you don't mind I brought it up Whatever

See ya,

Bert
Title: Re: Search Wikipedia
Post by: whatever on January 09, 2007, 12:59:52 AM
Glad to know it is of use  :D
I am happy for all to use it for whatever...