Difference between revisions of "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
(Created page with "==Notes== * <code>"ValidSkinNames": { "{{{arg|display name}}": {...} ... }</code>: "display name" value is how the skin will be shown in the listing of available skins Illega...")
 
Line 3: Line 3:
  
 
Illegally marked-up example:
 
Illegally marked-up example:
<syntaxhighlight lang=json>
+
{|
 +
|-
 +
| valign=top |
 +
<syntaxhighlight lang=json line>
 
{
 
{
 
"name": "<name.uc>",
 
"name": "<name.uc>",
"version": "1.1.0",
+
"version": "1.0.0",
 
"author": [
 
"author": [
"Woozalia Staddon"
+
"<author name>"
 
],
 
],
"url": "https://psycrit.com/w/",
+
"url": "<url to page about skin>",
 
"descriptionmsg": "<name.lc>-skin-desc",
 
"descriptionmsg": "<name.lc>-skin-desc",
 
"namemsg": "skinname-<name.lc>",
 
"namemsg": "skinname-<name.lc>",
Line 19: Line 22:
 
},
 
},
 
"ValidSkinNames": {
 
"ValidSkinNames": {
"<name.uc>": {                   // how the skin will be shown in the listing of available skins
+
"<name.lc>": {
 
"class": "SkinMustache",
 
"class": "SkinMustache",
 +
"args": [
 +
{
 +
"name": "<name.uc>",
 +
"responsive": true,
 +
"messages": [
 +
"<name.lc>-no-categories",
 +
"sitetitle",
 +
"search",
 +
"otherlanguages",
 +
"tagline",
 +
"navigation-heading"
 +
],
 +
"styles": [
 +
"mediawiki.ui.icon",
 +
"mediawiki.ui.button",
 +
"skins.<name.lc>.styles"
 +
],
 +
"scripts": [
 +
"skins.<name.lc>"
 +
]
 +
}
 +
]
 +
}
  
 
/* ... */
 
/* ... */
  
"manifest_version": 2                     // always 2 (may change in future MW releases; this is correct for 1.37.1
+
"manifest_version": 2
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
| valign=top |
 +
: '''ValidSkinNames''': docs: https://www.mediawiki.org/wiki/Manual:$wgValidSkinNames
 +
:: '''{{arg|name.lc}}''': "...same as the name of the base folder inside skins/ that contains the skins css, resources, etc..."
 +
::: '''args'''
 +
:::: '''name''': {{arg|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
 +
|}

Revision as of 17:34, 25 March 2022

Notes

  • "ValidSkinNames": { "{<display name>": {...} ... }: "display name" value is how the skin will be shown in the listing of available skins

Illegally marked-up example:

 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