Last modified: 2011-12-31 19:10:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14685 - Track magic word usage
Track magic word usage
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Low enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on: 16979
Blocks: 17239 23936
  Show dependency treegraph
Reported: 2008-06-30 18:33 UTC by Sam Reed (reedy)
Modified: 2011-12-31 19:10 UTC (History)
6 users (show)

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


Description Sam Reed (reedy) 2008-06-30 18:33:47 UTC
Is it possible to have some form of categorisation (done fairly quickly) on all pages that transclude the MW Template {{DISPLAYTITLE}}

Or some other way to get a list of all the pages that transclude it?

We used to use Template:Underscore and Template:Lowercase and underscore in AWB to prevent link changing, now this has been properly enabled, and those templates removed on en.wp, we cant get a list of the pages.


Comment 1 OverlordQ 2008-06-30 21:01:39 UTC
Template:Underscore still exists.

But doing a text search for DISPLAYTITLE[1] does't work? Although it returns results I'd imagine there'd be more then two results.

Comment 2 Sam Reed (reedy) 2008-06-30 21:14:27 UTC - Its deleted on en.wp
Comment 3 Rich Farmbrough 2008-08-26 19:10:31 UTC
Note: I today created which should suffice.
Comment 4 Sam Reed (reedy) 2008-08-26 19:33:33 UTC
Maybe so, but there should be a way to be able to get a list of what transcludes that template (shouldnt have to duplicate the work!)
Comment 5 Sam Reed (reedy) 2008-09-12 21:34:34 UTC
Being able to do "" would be ace...
Comment 6 Bryan Tong Minh 2008-09-12 21:42:10 UTC
{{DISPLAYTITLE}} is a magic word that is not indexed in any way. We could perhaps add an entry to page_props.
Comment 7 Sam Reed (reedy) 2008-09-12 21:43:15 UTC
Anything would be useful

Was just using that as an example!
Comment 8 MZMcBride 2008-09-12 21:44:20 UTC
An entry to page_props could also help with tracking other strange parts of page text like __NOINDEX__, etc.
Comment 9 Bryan Tong Minh 2008-09-12 21:47:35 UTC
Yeah(In reply to comment #8)
> An entry to page_props could also help with tracking other strange parts of
> page text like __NOINDEX__, etc.
Good idea. Changing subject accordingly.
Comment 10 Danny B. 2010-06-24 21:05:38 UTC
Cluttering category tree with purely technical categories doesn't seem the best way to me.

I'd suggest the following approach instead:

Have some way how to store in database usage of random (preferably all) magic words and other syntax constructions.

For example, something like this:

table magicwords
 --- according to possible confusion with mw prefix, it can be named e. g. syntaxtracking with prefix "st" or whatever
 --- equal to page_id
 --- {{CURRENTDAY}}, __NOTOC__, {{lc:}}, {{#if:}}, <gallery>, (other forms)
 --- 1, 2, 3, 4, 5 (or in words, like "curly bracket magic word", "underscore magic word", "colon function", "parser function", "tag")

Maybe also:
 --- possible identification of where such magic word comes from, NULL for core or the extension name, so in case you want to deinstall some extension, you can simply run some maintenance task to find out (and e. g. possibly remove) which pages use magic words introduced by such extension.

I'm not db expert, so I'm pretty sure it will need some optimalization, therefore it is just the basic idea.

Then there would be new special page, say Special:MagicWordsUsage (Special:SyntaxTracking, ...) on which you could simply select from <select> the magic word you want to have listed + common existing namespace selector. You hit submit button and all pages according to the criteria would be listed. URL shortcut like "Special:SyntaxTracking/<gallery>" would be handy as well.

Things to think about:
* Tracking of pages which _directly_ contain such syntax construction in their wikitext versus tracking all pages containing that via transclusion.
* Track #REDIRECT?

(changed the summary to be yet more general)
Comment 11 Bryan Tong Minh 2010-07-10 11:33:58 UTC
Double underscore magic and behavioral parser magic is tracked in page_props as of r69235. I do not intend to track usage of things like {{#if}} and similar.

Now somebody needs to write a special page and api module to query to pages.
Comment 12 Umherirrender 2010-09-10 18:53:19 UTC
(In reply to comment #11)
> Now somebody needs to write a special page and api module to query to pages.

The api module was added with r70638, but the $wgPageProps (added in the same revision) needs update to match the new page_props.

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