[Mediawiki-l] [solution] remove prefix in title
Florian Knorn
florian at knorn.org
Sat Nov 11 11:54:13 UTC 2006
Dear Alexis,
thank you very much for your help. This is a much more elegant solution
than my quick&dirty explode... workaround.
Best regards to all,
Florian
Alexis Moinet wrote:
>
> Florian Knorn wrote:
>> Like remove the "User:" in "User:Peter", or "Special:" in
>> "Special:Search" to just get "Peter" or "Search" as page titles?
>>
>
> looks like my e-mail get lost (posted 5 hours ago and still not in the
> mailing list), (sorry if this answer is received two times)
>
> in monobook.php (mediawiki 1.8.2) , find the line :
>
> <h1 class="firstHeading"><?php
> $this->data['displaytitle']!=""?$this->html('title'):$this->text('title')
> ?></h1>
>
> and replace the two ('title') with ('titletext')
>
> <h1 class="firstHeading"><?php
> $this->data['displaytitle']!=""?$this->html('titletext'):$this->text('titletext')
> ?></h1>
>
> Alexis
>
> PS : same thing in the <head> of monobook.php : change <title><?php
> $this->text('pagetitle') ?></title> to <title><?php $this->text('titletext')
> ?></title>
>
>
>
More information about the MediaWiki-l
mailing list