Extension:Disambiguator/ja

Disambiguator 拡張機能はプログラム上で動作しやすい曖昧さ回避ページを簡単に作成するよう設計してあります. すべての曖昧さ回避ページの指定は __DISAMBIG__ (もしくは同等の別名) で実行でき、データベース上の指定を変更します. するとその他の拡張機能での扱いが、ページのクラスが変更されたものとして実行されます.

設定
The following configuration variables can be set from your LocalSettings.php file.
 * $wgDisambiguatorIndicateLinks - whether to add a 'mw-disambig' CSS class to links to disambiguation pages (default is true)

特徴
この拡張機能は以下の機能を提供します:


 * Programmatic identification of disambiguation pages via the __DISAMBIG__
 * New special pages for listing all disambiguation pages and pages linking to disambiguation pages
 * New API functions equivalent to the above special pages as well as an API function for querying whether or not a page is a disambiguation page
 * Modifies Special:LonelyPages to ignore disambiguation pages
 * Modifies Special:Random to ignore disambiguation pages (requires MediaWiki 1.26.0)
 * If is enabled, allows marking a page as a disambiguation page via the page properties interface
 * If is enabled, shows whether a page is a disambiguation page or not in the link inspector
 * If is enabled, shows whether a page is a disambiguation page or not in the link dialog
 * If configured, add a 'mw-disambig' CSS class to links to disambiguation pages (See #Configuration below)

ウィキ上で
Once Disambiguator is installed, the best way to use it is to add the  magic word to a template that is then included in all of your disambiguation pages.

Once the magic word is in place, your disambiguation pages will all have the 'disambiguation' page property assigned to them in the database. This property resides in the table.

You will also have two new :
 * Special:DisambiguationPages - which lists all the disambiguation pages on your wiki.
 * Special:DisambiguationPageLinks - which lists all of the pages on your wiki that link to disambiguation pages. (This is a replacement for the old Special:Disambiguations page which is deprecated.)

APIとの組み合わせ
To list all the disambiguation pages:

api.php?action=query&list=querypage&qppage=DisambiguationPages

To list all the disambiguation page links:

api.php?action=query&list=querypage&qppage=DisambiguationPageLinks

Note that on wikis running in MiserMode (all WMF wikis), both the special page and API interface for DisambiguationPageLinks are limited to a certain number of results (typically 1000–5000).

To see if an individual page is a disambiguation page:

api.php?action=query&titles=Bug&prop=pageprops&ppprop=disambiguation

If it is a disambiguation page it will include 'disambiguation' in its pageprops. Note that the disambiguation pageprop, if present, will have its value set to an empty string, so be careful about testing it as a boolean.

今後の開発案

 * Add an option to hide disambiguation pages from: Special:AllPages (task #9936), Special:PrefixIndex (task #11319), Special:WhatLinksHere (task #9935), Special:AncientPages (task #76287)
 * Consider extending link dialog in wikitext editor with ability to detect disambigs in search results and pull a list of links
 * この拡張機能のすべてのバグ