Last modified: 2014-09-04 02:57:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71441, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69441 - Feature request: add detection for disambiguation pages to Scribunto
Feature request: add detection for disambiguation pages to Scribunto
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-12 17:17 UTC by Mr. Stradivarius
Modified: 2014-09-04 02:57 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mr. Stradivarius 2014-08-12 17:17:54 UTC
It would be useful for things like [[Module:WikiProjectBanner]] if Scribunto could detect whether a given page is a disambiguation page or not. At present, the only way of doing this is to preprocess all of a page's text and search for the __DISAMBIG__ magic word, which is obviously not practical for performance reasons.

I envision this as an "isDisambig" property of the Scribunto title object, but the exact naming or location isn't so important.
Comment 1 Mr. Stradivarius 2014-08-12 17:34:00 UTC
Jackmcbarn pointed out on IRC that we can't do this because disambiguation status is determined post-parse:

> you could do {{#if:{{#invoke:IsThisADabPage|main|{{FULLPAGENAME}}}}||__DISAMBIG__}} or something and cause a paradox

So I'm closing this as WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links