Forum:Don't want the original title to appear in a subpage title

Hello,

I've just made this page, which as you can see is a subpage, however I don't want the original title to be seen in the title of the subpage. Is this possible? I've tried the template Displaytitle, but that doesn't work.. --Zantam03 13:05, May 6, 2010 (UTC)


 * I've been experimenting with just that. This function should do it, to all pages with a slash in their name. If you want to restrict it to specific pages/types of pages, you'll need to add an "if" part.

$(function {    var wgTitleLastPart = wgTitle.split('/').slice(-1)[0] //get the "last" part of the pagename    $('h1.firstHeading').html(wgTitleLastPart); //change title to last part });
 * 13:47, May 6, 2010 (UTC)


 * Also note a major disadvantage of altering the displayed page title: if the exact title isn't displayed, other editors might create wrong links, etc. To me, there's also no real advantage of creating this article as a subpage if you don't want to display the title like that anyway, but maybe I'm missing something. I think the easiest option is to create this article as a normal page, not as a subpage, with the correct title. Success! --BramTalk! 13:57, May 6, 2010 (UTC)


 * Well I guess you have a point Bram, but I like it this way. Let's just say it's a source, based on a source and therefore a sub and I can always create a redirect to solve the linking issue. Btw, this '< back to' thing that appears at the top of a subpage, is there any way to get it there manually? Without a page being a subpage? --Zantam03 14:31, May 6, 2010 (UTC)
 * Edit: forgot to thank Ose --> Thanks! --Zantam03 14:31, May 6, 2010 (UTC)


 * @Ose: I guess that had to be implemented in MediaWiki Common.css? At least, that's what I just did, but it doesn't appear to be working. Is it activated automically or do I have to change something in the subpage as well? --Zantam03 14:57, May 6, 2010 (UTC)


 * Err, function means JavaScript, not CSS. It goes in common.js. 15:10, May 6, 2010 (UTC)


 * Yea ok thanks, didn't know that, can happen. Not at all a JS or computer expert tbh, but thanks --Zantam03 15:59, May 6, 2010 (UTC)