Jump to content

User:Jake01756/Typo Search Links

From Wikipedia, the free encyclopedia
[edit]

Ex:

{{search link|search term|link text|ns0|ns14|ns100}}

Searching for typos - Copied from Wikipedia:Adopt-a-typo

[edit]

The first step in adopting a typo is knowing how to find your typo. One easy way to do this is by putting a link on your user page that searches for the item you want to "adopt". This is easily done via the {{Search link}} template,

{{search link|search term|link text|ns0|ns14|ns100}}

For example, to search for all occurrences of "privledge" (a misspelling of "privilege") on the English Wikipedia, you could use the following code:

{{search link|privledge|privledge/privledges/privledged|ns0|ns14|ns100}}

This searches for matches to "privledge" (search string shown in red above) but will also find "privledges" and "privledged" because they contain the search string as a substring. The red text is the query string, while the blue text is the link label. Colors are used here just so you can easily see the parts of the template and have nothing to do with the template itself. The link label can be whatever you like but it is helpful to note the "additional" misspellings it can find beyond just the search term, which is why the link label in the example was chosen how it was. The "ns0", "ns14", and "ns100" specify the namespaces (main, category, and portal, respectively) in which you would like to perform the search (see Wikipedia:Namespace for the other code numbers). You can customize your search for only those namespaces you want. Keep in mind, however, that not all parts of Wikipedia (like the talk and user namespaces) should have spelling mistakes fixed. See WP:DONTFIX.

Here is an example of how the above code is rendered: privledge/privledges/privledged.