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 <[email protected]> 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
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l



-- 
Jon Robson
http://jonrobson.me.uk
@rakugojon

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

Reply via email to