I developed a skin long time ago (https://www.mediawiki.org/wiki/Skin:MediaWikiBootstrap). Recently Jon Robson (Jdlrobson) contributed and made the skin compatible with the latest stable release MediaWiki 1.35.1. I was planning to update the skin to Bootstrap 5 for a while and few days back started to working on it.
When I started to work I found that the stable version is not stable at all and there are a number of known issue which are being ignored. For example extracting the MediaWiki installer archive file (T271447)!
**The Example skin does not work with the MW1.35.1 nor the Skin form SkinLab (https://skins.wmflabs.org).** I need some help to start building a new skin from scratch. I will also need assistance on some advanced area later but at the beginning I need a ground to stand upon.
This is a contunation the discussion started at the talk page of "Manual talk:How to make a MediaWiki skin" (https://www.mediawiki.org/wiki/Topic:W15bk2m77rjegfmk)
Steps to Reproduce:
Try to follow the steps mentioned at https://www.mediawiki.org/wiki/Manual:How_to_make_a_MediaWiki_skin
- Download MW1.35.1 form the site and install it.
- Download Example skin from Github and set as default. I downloaded both the master branch (https://github.com/wikimedia/mediawiki-skins-Example) and REL1_35 branch (https://github.com/wikimedia/mediawiki-skins-Example/tree/REL1_35). The results are same.
- Found that pages look like broken and the CSS file is missing but I assume there are other issues too.
- Try open 2: create a skin from https://skins.wmflabs.org. Then install and enable that.
I installed Mediawiki 1.35.1 by downloading the archive file. Then I downloaded the Example skin from Github. I downloaded both the master branch (https://github.com/wikimedia/mediawiki-skins-Example) and REL1_35 branch (https://github.com/wikimedia/mediawiki-skins-Example/tree/REL1_35). After that I updated the LocalSettings.php and set $wgDefaultSkin = "example"; .
Unfortunately I got a broken page looks like the CSS file is missing but I assume there are other issues too.
Then I tried Option 2. Created a new skin form Skin Lab and enabled that. It did show in a way, but as I do not have and reference I am not sure if It was showing all the parts. But which I found that there are issues in JS because the special:preferences tabs were not working and I could not change the skin from the settings.
Can you please help to start building a new skin from scratch and provide a simple example skin which works! I will also need assistance on some advance area later but at the beginning I need a ground to stand upon.
Actual Results:
Example Skin
- Pages look like broken and the CSS file is missing but I assume there are other issues too.
Skin Lab
- It was showing something but right search was placed over top right hamburger menu. So it was not working either.
special:preferences tabs were not working on any of the skin. So I could not change the skin from the settings. But it was working in the Vector skin and I changed to these news skins once and could not return to the Vector again.
I got the following error on the browser console.
Uncaught SyntaxError: missing } after function body load.php:581:33 note: { opened at line 579, column 138 load.php:579:138
Screenshots
I came to know that there are some known bugs in the stable release and T271441 was merged between the time I started facing the issues and now. I updated both includes/resourceloader/ResourceLoaderSkinModule.php and resources/Resources.php files. But the issue was not fixed and looks like same as earlier.
Expected Results:
I expected that the Example Skin and SkinLab skin both will be installed and can be used as a ground to build new skin.
Talk page is great place to start the conversation but tracing the bugs was difficult for me as I was getting responses after long hours and days of posting an updates. I expect a fast response so that I can continue working on it. The assistance I need right now is to get a working version of example skin.