To create a page. Send a message
MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: // Insert TopMessage template at the beginning of content on all pages $(document).ready(function() { if ($('#mw-content-text').length) { $('#mw-content-text').prepend('{{TopMessage}}'); } });") |
No edit summary |
||
Line 6: | Line 6: | ||
} | } | ||
}); | }); | ||
/* Top section styling */ | |||
.top-message { | |||
background-color: #fff8e1; | |||
border: 2px solid #ffeb3b; | |||
padding: 15px; | |||
text-align: center; | |||
font-size: 16px; | |||
margin-bottom: 20px; | |||
} |
Revision as of 08:05, 27 August 2025
/* Any JavaScript here will be loaded for all users on every page load. */ // Insert TopMessage template at the beginning of content on all pages $(document).ready(function() { if ($('#mw-content-text').length) { $('#mw-content-text').prepend('{{TopMessage}}'); } }); /* Top section styling */ .top-message { background-color: #fff8e1; border: 2px solid #ffeb3b; padding: 15px; text-align: center; font-size: 16px; margin-bottom: 20px; }