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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Notes==
==Notes==
* <code>"ValidSkinNames": { "{{{arg|display name}}": {...} ... }</code>: "display name" value is how the skin will be shown in the listing of available skins
{|
 
|-
Illegally marked-up example:
| valign=top |
<syntaxhighlight lang=json>
<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 19:
},
},
"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
|}

Latest revision as of 17:36, 25 March 2022

Notes

{
	"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
}
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