MediaWiki/skin.json

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

Notes

 1 {
 2 	"name": "<name.uc>",
 3 	"version": "1.0.0",
 4 	"author": [
 5 		"<author name>"
 6 	],
 7 	"url": "<url to page about skin>",
 8 	"descriptionmsg": "<name.lc>-skin-desc",
 9 	"namemsg": "skinname-<name.lc>",
10 	"license-name": "CC0-1.0",
11 	"type": "skin",
12 	"requires": {
13 		"MediaWiki": ">= 1.37.0"
14 	},
15 	"ValidSkinNames": {
16 		"<name.lc>": {
17 			"class": "SkinMustache",
18 			"args": [
19 				{
20 					"name": "<name.uc>",
21 					"responsive": true,
22 					"messages": [
23 						"<name.lc>-no-categories",
24 						"sitetitle",
25 						"search",
26 						"otherlanguages",
27 						"tagline",
28 						"navigation-heading"
29 					],
30 					"styles": [
31 						"mediawiki.ui.icon",
32 						"mediawiki.ui.button",
33 						"skins.<name.lc>.styles"
34 					],
35 					"scripts": [
36 						"skins.<name.lc>"
37 					]
38 				}
39 			]
40 		}
41 
42 /* ... */
43 
44 	"manifest_version": 2
45 }
ValidSkinNames: docs: https://www.mediawiki.org/wiki/Manual:$wgValidSkinNames
<name.lc>: "...same as the name of the base folder inside skins/ that contains the skins css, resources, etc..."
args
name: <name.uc> is how the skin will be shown in the listing of available skins
manifest_version: always 2 (may change in future MW releases; this is correct for 1.37.1