How can I change the "Main Page" text that's displayed at the top of the home page? I don't want to change the URL, just the name that's displayed. Thanks!
Tim
Just change this page in your wiki: MediaWiki:Mainpage [[MediaWiki:Mainpage]]
Regards, Jan
Tim Ware schrieb:
How can I change the "Main Page" text that's displayed at the top of the home page? I don't want to change the URL, just the name that's displayed. Thanks!
Tim _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Tim Ware a écrit :
How can I change the "Main Page" text that's displayed at the top of the home page? I don't want to change the URL, just the name that's displayed. Thanks!
Tim
If you have write access to skins/monobook.php, you can change this line :
<h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1>
into
<?php if ( $this->haveData('title') == wfMsgForContent('mainpage') ){ ?> <h1 class="firstHeading"> Your text </h1> <?php } else { ?> <h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1> <?php } ?>
Thanks Alexis. That did the trick! Tim
On Nov 27, 2006, at 2:07 AM, Alexis Moinet wrote:
Tim Ware a écrit :
How can I change the "Main Page" text that's displayed at the top of the home page? I don't want to change the URL, just the name that's displayed. Thanks!
Tim
If you have write access to skins/monobook.php, you can change this line :
<h1 class="firstHeading"><?php $this->data['displaytitle']!=""? $this->html('title'):$this->text('title') ?></h1>
into
<?php if ( $this->haveData('title') == wfMsgForContent('mainpage') ) { ?>
<h1 class="firstHeading"> Your text </h1> <?php } else { ?> <h1 class="firstHeading"><?php $this->data['displaytitle']!=""? $this->html('title'):$this->text('title') ?></h1> <?php } ?>
mediawiki-l@lists.wikimedia.org