From 0f37222bbb1b75b2e427650fa6d119389710c7c7 Mon Sep 17 00:00:00 2001 From: SFarida Date: Mon, 11 Feb 2019 08:11:37 +0100 Subject: [PATCH] Add new Linter category wikilink-in-extlink Add the category in extension.json and descriptions of the category in qqq.json and en.json Bug: T202905 Change-Id: Ie2e76c653ac9aa80bc7c32f3227323225a0cd8e5 --- extension.json | 5 +++++ i18n/en.json | 3 +++ i18n/qqq.json | 3 +++ 3 files changed, 11 insertions(+) diff --git a/extension.json b/extension.json index 6d165353..c63aeaf2 100644 --- a/extension.json +++ b/extension.json @@ -161,6 +161,11 @@ "enabled": true, "priority": "high", "parser-migration": true + }, + "wikilink-in-extlink": { + "dbid": 18, + "enabled": true, + "priority": "medium" } }, "LinterSubmitterWhitelist": { diff --git a/i18n/en.json b/i18n/en.json index 4298c610..a252d258 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -27,6 +27,7 @@ "linter-pager-unclosed-quotes-in-heading-details": "Unclosed quote which leaks out of the table of contents", "linter-pager-multiline-html-table-in-list-details": "Multiline HTML5 table inside a list, rendered differently in HTML5 and Tidy", "linter-pager-misc-tidy-replacement-issues-details": "Miscellaneous markup errors affecting Tidy replacement", + "linter-pager-wikilink-in-extlink-details": "Nested wikilinks in external links that need to be fixed", "linter-category-fostered": "Fostered content", "linter-category-fostered-desc": "These pages have fostered content.", "linter-category-obsolete-tag": "Obsolete HTML tags", @@ -61,6 +62,8 @@ "linter-category-multiline-html-table-in-list-desc": "Tidy moves table inside or outside the list, while HTML5 extends the list to the rest of the page.", "linter-category-misc-tidy-replacement-issues": "Miscellaneous Tidy replacement issues", "linter-category-misc-tidy-replacement-issues-desc": "These pages have other issues that affect rendering when Tidy is replaced", + "linter-category-wikilink-in-extlink": "Links in links", + "linter-category-wikilink-in-extlink-desc": "These pages have wikilinks in external links that could be fixed", "linter-numerrors": "($1 {{PLURAL:$1|error|errors}})", "linter-page-title-edit": "$1 ($2)", "linter-page-edit": "edit", diff --git a/i18n/qqq.json b/i18n/qqq.json index ae012def..da9e6628 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -32,6 +32,7 @@ "linter-pager-unclosed-quotes-in-heading-details": "Table column heading. See [[:mw:Help:Extension:Linter/unclosed-quote-in-heading]].", "linter-pager-multiline-html-table-in-list-details": "Table column heading", "linter-pager-misc-tidy-replacement-issues-details": "Table column heading", + "linter-pager-wikilink-in-extlink-details": "Table column heading", "linter-category-fostered": "Name of lint error category. See [[:mw:Help:Extension:Linter/fostered]]", "linter-category-fostered-desc": "Description of category", "linter-category-obsolete-tag": "Name of lint error category. See [[:mw:Help:Extension:Linter/obsolete-tag]]", @@ -66,6 +67,8 @@ "linter-category-multiline-html-table-in-list-desc": "Description of category", "linter-category-misc-tidy-replacement-issues": "Name of lint error category. See [[:mw:Help:Extension:Linter/misc-tidy-replacement-issues]]", "linter-category-misc-tidy-replacement-issues-desc": "Description of category", + "linter-category-wikilink-in-extlink":"Name of lint error category. See [[:mw:Help:Extension:Linter/wikilink-in-extlink]]", + "linter-category-wikilink-in-extlink-desc": "Description of category", "linter-numerrors": "Shown after a category link to indicate how many errors are in that category. $1 is the number of errors, and can be used for PLURAL.\n{{Identical|Error}}", "linter-page-title-edit": "Used in a table cell. $1 is a link to the page, $2 is pipe separated links to the edit and history pages, the link text is {{msg-mw|linter-page-edit}} and {{msg-mw|linter-page-history}}", "linter-page-edit": "Link text for edit link in {{msg-mw|linter-page-title-edit}}\n{{Identical|Edit}}",