Y!Q Link Generator

An easy way to generate Y!Q links for your web pages.

What is this?
This is a simple form for creating Y!Q links as seen here in the Y!Q Beta for Publishers documentation. Y!Q allows users to search "at the point of inspiration". It's also a great way to add relevance, annotate text, and provide more sophisticated layers of meaning to web content.

You can see examples of Y!Q links here at this weblog and all over Yahoo! News.

The problem is that making Y!Q links by hand can be really complicated. The Y!Q Link Generator makes it easy.

Here's some sample Y!Q code.

Do this first
Before you start, copy/paste this code into the header of your HTML page or weblog template (between the <head> and </head> tags):

<script language="javascript" type="text/javascript"

This is pretty easy in Blogger (click on "Template") and TypePad (using Advanced Templates). Here is a nifty tool for adding it to WordPress.

Y!Q Link Generator
Now, just complete the options below, hit the "Generate Y!Q Code" button, and copy/ paste the output into your blog tool or web page.

That's it.

1. Text for Y!Q Link
(this can be a word, a phrase, or a whole paragraph):

It will end up looking something like this in the context of your site:

2. Deliver Yahoo! Search or Yahoo! News results?

Y! Search

Y! News

 One or the other.

3. Number of search results you want displayed:

The more, the better.

4. Focus text
(add a word or phrase that will be used to focus/ bias the results).

This text will be hidden from the user if you don't include a search box. Useful in adding a layer of meaning not found in the original text. See example.

5. Terms to ignore
(add a word or phrase that you want to exclude from the query)

This text is hidden from the user. Useful in "cooking results" to make an editorial point.

6. Include a search box at the top of the Y!Q box?

Usually a good idea.

7. URL of image to appear above search results:

Must be hosted somewhere on the internet. Flickr square or thumbnail images are good sizes for the box.

7. Text to appear next to image & above search results
(HTML allowed):

The image and the text here are good places for more editorial content, not just search stuff. Example.

8. Sites to restrict search to
(add a space-separated list of sites to restrict the search to)

This text is hidden from the user.

Click here to see your Y!Q box:

Remember, your box will behave differently based on your site's styles. See documentation for full css control.

Just copy/ paste the text from this box to wherever you want it on your page.

By: Daniel X. O'Neil and Ben Friedberg
Questions/ improvements/ bug reports? Write here.
This site not affiliated with Yahoo! in any way.