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
No edit summary
No edit summary
 
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:
{|
{|
|-
|-

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