https://bugzilla.wikimedia.org/show_bug.cgi?id=14685

Danny B. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Track magic word usage in   |Track magic word usage
                   |page_props                  |

--- Comment #10 from Danny B. <[email protected]> 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
mw_page
 --- equal to page_id
mw_word
 --- {{CURRENTDAY}}, __NOTOC__, {{lc:}}, {{#if:}}, <gallery>, (other forms)
mw_type
 --- 1, 2, 3, 4, 5 (or in words, like "curly bracket magic word", "underscore
magic word", "colon function", "parser function", "tag")

Maybe also:
mw_source
 --- 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)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to