https://bugzilla.wikimedia.org/show_bug.cgi?id=23104
The Evil IP address <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from The Evil IP address <[email protected]> 2010-07-05 08:17:29 UTC --- I agree that this would be quite good, either as wgTemplates or that stuff Trevor proposes here. However, there are already some options to get them. The API lists them at api.php?action=query&titles=Some_page_name&list=tl or some stuff like that, just check out the documentation if it's wrong If you only want to find out if one template is used, it may be easier to put an id or class within it. For example, at the German Wikipedia, the deletion template uses the id "Vorlage_Löschantragstext". You could then use if (document.getElementById('Vorlage_Löschantragstext')) { stuff to do if there's this template; } else { something else; } However, the latter method of course has the disadvantage that people could just add the id without adding the template, so it's not as stable as the API result or a possible wgTemplates variable. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
