Last modified: 2011-04-14 15:12:56 UTC
Similar to the Javascript expandable categories. In [[special:whatlinkshere]]: A [+] button next to each article that does link there. Clicking the button reveals all pages that link to the article that links to the the article. Expand ad infinitum. And of course [-] button to collapse it.
To do that in JavaScript would require us to either instigate a possible infinite loop, or to use AJAX, which could end up with a repetitive and confusing loop. It might be more prudent to place a "what links to this page" link on the "what links here" list, so that one can observe, for instance, that A is linked to from B, and can opt to view what links to B.
Yes, that might be a better idea easier to implement. I've filed that as http://bugzilla.wikimedia.org/show_bug.cgi?id=7960 I think though the bug in its original form may be a long term aim, though there may be conceptual difficulties to overcome.