- This page is full of obsolete things, so look at the search page. This page and things that still link to it are possibly worth keeping for historical reasons.
This page covers the topic of using Wikit's built in search functionality; the page really did not need to mention Tcl'ers Wiki since it is part of the general functionality of a Wikit.
Searching the quick way:Go to page "2" - the page Search - type a keyword in the edit field and press Enter.Note that this is a one-level search only and it is a fine art to come up with the right keyword.But:
- The keyword followed immediately by an asterisk (*) (no space) causes a search not only through the titles, but also through the text itself
- If you click on the title of a page, you will instantly get a list of all the pages that refer to that page.
Searching and bookmarking is quite flexible in Wikit. To search for the word "cgi" in all page titles, you can use the URL:search page, at:http://purl.org/tcl/wiki/1.html, for example. But although these unique IDs are effective for internal links, they are quite awkward as bookmarks, since they convey no information whatsoever about the title or contents of a page.To offer a more useful way of bookmarking, pages which are not of the form <number>.html are treated as search instructions to locate a page. The following URL is an instruction to look for a page titled "hawaii":
- If the search term is a reference to a page (<number>.html), then simply go to that page.
- If the search term matches a page title (while ignoring case), then jump to the page with that title.
- If the search term includes one or more upper-case letters, modify the search to be approximate (see below). If the approximate match finds exactly one page, jump to that page.
- Otherwise, treat the search term as a regular search, and present the search results.
- If the search keyword is accurate enough, it's equivalent to a real URL.
- If the search is general enough, it'll survive minor title changes (e.g. typos).
- The URL has a meaningful word in it, so people can remember what it was about.
- If more pages are added to the wiki, the search will turn up more than one match.
- This is an extremely useful feature, because the original match will be one of the search results listed, and so will new - probably related - pages.
LV: 2000/March 24How do I express a URL using the fuzzy matching and multiple words ?Answer: try replacing any white space by %20
RWT: 2000/March 26I believe that you capitalize the first letter of each word. For instance, this page is http://purl.org/tcl/wiki/SearchingAndBookmarkingURLsOnTheTcl'ersWikiwilldye Nice trick! It seems to work just fine, though apparently one must be careful to also capitalize the first word of such strings. I wish the URL matcher would try to accept titles where spaces have been replaced by dashes or underlines -- e.g. "Searching_and_bookmarking_URLs". Hmm. Maybe I should just implement that myself instead of whining about it..Wouldn't it be great if the Wiki generated a bookmark URL at the bottom of each page? (Complete with the purl address!) Something like adding Bookmark  to the end of the footer at the end of the page. Then you could easily copy the link into news, email, or other web pages
LV 2001/June/19: Do the words become a phrase or are they independantly anded together? And if I stick an * after a series of words like that, is it a search for any (or all?) of these words in a page?willdye As far as I can tell, a wiki search for "spam and eggs" will treat the search term as a unified phrase, so pages with the string "eggs and also spam" will not match. Whenever I want to search for several words which are on the same page, but not necessarily all together in a single phrase, I just use Google (with "site:wiki.tcl.tk" included with the search terms)
glennj: 2001-06-19What if I want to search for any wiki pages that contain the words "windows" and "start", but not necessarily the term "windows start"??2002-08-13To answer myself, use google:
<p>Search the Tcl'ers Wiki: <div align=right> <form method=GET action="http://www.google.ca/search"> <input type=text size="15" name="q" value="search words site:wiki.tcl.tk"><br> <input type=submit> </form></div></p>DKF 2007-08-04: Actually, you can use some of the more cunning features of the web (and the fact that Google concatenate query pieces) to make that work even more naturally...
<form method=GET action="http://www.google.ca/search"> <p>Search the Tcl'ers Wiki: <input type=text size=15 name=q value="search words"> <input type=hidden name=q value="site:wiki.tcl.tk"> <input type=submit value="Search!"> </p></form>glennj 2007-08-21: or
<form method="get" action="http://www.google.ca/search"> <input type="text" size="15" name="as_q"> <input type="submit" value="Search!"> <input type="hidden" name="as_sitesearch" value="wiki.tcl.tk"> </form>
sbron: 2006-01-14You can add the Tcl'ers Wiki to the list of search engines available in Mozilla/Firefox by creating a file called something like wikitcl.src and placing it in the searchplugins directory:
# Mozilla/TCLer's wiki plug-in by Schelte Bron <search name="TCLers wiki" description="The TCLers wiki" method="GET" action="http://wiki.tcl.tk/_/search" > <input name="S" user> <interpretsels browserResultType="result" charset = "UTF-8" resultListStart="</p><ul>" resultListEnd="</ul><p>" resultItemStart="<li>" resultItemEnd="</a>" > </search>Find a nice 16x16 gif image to go along with it, call it wikitcl.gif and place it in the same directory.sbron: 2009-12-28 An even easier method is to click the link on http://www.tclcode.com/tools/search.html