The magic words used on a particular page should be listed at ?action=info in MediaWiki. These are tracked by the page_props table and include magic words such as NEWSECTIONLINK, NOTOC, etc. This is interesting metadata about the page.
In the context of this bug, "magic words" refers to double-underscore magic words only. The other types of magic words will be filed as separate bugs.