3,319
edits
(stuff from Wikipedia) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 756:
/* END adds show/hide-button to navigation bars */
// *************************************************
// Pagetitle rewrite
//
// Rewrites the page's title, used by Template:Title
// *************************************************
$(function() {
if ($('#title-meta').length) {
var newTitle = mw.html.escape($("#title-meta").html());
// Allow italics
newTitle = newTitle.replace(/<(\/?i)>/g, '<$1>');
var edits = $("#user_masthead_since").text();
$(".firstHeading").html(newTitle);
$("#user_masthead_head h2").html(newTitle + "<small id='user_masthead_since'>" + edits + "</small>");
}
});
$(function changeTitle(){
if (!$('span.newPageTitle').html()) {
return;
}
$('h1.page-header__title').html($('span.newPageTitle').html());
});
/* END Pagetitle */
|