Difference between revisions of "MediaWiki/skin.json"
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. | + | "version": "1.0.0", |
"author": [ | "author": [ | ||
− | " | + | "<author name>" |
], | ], | ||
− | "url": " | + | "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. | + | "<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 | + | "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 }
|
|