Thread:Sactage-fduser/@comment-4795804-20170331085035/@comment-27345308-20170407170202

The bug patch anon was trying to link is https://phabricator.wikimedia.org/T54053

Why do you want to check if the template is transcluded through HTML? Because then users can use replacement wikitext to generate the same HTML as generated by the template to achieve the same effect. You could just use a regex on  to check if   is in the page, it shouldn't be too complicated.