While reading a bug pointed by the i18n triage
<https://bugzilla.wikimedia.org/show_bug.cgi?id=16026>, Happy-melon says
"A more general bug (which might well exist, I didn't check thoroughly)
would be "ALL MediaWiki messages should be either plaintext or accept
So I had the idea of censusing the wfMsg calls in the MW code and try to
detect which ones accept wikimarkup or other dialects (it depends of the
wfMsg function and of the parameters of that function).
*And* where it is used. A wfMsg() function echoed to the screen would
accept html (very bad), passed to Html::element, would be plaintext, and
passed to the parser in a recursive invocation by a tag extension, would
I don't think it is feasible to automatically determine which kind of
output is accepted by a given message, despite of it being really cool.
If you find it useful I would be happy, but it was also an exercise for
extracting and manipulating data.
Well, it's not completely useless :) and sure it was a practical exercise.