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@Wikimedia.org [mailto:mediawiki-l-bounces@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)
Are you refering to SpecialPage::getDescription()? (Which, by default, calls wfMsg() with the lowercase version of the page name. So if your special page is called SomeSpecialPageIWrote, you would want to look at [[MediaWiki:somespecialpageiwrote]].)
On 6/21/05, Bart Q. Simon bqs@bluefang.com wrote:
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:
That appears to be for the HTML <title> tags. I assume you're talking about the title at the top of the page.
Maybe I'm losing it :).
That's entirely possible. However, this is not an authoritative source in the areas of mental stability. ;)
mediawiki-l@lists.wikimedia.org