MediaWiki/skin.json: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
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..." |
No edit summary |
||
| 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:
{
"name": "<name.uc>",
"version": "1.0.0",
"author": [
"<author name>"
],
"url": "<url to page about skin>",
"descriptionmsg": "<name.lc>-skin-desc",
"namemsg": "skinname-<name.lc>",
"license-name": "CC0-1.0",
"type": "skin",
"requires": {
"MediaWiki": ">= 1.37.0"
},
"ValidSkinNames": {
"<name.lc>": {
"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
}
|
|
