From 58613e01421eb33495b6231adb39f7447af8389b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 31 Dec 2006 01:35:26 +0000 Subject: [PATCH] * (bug 8392) Display protection status of transcluded pages in the edit page template list. Patch by Fyren, with i18n naming tweak. --- RELEASE-NOTES | 2 ++ includes/Linker.php | 18 ++++++++++++++---- languages/messages/MessagesEn.php | 2 ++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8c149b8edd..b5322f0f74 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -435,6 +435,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN implementation is unstable * Add hook for extensions to add user information to the panel in preferences, next to the user name and ID. +* (bug 8392) Display protection status of transcluded pages in the edit page + template list. Patch by Fyren, with i18n naming tweak. == Languages updated == diff --git a/includes/Linker.php b/includes/Linker.php index 22b294ef43..42ad07ba40 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1131,15 +1131,25 @@ class Linker { # Construct the HTML $outText = '
'; - if ($preview) + if ( $preview ) { $outText .= wfMsgExt( 'templatesusedpreview', array( 'parse' ) ); - elseif ($section) + } elseif ( $section ) { $outText .= wfMsgExt( 'templatesusedsection', array( 'parse' ) ); - else + } else { $outText .= wfMsgExt( 'templatesused', array( 'parse' ) ); + } $outText .= '
'; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 517b37c2fd..b89021a592 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1010,6 +1010,8 @@ the text into a text file and save it for later.', 'templatesused' => 'Templates used on this page:', 'templatesusedpreview' => 'Templates used in this preview:', 'templatesusedsection' => 'Templates used in this section:', +'template-protected' => '(protected)', +'template-semiprotected' => '(semi-protected)', 'edittools' => '', 'nocreatetitle' => 'Page creation limited', 'nocreatetext' => 'This site has restricted the ability to create new pages. -- 2.20.1