(2009-10-27) transcluding SpecialPagesEdit

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! 17:16, 27 October 2009 (UTC)[]

Woozle repliesEdit

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 ReplyEdit

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? 19:53, 27 October 2009 (UTC)[]

Woozle Reply #2Edit

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

(2013-02-16) help me with mobile fronted extensionEdit

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


Hi I have a question I'm using a short link in my MediaWiki and this has caused the visual editor to encounter an error.

Error contacting the Parsoid/RESTBase server (HTTP 400)

i use this in my localsetting : if ( $_SERVER['REMOTE_ADDR'] == 'YOUR_SERVER_IP' ) {

 $wgGroupPermissions['*']['read'] = true;
 $wgGroupPermissions['*']['edit'] = true;


and set YOUR_SERVER_IP to site ip But I do not know what to write REMOTE_ADDR

please help me

Woozle repliesEdit

Parsoid is a bit of a mystery to me still, at this point. I think you're trying to solve the same problem I was trying to solve here, and the information offered in that thread didn't work for me. (It turned out I had an error in a different extension which was invisibly crashing the back-end... but even now, it doesn't work very reliably.)

What you might try is putting in some debugging code to log the values you're getting, and from there you can work out what needs to be filled in.

--Woozle (talk) 14:47, 2 September 2021 (UTC)[]

Thanks for the help

I have little knowledge of coding, so there is no sure solution? now The problem will be solved only by remove shortlink on my wiki.