[Mediawiki-l] remove prefix in title

Alexis Moinet alexis.moinet at fpms.ac.be
Fri Nov 10 14:58:22 UTC 2006



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>



-- 
View this message in context: http://www.nabble.com/remove-prefix-in-title-tf2602795.html#a7278475
Sent from the WikiMedia General mailing list archive at Nabble.com.




More information about the MediaWiki-l mailing list