01tonythomas has uploaded a new change for review.
https://gerrit.wikimedia.org/r/99430
Change subject: Removed "Show table of contents (for pages with more than 3
headings)" from MW user preference
......................................................................
Removed "Show table of contents (for pages with more than 3 headings)" from
MW user preference
The table of content box is auto inserted, can trivially be hidden or exposed
on a per-page basis with __MAGICWORDS__, includes a sticky [show|hide] link,
and can be easily hidden with site-wide CSS as necessary. It adds to the
complexity of the user interface clutter.
The variable 'showtoc' is still set to 1, in includes/DefaultSettings.php,
thereby making the table of contents box still auto inserted.
Bug: 52813
Change-Id: If2139317dae4aa980b373c73d7b81dac627b5af8
---
M includes/Preferences.php
M languages/messages/MessagesEn.php
M maintenance/language/messages.inc
3 files changed, 0 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/30/99430/1
diff --git a/includes/Preferences.php b/includes/Preferences.php
index d498770..22aba67 100644
--- a/includes/Preferences.php
+++ b/includes/Preferences.php
@@ -748,14 +748,6 @@
'size' => 20,
'label-raw' => $context->msg( 'stub-threshold'
)->text(), // Raw HTML message. Yay?
);
-
- if ( $wgAllowUserCssPrefs ) {
- $defaultPreferences['showtoc'] = array(
- 'type' => 'toggle',
- 'section' => 'rendering/advancedrendering',
- 'label-message' => 'tog-showtoc',
- );
- }
$defaultPreferences['nocache'] = array(
'type' => 'toggle',
'label-message' => 'tog-nocache',
diff --git a/languages/messages/MessagesEn.php
b/languages/messages/MessagesEn.php
index 1bd59b2..1383dfd 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -668,7 +668,6 @@
'tog-editondblclick' => 'Edit pages on double click',
'tog-editsection' => 'Enable section editing via [edit] links',
'tog-editsectiononrightclick' => 'Enable section editing by right clicking on
section titles',
-'tog-showtoc' => 'Show table of contents (for pages with more
than 3 headings)',
'tog-rememberpassword' => 'Remember my login on this browser (for a
maximum of $1 {{PLURAL:$1|day|days}})',
'tog-watchcreations' => 'Add pages I create and files I upload to my
watchlist',
'tog-watchdefault' => 'Add pages and files I edit to my watchlist',
diff --git a/maintenance/language/messages.inc
b/maintenance/language/messages.inc
index 947dfe9..ab5188c 100644
--- a/maintenance/language/messages.inc
+++ b/maintenance/language/messages.inc
@@ -39,7 +39,6 @@
'tog-editondblclick',
'tog-editsection',
'tog-editsectiononrightclick',
- 'tog-showtoc',
'tog-rememberpassword',
'tog-watchcreations',
'tog-watchdefault',
--
To view, visit https://gerrit.wikimedia.org/r/99430
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If2139317dae4aa980b373c73d7b81dac627b5af8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits