Debian Codegraph @

skins/Vector/doc/configuration/configuration.md

raw symbols SCIP
1 # Vector Configuration Options and User Preferences
2
3 For documentation on Minerva preferences and configuration options see [https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/master/README.md](https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/master/README.md)
4
5 ## Topics
6
7 [Using Query Parameters](#using-query-parameters)
8
9 [Configuration Options Glossary](#configuration-options-glossary)
10
11 [Developer Only Configuration](#developer-only-configuration-temporary)
12
13 [Site-level Configuration](#site-level-configuration)
14
15 [User Preference Options Glossary](#user-preference-options-glossary)
16
17 ## Using Query Parameters
18
19 Query parameters can be used to override user preferences and/or configuration within Vector. We typically use these during development to aid testing and perform community outreach. They are not intended to be used by standard users and should always be considered temporary.
20
21 The following are examples of query parameter usage:
22
23 In the URL:
24
25 - https://en.wikipedia.beta.wmflabs.org/wiki/Spain?vectormainmenupinned=0
26
27 - https://en.wikipedia.beta.wmflabs.org/wiki/Spain?vectormainmenupinned=1
28
29 - https://en.wikipedia.beta.wmflabs.org/wiki/Spain?vectorpagetoolspinned=0
30
31 - https://en.wikipedia.beta.wmflabs.org/wiki/Spain?vectorpagetoolspinned=1
32
33 Note: There is currently a bug relating to certain querystring parameters which is documented in [https://phabricator.wikimedia.org/T347900](https://phabricator.wikimedia.org/T347900)
34
35
36 ## Configuration Options Glossary
37
38 Each option controls specific aspects of the Vector skin's behavior and appearance, and some are configurable per-wiki to accommodate diverse preferences and requirements.
39
40 The following explains each configuration option in the `InitialiseSettings.php` file from the `mediawiki-config` repo:
41
42
43 ## Developer-only Configuration (Temporary)
44
45 Certain configuration is used by us during rollout of new features with the expectation that they will later be removed. At times temporary configuration may become Site-level configuration if new requirements emerge post-deployment.
46
47 Do not rely on any of the feature flags documented here. They should not be considered stable.
48
49 - wgVectorPromoteAddTopic
50
51 - Determines whether the Add topic feature is promoted in discussions.
52
53 - Default: `false`
54
55 - Removal ticket: [https://phabricator.wikimedia.org/T331312](https://phabricator.wikimedia.org/T331312)
56
57 - wgVectorDefaultSkinVersionForExistingAccounts
58
59 - Sets the default skin version for existing accounts in Vector skin. Exists to assist roll out of desktop improvements project.
60
61 - Default: `'2'`
62
63 - `legacy-vector` set to `'1'`.
64
65 - Removal ticket: [https://phabricator.wikimedia.org/T358273](https://phabricator.wikimedia.org/T358273)
66
67 - wgVectorDefaultSkinVersionForNewAccounts
68
69 - Sets the default skin version for new accounts in Vector skin. Exists to assist roll out of desktop improvements project.
70
71 - Default: `'2'`
72
73 - `legacy-vector` set to `'1'`.
74
75 - Removal ticket: [https://phabricator.wikimedia.org/T358273](https://phabricator.wikimedia.org/T358273)
76
77 - wgVectorStickyHeader
78
79 - Determines whether a sticky header is provided.
80
81 - Removal ticket: [https://phabricator.wikimedia.org/T332728](https://phabricator.wikimedia.org/T332728)
82
83 - wgVectorLanguageInMainPageHeader
84
85 - Shows language selector beside the main page title.
86
87 - Removal ticket: [https://phabricator.wikimedia.org/T179159](https://phabricator.wikimedia.org/T179159)
88
89 - wgVectorNightMode
90
91 - Enables the night mode feature in client preferences
92
93 - Removal ticket: [https://phabricator.wikimedia.org/T179159](https://phabricator.wikimedia.org/T179159)
94
95 - wgVectorResponsive
96
97 - Enables an experimental responsive version of the Vector 2022 skin.
98
99 - Removal ticket: [https://phabricator.wikimedia.org/T106463](https://phabricator.wikimedia.org/T106463)
100
101 - wgVectorWebABTestEnrollment
102
103 - Configures web A/B test enrollment for the Vector skin. This is intended to only be used by developers, as it requires writing associated code.
104
105 - Specifies experiment details and sampling rates.
106
107 - Note: The assumption is that A/B testing will always be occurring in this skin so would never be removed unlike the other flags.
108
109 - wgVectorWrapTablesTemporary
110 - When enabled, certain tables will be wrapped in a div to make them horizontally scrollable when no
111 space is available.
112 - Removal ticket: [https://phabricator.wikimedia.org/T361737](https://phabricator.wikimedia.org/T361737)
113
114 ## Site-level Configuration
115
116 Different projects have different needs, so some configuration on the site level is necessary. Site level configuration should be considered permanent and removing configuration should be carefully managed and based on usage.
117
118 - wgVectorTableOfContentsCollapseAtCount
119
120 - Sets the number of sections at which the Table of Contents collapses.
121
122 - Default: `28`
123
124 - wgVectorMaxWidthOptions
125
126 - Configures maximum width options for the Vector skin.
127
128 - Defines exclusions and inclusions for specific pages.
129
130 - wgVectorLanguageInHeader
131
132 - Controls language display in the header for the Vector skin. When disabled languaged appear in the sidebar.
133
134 - Configurable for different wikis. This is currently used on projects like Wikimedia Commons, MediaWiki and Wikidata which do not have separate language sites.
135
136 - wgVectorWvuiSearchOptions
137
138 - Configures search options for the Vector skin.
139
140 - Includes thumbnail and description display.
141
142 - wgVectorSearchApiUrl
143
144 - Allows site to specify an alternative API for search queries. If not set uses default MediaWiki search. Mostly used for development purposes.
145
146 ## User Preference Options Glossary
147
148 The following are interface elements or settings that users can customize within the Vector skin, such as toggling night mode, adjusting the width of the content area, or changing the font size.
149
150 - Vector Limited Width (`vector-limited-width`): This preference allows the user to specify whether they prefer a limited width It can be set to either 1 (enabled) or 0 (disabled), which will stretch the article body to full width.
151
152 - Vector Page Tools Pinned (`vector-page-tools-pinned`): Indicates whether the user wants the page tools menu to be pinned (visible) to the right of the content body. It can be set to either 1 (pinned) or 0 (not pinned).
153
154 - Vector Main Menu Pinned (`vector-main-menu-pinned`): Specifies whether the user prefers to have the main menu pinned (visible) to the left of the content body. It can be set to either 1 (pinned) or 0 (not pinned).
155
156 - Vector Table of Contents (TOC) Pinned (`vector-toc-pinned`): Determines if the user wants the table of contents on the left side to be pinned (visible) on desktop. It can be set to either 1 (pinned) or 0 (not pinned).
157
158 - Vector Appearance Pinned (`vector-appearance-pinned`): Indicates whether the user wants the appearance menu to be pinned (visible) on desktop. It can be set to either 1 (pinned) or 0 (not pinned).
159
160 - Vector Font Size (`vector-font-size`): Allows the user to select the preferred font size for the Vector. It can be set to 0 for regular, 1 for large, or 2 for x-large.
161
162 - Vector Night Mode (`vector-theme`): Specifies the preference for night mode in Vector. It can be set to 'day' for (disabled), 'night' (enabled), and 'os' (automatic based on system preferences). For logged in users this feature can be forced on via the ?vectornightmode=night or ?vectornightmode=1 query string parameter.