Aide de l’API MediaWiki
Ceci est une page d’aide de l’API de MediaWiki générée automatiquement.
Documentation et exemples : https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=savetheme
(main | savetheme)
- Ce module nécessite des droits de lecture.
- Ce module nécessite des droits d’écriture.
- Ce module accepte seulement les requêtes POST.
- Source : ThemeDesignerNext
- Licence : Apache-2.0
Paramètres :
- type
- ⧼apihelp-savetheme-param-type⧽
- Ce paramètre est obligatoire.
- Une des valeurs suivantes : dark, light
- token
Un jeton « csrf » récupéré par action=query&meta=tokens
- Ce paramètre est obligatoire.
- isDefaultType
- ⧼apihelp-savetheme-param-isDefaultType⧽
- Ce paramètre est obligatoire.
- Type : booléen (détails)
- useLogoInNav
- ⧼apihelp-savetheme-param-useLogoInNav⧽
- Ce paramètre est obligatoire.
- useBackgroundOnMobile
- ⧼apihelp-savetheme-param-useBackgroundOnMobile⧽
- communityTitle
- ⧼apihelp-savetheme-param-communityTitle⧽
- Ne peut pas être plus long que 65 caractères.
- pageBackgroundColor
- ⧼apihelp-savetheme-param-pageBackgroundColor⧽
- accentColor
- ⧼apihelp-savetheme-param-accentColor⧽
- linkColor
- ⧼apihelp-savetheme-param-linkColor⧽
- bodyBackgroundColor
- ⧼apihelp-savetheme-param-bodyBackgroundColor⧽
- stickyNavBackgroundColor
- ⧼apihelp-savetheme-param-stickyNavBackgroundColor⧽
- logoImageId
- ⧼apihelp-savetheme-param-logoImageId⧽
- pageHeadingsFont
- ⧼apihelp-savetheme-param-pageHeadingsFont⧽
- Une des valeurs suivantes : BioRhyme, Inknut Antiqua, Lora, Roboto Slab, Rubik, Work Sans
- Par défaut : Rubik
- faviconImageId
- ⧼apihelp-savetheme-param-faviconImageId⧽
- communityImageId
- ⧼apihelp-savetheme-param-communityImageId⧽
- backgroundImageId
- ⧼apihelp-savetheme-param-backgroundImageId⧽
- backgroundImageStyle
- ⧼apihelp-savetheme-param-backgroundImageStyle⧽
- Une des valeurs suivantes : cover, fitCenter, fitTopLeft, fitTopRight, tileBoth, tileHorizontally, tileVertically
- communityHeaderColor
- ⧼apihelp-savetheme-param-communityHeaderColor⧽
- backgroundImageOpacity
- ⧼apihelp-savetheme-param-backgroundImageOpacity⧽
- Type: entier
- La valeur doit être entre 0 et 100.
- backgroundImageDisplay
- ⧼apihelp-savetheme-param-backgroundImageDisplay⧽
- Une des valeurs suivantes : fullScreen, header
- Par défaut : header