mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-27 23:50:30 +00:00
Doc: move config type and defaults near identity
The readme describes all of Minerva's configs and includes a type and what the default value is at the end of each section. Since the descriptions for some configs is lengthy, moving the type and default next to each config's name gives a consistent location for the information and allows for quick look up without parsing. Change-Id: I1583c11c80d9b775d93f59302eb2666b754fb412
This commit is contained in:
parent
4bf2156a2e
commit
fde1c1084c
39
README.md
39
README.md
|
@ -22,38 +22,40 @@ The following configuration options will apply only to the default mobile skin -
|
|||
|
||||
#### $wgMinervaAlwaysShowLanguageButton
|
||||
|
||||
Whether to show the language switcher button even if no languages are available
|
||||
for the page.
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `true`
|
||||
|
||||
Whether to show the language switcher button even if no languages are available
|
||||
for the page.
|
||||
|
||||
#### $wgMinervaEnableSiteNotice
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
||||
Controls whether site notices should be shown.
|
||||
See <https://www.mediawiki.org/wiki/Manual:$wgSiteNotice>.
|
||||
|
||||
#### $wgMinervaApplyKnownTemplateHacks
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
||||
|
||||
#### $wgMinervaApplyKnownTemplateHacks
|
||||
|
||||
When enabled and hacks.less exists, hacks.less workarounds are included in stylesheet. These should only be needed for Wikimedia based wikis or wikis using common templates such as Template:Infobox on those wikis.
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `false`
|
||||
|
||||
#### $wgMinervaPageActions
|
||||
|
||||
Controls which page actions, if any, are displayed. Allowed: `edit`, `watch`, `talk`, and
|
||||
`switch-language`.
|
||||
|
||||
* Type: `Array`
|
||||
* Default: `['edit', 'talk', 'watch', 'switch-language']`
|
||||
|
||||
Controls which page actions, if any, are displayed. Allowed: `edit`, `watch`, `talk`, and
|
||||
`switch-language`.
|
||||
|
||||
#### $wgMinervaCustomLogos
|
||||
|
||||
* Type: `Array`
|
||||
* Default: `[]`
|
||||
|
||||
Make the logos configurable.
|
||||
|
||||
Currently, `copyright`, `copyright-fallback`, `copyright-width`, and `copyright-height` elements are
|
||||
|
@ -91,18 +93,18 @@ Example with fallback URL:
|
|||
]
|
||||
```
|
||||
|
||||
* Type: `Array`
|
||||
* Default: `[]`
|
||||
|
||||
#### $wgMinervaAlwaysShowLanguageButton
|
||||
|
||||
Whether to show the language switcher button even if no languages are available for the page.
|
||||
|
||||
* Type: `Boolean`
|
||||
* Default: `true`
|
||||
|
||||
Whether to show the language switcher button even if no languages are available for the page.
|
||||
|
||||
#### $wgMinervaABSamplingRate
|
||||
|
||||
* Type: `Number`
|
||||
* Default: `0`
|
||||
|
||||
On a scale of 0 to 1, determines the chance a user has of entering an AB test.
|
||||
A test is divided into 3 buckets, "control" "A" and "B". Users that are selected for the
|
||||
test have an equal chance of entering bucket "A" or "B", the remaining users fall into the
|
||||
|
@ -129,6 +131,3 @@ Group membership can be debugged from the console via:
|
|||
|
||||
And since session ID is an input in calculating the group, reassignment occurs
|
||||
when clearing it: `mw.storage.session.remove('mwuser-sessionId')`.
|
||||
|
||||
* Type: `Number`
|
||||
* Default: `0`
|
||||
|
|
Loading…
Reference in a new issue