User talk:Woozle

Hi Woozle, I noticed you explained a Workaround to add Wikitext in transcluded special pages. My question isn't exactly about your workaround, but on how you managed to have your special page transcluded? In my tests it only renders a link to the special page when I enter instead of the content of the special page. If you can help me i'd greatly appreciate it since i haven't found anything on the available documentation. Thanks! 66.201.183.77 17:16, 27 October 2009 (UTC)

Woozle replies
If I remember correctly (let me know if this doesn't make sense), it depends somewhat on the extension code -- the SpecialPage class has a "transcludable" flag you can set when you initialize your descendant class. If it's set false, you get the behavior you describe, i.e. just a link.

Let me know if you need more info, and I'll go dig up an example.

--Woozle 18:38, 27 October 2009 (UTC)

Matth Reply
You definitely know what you're talking about. The last parameter of the SpecialPage constructor determines if the page can me transcluded. The actual parameter name is includable. Thank you for the tip!

One more thing, just in case you know: The output from my SpecialPage, when transcluded, is being interpreted as wikitext even though I'm outputing using $wgOut->addHTML. Any Ideas? 66.201.183.77 19:53, 27 October 2009 (UTC)

Woozle Reply #2
I'm not sure why you're having that problem. I did a test with one of my extensions that spits out HTML, and the page rendered properly. What version of MediaWiki are you using? --Woozle 10:33, 28 October 2009 (UTC)