User:Dispenser/Dablinks

Status
User:Dispenser hasn't been seen on Wikipedia since March 2020, and their tools have been unmaintained and worked intermittently since then. Dablinks has continued to be functional. However, it is not very useful without the related tool User:Dispenser/Dab solver. See that page for the status of that tool.

Currently, Dablinks can be accessed at http://69.142.160.183/~dispenser/view/Dablinks

History
In the past, this tool has been found at the following addresses:
 * https://tools.wmflabs.org/dispenser/view/Dablinks
 * http://69.142.160.183/~dispenser/view/Dablinks

Processing disambiguation links

 * Point the correct article


 * Convert to red link


 * Link to wiktionary

API
The tool has a machine accessible interface which can be used by tools, bots, and scripts. The API has been designed very similar to the MediaWiki API.

Options

 * format
 * Changes the output format options are,  , and


 * callback
 * When specified with format as JSON wraps the output into a given.
 *  http://toolserver.org/~dispenser/cgi-bin/dablinks.py?titles=Ohio&format=json&callback=dabhighlight 


 * disambiguationspage
 * Under consideration. Specify a page other than MediaWiki:Disambiguationspage. This would have the advantage of allowing templates indirectly related, such as dablink.  This then could be a flag for further inspection.

Generators

 * titles
 * Pipe separated titles


 * headlinks
 * Downloads a page and parses links which appear apart of a header, designed for WP:FAC


 * category
 * Use the API to fetch a list of pages in a category. Use &limit= to set the limit, default: 10.

Output
Sample:
 * Note: The following does not conform to specifications, you should convert values to specifications for future compatibility. 


 * ns
 * The namespace number of page's namespace


 * title
 * The title of the page including the namespace


 * linksback
 * Zero or one depending if the target page links to the starting page. Useful in filtering out primary topic disambiguation pages


 * targetns
 * Namespace number of the target redirect.


 * target
 * Full title of target redirect.

Limitations

 * Because of current limitation in webpywikipedia only canonical namespace (i.e. English only) are correctly handled.
 * Redirect handling and first-letter capitalization (canonical naming) only working in the HTML mode.
 * Does not throw a warning with pages tagged with redirect,, or any variant based on dablink