[Mediawiki-l] Re: How to create a new Special page

Bart Q. Simon bqs at bluefang.com
Tue Jun 21 21:02:31 UTC 2005


Yeah I'm aware that special pages are php (I made one that's working
beautifully).

I'm just trying to figure out a way to give a new special page a title
without hard-coding it in PHP. I'm pretty sure there is a way to do it
(I looked through my old custom-made special page, and there isn't a
title in there - yet it still has the right title when I browse to it).

I recollect it being something like this, but not quite like this:

http://meta.wikimedia.org/wiki/MediaWiki:Pagetitle


Maybe I'm losing it :).




-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Brion Vibber
Sent: Tuesday, June 21, 2005 4:47 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Re: How to create a new Special page

Bart Q. Simon wrote:
> I distinctly remember there was a way to add a title to a special page
> simply by entering in a URL, then adding the title to the wiki edit
> field, and then saving. The new "writing a new special page" how-to is
> very confusing - and it wants me to write PHP to get the title to show
> up. There was an easier way...
>
> I can't find this how-to anywhere- though I'm sure it used to exist.
FX
> can you walk me through how you've added a wiki page title to a
special
> page?

No such thing could possibly exist, because MediaWiki does not contain
any capability to 'create' special pages by editing wiki pages. Special
pages are code modules, defined by hook functions in the code. (Most of
the built-ins are defined in SpecialPage.php; extensions can add their
special pages from the extension initialization function.)

You might be thinking of the ability to customize the user interface
strings; go to Special:Allmessages for a complete list of editable
messages.

-- brion vibber (brion @ pobox.com)



More information about the MediaWiki-l mailing list