MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 111: Line 111:
             // Check if the related-articles div has content and add a label
             // Check if the related-articles div has content and add a label
             if (relatedArticlesHtml && relatedArticlesHtml.trim().length > 0) {
             if (relatedArticlesHtml && relatedArticlesHtml.trim().length > 0) {
             $('#related-articles').html('<h3>Related Articles</h3>' + relatedArticlesHtml).show();
             $('#related-articles').html('<p class="label-related-articles">Related Articles</p>' + relatedArticlesHtml).show();
             } else {
             } else {
             $('#related-articles').html('<p>No related articles found.</p>').show();
             $('#related-articles').html('<p>No related articles found.</p>').show();

Navigation menu