On 2/9/07, Oskar Sigvardsson oskarsigvardsson@gmail.com wrote:
That is a problem with using only wikicode. I'd suggest instead using an ajaxy (not really, but kinda) solution where a javascript loads the HTML from the target page and displays it in the box (I'm thinking of the popups addon, it does that, right?) That would ensure that the headings doesn't appear in the article, since it is added after the page has been rendered by mediawiki.
Yeah, I was originally thinking of that kind of solution, like with GreaseMonkey or something. But then transclusion is so easy :)
Presumably this could be done by inserting code into common.js?
Would you want to load the disambig page when the main page loads, or only when the user clicks "show"? In the first case, you're loading two pages every time you load one page (much more work than transcluding). In the second, you lose some of the time saving that we're trying to gain with this whole scheme.
Steve