I think he means that even after making the appropriate change in the file includes/SpecialPage.php the inclusion of {{Special:Random}} on a page doesn't embed the content of a random page but an 'empty page' resp. nothing at all.
At least that's the effect I see on my wiki (release 1.11.1). Other special pages work fine but Special:Random doesn't work. But I have no idea why.
Cheers, Gu
Quoting Michael Schmarck michael.schmarck@habmalnefrage.de:
Helmut Schneider jumper99@gmx.de wrote:
zehetner@molgen.mpg.de wrote:
I would like to display a random page on the Main Page. I tried to use {{Special:Random}} and {{Special:Randompage}} which only displays the link to Special:Random[page] but not a page itself. Is it possible to embed Special:Random at all?
http://meta.wikimedia.org/wiki/Help:Embed_page#Embedded_Special_Pages
Unfortunately the page is empty. I tried
What page is empty? The one at meta.wikimedia.org? It displays just fine for me.
As you seem to be having problems accessing the page, let me quote the content for you:
| Embedded Special Pages | | The default install of MediaWiki allows you to embed only selected | special pages. (See Help:Special_pages#Miscellaneous.) To include | an otherwise "unembedable" special page, you must edit the $mList | array in the file includes/SpecialPage.php. Each entry is in the | format | | 'Pagename' => array( 'PageType', 'Pagename') | | The possible values for PageType are SpecialPage, UnlistedSpecialPage, | and IncludableSpecialPage. | | Find the entry for the page you want to embed and change the PageType | to IncludableSpecialPage. You will now be able to include/embed the | special page using the include syntax: {{Special:Pagename}}. | | Note: changing an UnlistedSpecialPage will show it in | Special:Specialpages. (Can this array be changed to allow | multiple page types?)
Michael
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l