MediaWiki:Common.js

From AbhiprayaVedi
Revision as of 22:34, 14 January 2026 by VijayanPN (talk | contribs) ('ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും: // Show display titles in category pages instead of page names $(document).ready(function() { if ($('.mw-category').length) {...' താൾ സൃഷ്ടിച്ചിരിക്കുന്നു)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും */
// Show display titles in category pages instead of page names
$(document).ready(function() {
    if ($('.mw-category').length) {
        $('.mw-category li a').each(function() {
            var pageTitle = $(this).attr('title');
            if (pageTitle) {
                // This will use the page's actual display title
                // MediaWiki automatically uses DISPLAYTITLE in title attribute
                $(this).text(pageTitle);
            }
        });
    }
});