Forum:DISPLAYTITLE question

Hello. I have a question about the DISPLAYTITLE magic word. I tried to use it on Category pages, but it won't change the display title. Am I missing something, or is there another way to change the display title of Categories and possibly other namespaces? Thanks in advance for any support. 07:40, November 1, 2012 (UTC)


 * Taking a look on this page may help you out.


 * Didn't work in the Category namespace. Thanks, though. I'll try to keep looking.  09:14, November 1, 2012 (UTC)


 * I've tried pretty much everything possible; it just doesn't work in the category namespace, sorry. -Sherm/Talk [17:28, November 1, 2012 (UTC)]


 * I just tested w:c:dev:DISPLAYTITLE - it does work in the category namespace. I'll take a look at your wiki and see if I can figure out what went wrong. -452 17:34, November 1, 2012 (UTC)
 * this revision should have worked - because that's exactly what worked for me. I found your test category, but since Template:DISPLAYTITLE is deleted, I can't see exactly what was in it. Please restore that revision of common.js, and that template, and I'll take a look at why it's not working for you. -452 17:36, November 1, 2012 (UTC)

Okay. So the .js and template have been restored. I've also put the template on the category page. Still isn't updating. Do I need to let it sit for a while? Where were you testing it? Also, is it possible to use this to change the title of the article completely? For example, we use subpages for our chapter summaries. Would it be possible to use this code or another code to change "The Eye of the World/Prologue" to "Dragonmount" and so on? Thanks for any help. 02:53, November 2, 2012 (UTC)


 * It works fine. Press Ctrl+F5. Lunarity 03:53, November 2, 2012 (UTC)
 * I'm seeing italics in the title of Category:Atha'an_Miere. For future reference, you almost always need to hard refresh or clear your browsers cache after updating javascript and CSS so that your browser downloads the updated files. (I think there's a message at the top of MediaWiki:Common.js about that)
 * Yes, with this particular script, you can change the title of articles completely, your example is possible, although I wouldn't advise doing it often because it will likely cause confusion.  Removing the name of the parent page from a subpage is definitely a good use for this script though, I hadn't thought of that, so thanks. -452  04:04, November 2, 2012 (UTC)

I hard refreshed both pages. I cleared the cache, edited and saved. Everything I could think of. Still not showing up. IE 8 and the newest version of Firefox from two different computers, logged in and logged out. I've also put the template on http://wot.wikia.com/wiki/Wotwiki:Sandbox with the template set to "This is the Sandbox" but I am still seeing Wotwiki:Sandbox. I'll wait until the wiki-wide cache clears tonight and see if that does the trick. 06:20, November 2, 2012 (UTC)

Just thought of this; would anything in my global java page interfere with the css on my wiki? 06:23, November 2, 2012 (UTC)
 * As far as I'm aware, a java page shouldn't effect javascript, as they're completely different technologies.
 * I see the title "This is the Sandbox", it's really weird that refreshing and clearing the cache isn't working for you. There's two things we can test:
 * First, try logging out and seeing if it works. If it still doesn't, try a different browser.
 * Oh, I just tried IE8, and it's not working in that either logged in or logged out. But it is working in Firefox 3.6.8 (I normally use Chrome, and it's working in that.)
 * Looking at that script, I assumed it would work in IE, I'll see if I can get it working. -452 06:41, November 2, 2012 (UTC)
 * Quick and dirty and working in all 3 browsers:

$('.WikiaPageHeader h1').html($('.changePageTitle').html);
 * Replace the contents of the fixPageName function with just that line. -452 06:51, November 2, 2012 (UTC)

Thank you so much, 452. Works now. There is a very slight delay before it updates, but I can live with that. Again, thanks very much! 06:57, November 2, 2012 (UTC)
 * No worries, I like getting things to work. :) And the reason for the delay is because no scripts run until the page has finished loading, so there's nothing we can do about that. (and thanks to User:Cafeinlove for mentioning w:c:dev:DISPLAYTITLE in the first place.) -452 07:02, November 2, 2012 (UTC)


 * This line is fine:


 * But the line below it no longer serves a purpose and also produces a ReferenceError:


 * Agreed, but there was nothing wrong with my instructions, which were to replace the contents of the function, not the function itself. I didn't check to see if Mainphramephreak followed them. -452 17:52, November 2, 2012 (UTC)
 * Agreed, but there was nothing wrong with my instructions, which were to replace the contents of the function, not the function itself. I didn't check to see if Mainphramephreak followed them. -452 17:52, November 2, 2012 (UTC)


 * No problem. I wasn't criticizing your instructions. I simply stumbled over the error and thought it's my duty to point it out. That's all. --

Thanks, Pecoes. I've removed the second line. 14:08, November 2, 2012 (UTC)