Glaisher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/290071

Change subject: Add pages with ignored restricted {{DISPLAYTITLE}}s to a 
tracking category
......................................................................

Add pages with ignored restricted {{DISPLAYTITLE}}s to a tracking category

Added to "Pages with ignored display titles" category
(message key: "restricted-displaytitle-ignored")

Follow up to I6ae6d5d0e567ba9c86e46c32240ee51a2ca5d8d1
Bug: T135949

Change-Id: I9e0f8b1e3d39a62c13191bea6734fb136e976e0c
---
M includes/parser/CoreParserFunctions.php
M includes/specials/SpecialTrackingCategories.php
M languages/i18n/en.json
M languages/i18n/qqq.json
4 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/71/290071/1

diff --git a/includes/parser/CoreParserFunctions.php 
b/includes/parser/CoreParserFunctions.php
index 3b8b513..d8bd42e 100644
--- a/includes/parser/CoreParserFunctions.php
+++ b/includes/parser/CoreParserFunctions.php
@@ -460,6 +460,7 @@
                                return '';
                        }
                } else {
+                       $parser->addTrackingCategory( 
'restricted-displaytitle-ignored' );
                        $converter = 
$parser->getConverterLanguage()->getConverter();
                        return '<span class="error">' .
                                wfMessage( 'restricted-displaytitle',
diff --git a/includes/specials/SpecialTrackingCategories.php 
b/includes/specials/SpecialTrackingCategories.php
index b13f27b..f2eb88d 100644
--- a/includes/specials/SpecialTrackingCategories.php
+++ b/includes/specials/SpecialTrackingCategories.php
@@ -52,6 +52,7 @@
                'broken-file-category',
                'node-count-exceeded-category',
                'expansion-depth-exceeded-category',
+               'restricted-displaytitle-ignored',
        ];
 
        function execute( $par ) {
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 3000a54..37ad263 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -2004,6 +2004,8 @@
        "trackingcategories-msg": "Tracking category",
        "trackingcategories-name": "Message name",
        "trackingcategories-desc": "Category inclusion criteria",
+       "restricted-displaytitle-ignored": "Pages with ignored display titles",
+       "restricted-displaytitle-ignored-desc": "The page has an ignored 
<code><nowiki>{{DISPLAYTITLE}}</nowiki></code> because it is not equivalent to 
the page's actual title.",
        "noindex-category-desc": "The page is not indexed by robots because it 
has the magic word <code><nowiki>__NOINDEX__</nowiki></code> on it and is in a 
namespace where that flag is allowed.",
        "index-category-desc": "The page has a 
<code><nowiki>__INDEX__</nowiki></code> on it (and is in a namespace where that 
flag is allowed), and hence is indexed by robots where it normally wouldn't 
be.",
        "post-expand-template-inclusion-category-desc": "The page size is 
bigger than <code>$wgMaxArticleSize</code> after expanding all the templates, 
so some templates were not expanded.",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index c4278ec..5e07644 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -2184,6 +2184,8 @@
        "trackingcategories-msg": "Header for the message column of the table 
on [[Special:TrackingCategories]]. This column lists the mediawiki message that 
controls the tracking category in question.\n{{Identical|Tracking category}}",
        "trackingcategories-name": "Header for the message column of the table 
on [[Special:TrackingCategories]]. This column lists the name of the tracking 
category in the content language.",
        "trackingcategories-desc": "Header for the message column of the table 
on [[Special:TrackingCategories]]. This column lists the inclusion criteria for 
the category.",
+       "restricted-displaytitle-ignored": "This message is used as a category 
name for a [[mw:Special:MyLanguage/Help:Tracking categories|tracking category]] 
where pages are placed automatically if a page has an ignored display 
title.\n\nSee also:\n* 
{{msg-mw|restricted-displaytitle-ignored-desc}}\n*{{msg-mw|restricted-displaytitle}}",
+       "restricted-displaytitle-ignored-desc": "Pages with ignored display 
titles category description. Shown on [[Special:TrackingCategories]].\n\nSee 
also:\n* {{msg-mw|restricted-displaytitle-ignored}}",
        "noindex-category-desc": "No-index category-description. Shown on 
[[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|Noindex-category}}",
        "index-category-desc": "Index category-description. Shown on 
[[Special:TrackingCategories]].\n\nSee also:\n* {{msg-mw|Index-category}}",
        "post-expand-template-inclusion-category-desc": "Post expand template 
inclusion category description. Shown on [[Special:TrackingCategories]].\n\nSee 
also:\n* {{msg-mw|Post-expand-template-inclusion-category}}",

-- 
To view, visit https://gerrit.wikimedia.org/r/290071
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9e0f8b1e3d39a62c13191bea6734fb136e976e0c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to