User talk:Woozle

From MediaWiki.org
Jump to: navigation, search

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 {{Special:MyExtension}} 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[edit]

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[edit]

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[edit]

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)

help me with mobile fronted extension[edit]

i have mediawikiwmf9 installed. The problem is in configure mobile url template . suppose i filled m.%h0%h1. it takes to url but with error that page does not exists.or sometimes when i visit the homepage it is of mobile version. the main page is at http://punjabworks.org/w/index.php/Main_Page could you help me the mobileurl template.

Is mediawikiwmf9 an extension? I'm not familiar with it. --Woozle (talk) 02:01, 16 February 2013 (UTC)