Munurin millum rættingarnar hjá "MediaWiki:Common.js"
Content deleted Content added
Maintenance: Use wgIsMainPage |
|||
Linja 269:
// </nowiki>An element with id=DisableRealTitle disables the function.
var disableRealTitle = 0; // users can disable this by making this true from their monobook.js
if (mw.config.
$(function() {
try {
Linja 284:
// calculate whether the title is pasteable
var verifyTitle = realTitleText.replace(/^ +/, ""); // trim left spaces
verifyTitle = verifyTitle
// if the namespace prefix is there, remove it on our verification copy. If it isn't there, add it to the original realValue copy.
if (mw.config.
if (mw.config.values.wgCanonicalNamespace == verifyTitle.substr(0, mw.config.values.wgCanonicalNamespace.length).replace(/ /g, "_") && verifyTitle.charAt(mw.config.values.wgCanonicalNamespace.length) == ":") {
verifyTitle = verifyTitle.substr(mw.config.values.wgCanonicalNamespace.length + 1);
Linja 299:
verifyTitle = verifyTitle.replace(/^ +/, "").replace(/ +$/, ""); // trim left and right spaces
verifyTitle = verifyTitle.replace(/_/g, " "); // underscores to spaces
verifyTitle = verifyTitle
isPasteable = (verifyTitle == mw.config.values.wgTitle);
|