Extension talk:Disambiguator


Stable but no content?

This extension is marked stable, so one should assume that it works. I tried to download it and found that it didn´t even exist! The "current snapshot" is completely empty, only .gitignore and .gitreview have been added so far (checked this on repo site).

What is this supposed to mean? Is there another place where I can download Disambugator? Please enlighten me. FNek (talk) 18:33, 21 January 2013 (UTC)

The git repo now has the source code. Legoktm (talk) 07:31, 11 July 2013 (UTC)
Thank you, I will probably check it out. FNek (talk) 18:43, 11 September 2013 (UTC)

Use across WMF?

What is the future scope for this extension to be used across WMF? It was implemented in enWP this past week, but there is little in the way of information about how and why it came about. Whether it will be used in a broader space or not. Can anyone eludicate? Thanks. — billinghurst sDrewth 13:13, 26 June 2013 (UTC)

You might have a look at Bugzilla:35981. The extension is going to replace the old special page Special:Disambiguations by the new speical page Special:DisambiguationPageLinks, which is implemented in a more efficient way. For this purpose, the definition of disambiguation pages has been changed:
  • Special:Disambiguations traets pages as a disambiguation page if it contains a template that is listed in MediaWiki:Disambiguationspage
  • Special:DisambiguationPageLinks traets pages as a disambiguation page if it contains the magic word __DISAMBIG__ (this magic word is included using the templates difflink). Moejoe000 (talk) 13:12, 29 June 2013 (UTC)

SQL error?

Problem
Query: SELECT page.page_id AS value,page.page_namespace AS namespace,page.page_title AS title FROM `rnw_page`,`rnw_page_props` WHERE (page_id = pp_page) AND pp_propname = 'disambiguation' AND (page_namespace != 10) ORDER BY namespace,title LIMIT 1001 

Results in

Error: 1054 Unknown column 'page.page_id' in 'field list' (***servername***)
Fix

SQL: …`rnw_page` as page, …

--2001:8D8:1FE:7:2E41:38FF:FE92:27A5 2001:8D8:1FE:7:2E41:38FF:FE92:27A5 12:22, 10 July 2013 (UTC)

It seems the SQL above misses $wgDBprefix. We have configured
$wgDBprefix         = "rnw_";
2001:8D8:1FE:7:2E41:38FF:FE92:27A5 12:24, 10 July 2013 (UTC)

Using API

Hi,

For the list of all disambiguation pages, wouldn't it be better to use the existing pageswithprop request, rather than having a specific request ? Request with pageswithprop: https://en.wikipedia.org/w/api.php?pwplimit=max&action=query&pwppropname=disambiguation&list=pageswithprop And it's not even limited to a maximum number of pages since it implements query-continue mechanism. NicoV (talk) 16:29, 14 July 2013 (UTC)

Error in SQL Statement of SpecialDisambiguationPages.php

Hi,

I added the extension, but the Special-Page didn't work. I activated SQL-Debug and realised, that the SQL-Statement didn't include my table-prefixes. Once I added them manually, enclosed in `` for they contain a -, which is otherwise not allowed, the page works fine.

I have no idea, why it works with SpecialDisambiguationPagesLinks.php, though.

Any ideas, or is it a fault on the scripts side? Heinrich krebs (talk) 16:46, 24 July 2013 (UTC)

