Suppressing definition display based on context tag?

Fragment of a discussion from User talk:Yair rand
Jump to navigation Jump to search

Not in any "clean" way, afaik, at least not without modifying the context templates. It would be technically possible to just have javascript search the page for things that look like context tags (looking for ib-content classes, probably), searching for links to a particular destination, and then going to the definition's li tag, and then hiding it. Note that this wouldn't hide things like translation tables. Here's the code for hiding senses with {{obsolete}}: $(function($){$(".ib-content>a[href=\"/wiki/Appendix:Glossary#obsolete\"]").parent().parent().hide()});

22:30, 25 December 2012