Hi folks,
I'd like to make this extension a bit more robust:
http://www.mediawiki.org/wiki/Extension:TemplateTable
In short, the extension adds a tag which displays a table of all the
invocations of a given template.
Currently this is implemented by fetching the text for each page a
template is referenced on and searching for braces (eg. {{ }}).
I was thinking that running the text through the parser and hooking
all the template expansions to grab the params would be more robust.
However, there don't appear to be any hooks that would provide access
to this data.
So, 2 questions:
1. Any opposition to adding a hook in the parser called every time a
template is expanded (with the template name and parameters as args)?
2. Any hints as to where in the parser would be a good place to add that hook?
Thanks,
Rusty
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l