Installed this on my wiki today and Special:DisambiguationPages is broken (A database query error has occurred. This may indicate a bug in the software.)
Suspect its because I also use a table-prefix (set in $wgDBprefix) - will this extension be updated to support this or do I need to go hacking around the code myself to fix? KFCSpike (talk) 14:47, 15 February 2014 (UTC)
This message is pretty bad and should probably better say (A database query error has occurred. See the manual on how to debug SQL errors.) Anyway, this is another story.
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
$wgShowDBErrorBacktrace = true;
$wgDebugLogFile = "/var/log/mediawiki/yourwiki-debug.log";
This should help finding the problem. Only do the dumping for a few operations since this file gets big very fast. Depending on the outcome a bug should be filed. Cheers [[kgh]] (talk) 15:04, 15 February 2014 (UTC)
Hello, same error, here my data ;)
Query:
SELECT page_props.pp_page AS value,page.page_namespace AS namespace,page.page_title AS title FROM `wiki_page`,`wiki_page_props` WHERE (page_id = pp_page) AND pp_propname = 'disambiguation' AND (page_namespace != 10) ORDER BY value LIMIT 51
Function:
SpecialDisambiguationPages::reallyDoQuery
Error:
1054 Unknown column 'page_props.pp_page' in 'field list' (localhost)
(yes, without prefix)
If i'm right, one solution is:
Edit file: SpecialDisambiguationPages.php
find "'fields' => array("
delete table prefix "page_props" and "page" :)
See -> https://bugzilla.wikimedia.org/show_bug.cgi?id=65086 Florianschmidtwelzow (talk) 18:17, 9 May 2014 (UTC)

Extensions that use this

"This allows other extensions to handle disambiguation pages as a separate class of page." Are there other extensions that do this yet? I grepped the extensions folder for "disambiguation" and didn't come up with anything that looked relevant. Thanks, Leucosticte (talk) 13:00, 2 January 2014 (UTC)

One Extension is WikiEditor, see bug 50160. Florianschmidtwelzow (talk) 18:21, 9 May 2014 (UTC)

Missing 1.21 image

According to the box, the extension should be compatible with 1.21+, but choosing 1.21 in the download box gives me an empty TAR. So I went with the 1.23 image which seems to work (my wiki is on 1.21.2) - at least I get no errors (yet),

Would however like to point out that the documentation lacks a proper description, or link to a description, of how to use magic words. I've personally never come across having to use them before and a link or code sample to something similar to Template:Disambiguation would be nice. Metalbunny (talk) 15:19, 8 September 2015 (UTC)

Category Pages?

Can this be used for Category pages as well? 63.66.112.5 (talk) 14:25, 3 January 2017 (UTC)

it does not seem like this will work with category pages. Is this true? 63.66.112.5 (talk) 16:34, 5 January 2017 (UTC)

Links to dismabiguous pages are not colored on category pages.


Zzmonty (talk) 13:54, 28 December 2018 (UTC)

This is because on category pages, links to disambiguation pages do not have the mw-disambig class. ディノ千?!☎ Dinoguy1000 14:01, 28 December 2018 (UTC)

Set indexes

Hi. I was looking around on the english wikipedia for how links to disambiguation pages have this special class, and I found this page. Is there any way to extend this functionality to Set indexes? I wanted to fork and modify a gadget to also affect indexes, but links to them don't have this class. Thanks, --~ DannyS712 (talk) 07:34, 2 March 2019 (UTC)

VisualEditor customization

On many wikis, directly inserting the magic word is undesirable, a template is to be used instead. Can the VisualEditor tick box be disabled or customized to insert something else? Bdijkstra (talk) 20:28, 23 April 2019 (UTC)

Detecting disambiguation pages

Is there a simple way in wikitext (or Lua) to detect that a particular page is a disambiguation page? In particular, a WikiProject banner in the talk page (on Wikipedia) can already detect if the subject page is a redirect, but I would also like to detect if the subject page is a disambiguation page. Perhaps a new hook/tag can be added, e.g. #getdisambiguation:pagename. Dpleibovitz (talk) 07:01, 28 April 2019 (UTC)

There is an explicit function in Lua which will recognize whether any page is a redirect.
There is no similar feature for disambig, but might be implemented one day in similar way.
Until far future, it is possible in Lua to read source text of page in doubt, and search for specific template name used to declare disambig. This will work pretty robust per project. PerfektesChaos (talk) 17:48, 28 April 2019 (UTC)

Exclude pages from Special:DisambiguationPageLinks?

Is there a way to exclude pages from the list, where the use of disambiguation link is correct and as intended? צמא לדעת (talk) 22:04, 24 July 2024 (UTC)