Jump to content

Toolserver:~hippietrail/nearbypages.fcgi

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

Category:Tools

Manual on MediaWiki Tools
Nearby pages
Release status: unknown
Author(s) Hippietrail
License No license specified
Download https://svn.toolserver.org/svnroot/Hippietrail/
https://toolserver.org/~hippietrail/nearbypages.fcgi

Category:Tools by Hippietrail


Nearby pages returns JSON data which includes a list of terms on the English Wiktionary before and after the given term in the given language using the correct alphabetical order for that language where possible.

There is a JavaScript front end using it on the English Wiktionary. Enable it at wiktionary:WT:PREFS. It's source is at wiktionary:User:Hippietrail/nearbypages.js.

It relies on the locale system of the underlying OS for sorting. Any language that has a UTF-8 locale installed on wolfsbane should get correct sorting.

To find the best locale it currently only checks the language code part of the locale specifier and goes with the first match. This will surely be wrong for some languages which use more than one writing system and may be wrong for some other languages. When no matching locale can be found it uses en-US.UTF-8.