I am actually trying to do this in javascript in the lightest way possible.
There is no way that I can to get from outputted html to the Template it came from in Javascript.
Ideally I'd like to see something like class="template" data-template="TemplateName" on all outputted templates to solve this problem.
See https://gerrit.wikimedia.org/r/#/c/40314/ for background.
On Mon, Dec 24, 2012 at 2:33 PM, Yuvi Panda yuvipanda@gmail.com wrote:
Check the MediaWiki:Disambiguationspage language message - it exists for all languages. It lists all the templates that mark Disambig pages.
(https://fr.wikipedia.org/wiki/MediaWiki:Disambiguationspage for the french wikipedia, https://en.wikipedia.org/wiki/MediaWiki:Disambiguationspage for english). I'm sure there are easy ways to check if a page is Disambig in PHP - not sure about JS. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l