From: Jackmcbarn Date: Fri, 6 Jun 2014 18:27:54 +0000 (-0400) Subject: Change MostLinkedTemplates to MostTranscludedPages X-Git-Tag: 1.31.0-rc.0~15381^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=d73b4e07c0b816c29047161ec1a657bb6b5d8b69;p=lhc%2Fweb%2Fwiklou.git Change MostLinkedTemplates to MostTranscludedPages Rename Special:MostLinkedTemplates to Special:MostTranscludedPages, and allow it to return pages from any namespace. Change-Id: I27c2fb50f77aef760f8c7006ae48297451230c6f --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 25add2252f..e6a0dd8cb5 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -71,6 +71,8 @@ production. * (bug 20210) Special pages may now provide autocompletion of their subpage names in search suggestions. Right now the only useful implementation is in Special:Log, but more are to come. +* Special:MostLinkedTemplates is no longer limited to transclusions from the + Template namespace. === Bug fixes in 1.24 === * (bug 49116) Footer copyright notice is now always displayed in user language @@ -146,6 +148,7 @@ changes to languages because of Bugzilla reports. All special pages should subclass SpecialPage and implement the execute() method. * (bug 63755) The deprecated constants RC_MOVE and RC_MOVE_OVER_REDIRECT were removed. +* Special:MostLinkedTemplates has been renamed to Special:MostTranscludedPages. ==== Renamed classes ==== * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression diff --git a/includes/specials/SpecialMostlinkedtemplates.php b/includes/specials/SpecialMostlinkedtemplates.php index 8ee583be09..8e6a596d60 100644 --- a/includes/specials/SpecialMostlinkedtemplates.php +++ b/includes/specials/SpecialMostlinkedtemplates.php @@ -68,7 +68,6 @@ class MostlinkedTemplatesPage extends QueryPage { 'title' => 'tl_title', 'value' => 'COUNT(*)' ), - 'conds' => array( 'tl_namespace' => NS_TEMPLATE ), 'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ) ); } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index df4a05fe65..0d72a36b80 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1616,7 +1616,7 @@ "mostlinked-summary": "", "mostlinkedcategories": "Most linked-to categories", "mostlinkedcategories-summary": "", - "mostlinkedtemplates": "Most linked-to templates", + "mostlinkedtemplates": "Most transcluded pages", "mostlinkedtemplates-summary": "", "mostcategories": "Pages with the most categories", "mostcategories-summary": "", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 2dd4d63e81..d94214b8e6 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1744,7 +1744,7 @@ "nrevisions": "Used as link text in [[Special:FewestRevisions]].\n\nThe link points to the page history (action=history).\n\nParameters:\n* $1 - number of revisions", "nviews": "This message is used on [[Special:PopularPages]] to say how many times each page has been viewed.\n\nPreceded by the page title, like: Page title ($1 views)\n\nParameters:\n* $1 - the number of views", "nimagelinks": "Used on [[Special:MostLinkedFiles]] to indicate how often a specific file is used.\n\nParameters:\n* $1 - number of pages\nSee also:\n* {{msg-mw|Ntransclusions}}", - "ntransclusions": "Used on [[Special:MostLinkedTemplates]] to indicate how often a template is in use.\n\nParameters:\n* $1 - number of pages\nSee also:\n* {{msg-mw|Nimagelinks}}", + "ntransclusions": "Used on [[Special:MostTranscludedPages]] to indicate how often a template is in use.\n\nParameters:\n* $1 - number of pages\nSee also:\n* {{msg-mw|Nimagelinks}}", "specialpage-empty": "Used on a special page when there is no data. For example on [[Special:Unusedimages]] when all images are used.", "lonelypages": "{{doc-special|LonelyPages}}", "lonelypages-summary": "{{doc-specialpagesummary|lonelypages}}", @@ -1778,7 +1778,7 @@ "mostlinked-summary": "{{doc-specialpagesummary|mostlinked}}", "mostlinkedcategories": "{{doc-special|MostLinkedCategories}}", "mostlinkedcategories-summary": "{{doc-specialpagesummary|mostlinkedcategories}}", - "mostlinkedtemplates": "{{doc-special|MostLinkedTemplates}}", + "mostlinkedtemplates": "{{doc-special|MostTranscludedPages}}", "mostlinkedtemplates-summary": "{{doc-specialpagesummary|mostlinkedtemplates}}", "mostcategories": "{{doc-special|MostCategories}}", "mostcategories-summary": "{{doc-specialpagesummary|mostcategories}}", diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 6ada6d7111..07a0467aca 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -430,7 +430,7 @@ $specialPageAliases = array( 'Mostinterwikis' => array( 'MostInterwikis' ), 'Mostlinked' => array( 'MostLinkedPages', 'MostLinked' ), 'Mostlinkedcategories' => array( 'MostLinkedCategories', 'MostUsedCategories' ), - 'Mostlinkedtemplates' => array( 'MostLinkedTemplates', 'MostUsedTemplates' ), + 'Mostlinkedtemplates' => array( 'MostTranscludedPages', 'MostLinkedTemplates', 'MostUsedTemplates' ), 'Mostrevisions' => array( 'MostRevisions' ), 'Movepage' => array( 'MovePage' ), 'Mycontributions' => array( 'MyContributions' ),