Main Page: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mNo edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
Line 14: Line 14:


   function loadCitizenMainPage() {
   function loadCitizenMainPage() {
    $.get(mw.config.get('wgArticlePath').replace('$1', 'MediaWiki:Mainpage/Citizen'), function(data) {
$.get(mw.config.get('wgArticlePath').replace('$1', '/Mediawiki:Mainpage/Citizen'), function(data) {
       $('#main-page-content').html(data);
       $('#main-page-content').html(data);
     });
     });

Revision as of 13:44, 1 August 2024

Welcome to the default main page!

<script>

 $(function() {
   var skinPreference = mw.user.options.get('skinPreference');
   
   if (skinPreference === 'citizen') {
     loadCitizenMainPage();
   }
 });
 function loadCitizenMainPage() {

$.get(mw.config.get('wgArticlePath').replace('$1', '/Mediawiki:Mainpage/Citizen'), function(data) {

     $('#main-page-content').html(data);
   });
 }

</script>