Dinth a ?crit :
in monobook.php change :
<h1 class="firstHeading"><?php $this->text('title') ?></h1>
into
<?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?>
<h1 class="firstHeading"><?php $this->text('title') ?></h1> <?php } ?>
How make this affects 'Main Page' and 'Main Page/Page 1', 'Main Page/Page 2', etc?
this should work :
<?php if( $this->haveData('title') != wfMsgForContent('mainpage') && strncmp( $this->haveData('title'), wfMsgForContent('mainpage') . "/" , strlen(wfMsgForContent('mainpage')) + 1 ) != 0 ) { ?> <h1 class="firstHeading"><?php $this->text('title') ?></h1> <?php } ?>
It works but not with all my Main Pages. On http://www.wikipasy.pl - It works with "Encyklopedia KS Cracovia online", "Encyklopedia KS Cracovia online/Hokej mezczyzn", "Encyklopedia KS Cracovia online/Koszykowka mezczyzn", but not with "Encyklopedia KS Cracovia online/Siatkowka mezczyzn"
Dinth a écrit :
It works but not with all my Main Pages. On http://www.wikipasy.pl - It works with "Encyklopedia KS Cracovia online", "Encyklopedia KS Cracovia online/Hokej mezczyzn", "Encyklopedia KS Cracovia online/Koszykowka mezczyzn", but not with "Encyklopedia KS Cracovia online/Siatkowka mezczyzn"
All of them work for me, no main page displayed at all (though these pages seem to not exist - I get the message : (Nie ma jeszcze artykułu o tym tytule. Wybierz Edytuj by go rozpocząć.) ).
Consider force-refresh the cache of your internet browser (ctrl+F5)
Alexis Moinet a écrit :
though these pages seem to not exist - I get the message : (Nie ma jeszcze artykułu o tym tytule. Wybierz Edytuj by go rozpocząć.
Just forget what I said about this, I was not in UTF-8 mode :-), these pages exist, but I still don't see any "Main Page" header at all, so I maintain the force-refresh tip.
mediawiki-l@lists.wikimedia.org