Extension:Disambiguator/ja

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

設定
利用者のLocalSettings.phpファイルから以下の設定変数を書き込みます.
 * $wgDisambiguatorIndicateLinks - 'mw-disambig' CSS クラスを追加し、曖昧さ回避ページへのリンクを作るかどうか (既定は true)
 * $wgDisambiguatorNotifications - whether to warn the user when they type a link to a disambiguation page in wikitext editors (default is false)

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


 * プログラム上で __DISAMBIG__ を使い、曖昧さ回避ページを検出
 * 特別ページを新設して曖昧さ回避ページと、それにリンクするページをすべてまとめる
 * 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, adds a 'mw-disambig' CSS class to links to disambiguation pages (See #Configuration above)

ウィキ上で
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.

さらに2つのを生成します. それはこちらです:
 * 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.

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