Last modified: 2012-08-02 23:11:04 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 T32758, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30758 - Implement filtering host pages of Special:WantedTemplates by namespace
Implement filtering host pages of Special:WantedTemplates by namespace
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-04 23:40 UTC by Romaine
Modified: 2012-08-02 23:11 UTC (History)
3 users (show)

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


Attachments

Description Romaine 2011-09-04 23:40:00 UTC
We (on nl-wiki) would like the possiblity to have it possible to select namespaces in what the special page Special:WantedTemplates selects their non-existing templates. We would like to switch off the user-namespace and the user-talk-namespace. I think a drop down menu just as on Special:WhatLinksHere would be sufficient if we can select both the namespace with the connected namespace. 

Thanks!
Comment 1 Krinkle 2011-09-05 00:18:24 UTC
To clarify (after IRC conversation).

Right now the slow (cached) background query works as following:
* Get all templatelinks [1]
* Filter only those that tranclude out of NS_TEMPLATE (ie. ignore {{:Article}}, or {{User:Foo/Bar}})
* Group rows that transclude the same template
* Order by count 

The query does not have [1] information on what the title or namespace of the host page is.
Even if it would know it (by doing an SQL JOIN), it would have nowhere to store it since the querycache table doesn't have space for that. If it would have space for it, it'd have to have a massive index to allow a live-filter on it.

The only solution that isn't unacceptably slow is to have separate querycaches for Wantedtemplates for each namespace and then a cache for all namespaces together, which is quite insane.

If there is a usecase for it, we might be able to come up with a better solution, but until then I'm marking this WONTFIX. If the data is needed only once or every once in a while, you may request the Toolserver users to perform the query for you in a long-running job and publish it for you to use. [2]


-- Krinkle

[1] the templatelinks table contains three columns:
* namespace of page being trancluded (usually NS_TEMPLATE)
* pagetitle of page being trancluded (ie. "Infobox")
* pageid of host page calling the template (ie. the page doing {{Infobox}}).


[2] 
- https://wiki.toolserver.org/view/Query_service
- #wikimedia-toolserver (or me!) http://meta.wikimedia.org/wiki/User:Krinkle/Queries/
Comment 2 TMg 2012-08-02 23:11:04 UTC
I understand this is not easy to fix but nevertheless it should be fixed. Maybe it's possible to find a workaround or some alternative approach?

Currently, all Special:WantedTemplates pages in all Wikipedia projects are almost completely useless due to two problems:

The first is described in bug 12019 (things like an #ifexist count as a link).

The second is described above: There are a lot of concepts in the user namespace and archived discussions in all discussion namespaces with non-existing templates. All this is counted in the special page. Currently some people are trying to get rid of these template inclusions in the German Wikipedia but this highly disputed (archives should not be touched, for example).

What we really need is something like a Special:WantedTemplatesInArticles.

As said the lists (also Special:WantedPages) are useless now. Please help us making it useful again.

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


Navigation
Links