Sam Odio a écrit :
Does anyone know if this works in other versions of MediaWiki and with other skins? I can't seem to get it to work in 1.6.7 with a custom skin.
yes, 'titletext' seems to exist only since in 1.8 version.
you can either modify includes/SkinTemplate.php or skins/nameofyourskin.php :
in SkinTemplate.php :
add
$tpl->set( 'titletext', $this->mTitle->getText() );
in function outputPage( &$out ) { ...} (put it after $this->mTitle has been defined;)
NB : if you need to reinstall mediawiki 1.6, you'll need to change this again (though if you ever reinstall, you should upgrade to 1.8 at the same time ;-) and you won't have the problem anymore)
If you don't want to change SkinTemplate.php, you can do something like this in your skin file: <h1 class="firstHeading"> <?php global $wgTitle; echo htmlspecialchars($wgTitle->getText()); ?></h1>
but I don't know if using global is a good idea (looks like mw developers avoid to use it in skins).
You better change SkinTemplate.php or upgrade to 1.8.2