Michael Schmarck michael.schmarck@habmalnefrage.de wrote:
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?
According to the link above I changed includes/SpecialPage.php:
/* 'Randompage' => array( 'SpecialPage', 'Randompage' ), */ 'Randompage' => array( 'IncludableSpecialPage', 'Randompage' ),
Within my mediawiki distribution I created a page called 'Test' with the following content:
{{Special:Randompage}}Randompage {{Special:RandomPage}}RandomPage {{Special:Random}}Random
After saving the page the only content I can see is:
Randompage RandomPage Random
For further testing I made another change to includes/SpecialPage.php:
/* 'Imagelist' => array( 'SpecialPage', 'Imagelist' ), */ 'Imagelist' => array( 'IncludableSpecialPage', 'Imagelist' ),
Again I created a test page with the following content:
{{Special:Imagelist}}
The image map appears, so I assume that I changed SpecialPage.php correctly. What works for Special:Imagelist does not for Special:Random.
Apologies if (obviously) my english was not good enough to describe the actual situation. I hope this posting clears out the problem.
Any help is still appreciated.