'SpecialProtectedtitles' => __DIR__ . '/includes/specials/SpecialProtectedtitles.php',
'SpecialRandomInCategory' => __DIR__ . '/includes/specials/SpecialRandomInCategory.php',
'SpecialRandomredirect' => __DIR__ . '/includes/specials/SpecialRandomredirect.php',
+ 'SpecialRandomrootpage' => __DIR__ . '/includes/specials/SpecialRandomrootpage.php',
'SpecialRecentChanges' => __DIR__ . '/includes/specials/SpecialRecentchanges.php',
'SpecialRecentChangesLinked' => __DIR__ . '/includes/specials/SpecialRecentchangeslinked.php',
'SpecialRedirect' => __DIR__ . '/includes/specials/SpecialRedirect.php',
'Randompage' => 'RandomPage',
'RandomInCategory' => 'SpecialRandomInCategory',
'Randomredirect' => 'SpecialRandomredirect',
+ 'Randomrootpage' => 'SpecialRandomrootpage',
// High use pages
'Mostlinkedcategories' => 'MostlinkedCategoriesPage',
--- /dev/null
+<?php
+
+/**
+ * Implements Special:Randomrootpage
+ *
+ * Copyright © 2008 Hojjat (aka Huji)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup SpecialPage
+ */
+
+class SpecialRandomrootpage extends RandomPage {
+
+ public function __construct() {
+ parent::__construct( 'Randomrootpage' );
+ $dbr = wfGetDB( DB_SLAVE );
+ $this->extra[] = 'page_title NOT ' . $dbr->buildLike( $dbr->anyString(), '/', $dbr->anyString() );
+ }
+
+ // Don't select redirects
+ public function isRedirect() {
+ return false;
+ }
+}
"sessionmanager-tie": "Cannot combine multiple request authentication types: $1.",
"sessionprovider-generic": "$1 sessions",
"sessionprovider-mediawiki-session-cookiesessionprovider": "cookie-based sessions",
- "sessionprovider-nocookies": "Cookies may be disabled. Ensure you have cookies enabled and start again."
+ "sessionprovider-nocookies": "Cookies may be disabled. Ensure you have cookies enabled and start again.",
+ "randomrootpage": "Random root page"
}
"sessionmanager-tie": "Used as an error message when multiple session sources are tied in priority.\n\nParameters:\n* $1 - List of dession type descriptions, from messages like {{msg-mw|sessionprovider-mediawiki-session-cookiesessionprovider}}.",
"sessionprovider-generic": "Used to create a generic session type description when one isn't provided via the proper message. Should be phrased to make sense when added to a message such as {{msg-mw|cannotloginnow-text}}.\n\nParameters:\n* $1 - PHP classname.",
"sessionprovider-mediawiki-session-cookiesessionprovider": "Description of the sessions provided by the CookieSessionProvider class, which use HTTP cookies. Should be phrased to make sense when added to a message such as {{msg-mw|cannotloginnow-text}}.",
- "sessionprovider-nocookies": "Used to inform the user that sessions may be missing due to lack of cookies."
+ "sessionprovider-nocookies": "Used to inform the user that sessions may be missing due to lack of cookies.",
+ "randomrootpage": "{{doc-special|RandomRootPage}}"
}
'Randompage' => array( 'عشوائي', 'صفحة_عشوائية' ),
'RandomInCategory' => array( 'عشوائي_في_تصنيف' ),
'Randomredirect' => array( 'تحويلة_عشوائية' ),
+ 'Randomrootpage' => array( 'صفحة_جذر_عشوائية' ),
'Recentchanges' => array( 'أحدث_التغييرات' ),
'Recentchangeslinked' => array( 'أحدث_التغييرات_الموصولة', 'تغييرات_مرتبطة' ),
'Redirect' => array( 'تحويل' ),
'Randompage' => array( 'عشوائى', 'صفحه_عشوائيه' ),
'RandomInCategory' => array( 'عشوائى_جوه_تصنيف' ),
'Randomredirect' => array( 'تحويله_عشوائيه' ),
+ 'Randomrootpage' => array( 'صفحه_جدر_عشوائيه' ),
'Recentchanges' => array( 'اخر_تعديلات' ),
'Recentchangeslinked' => array( 'اجدد_التغييرات_اللى_معمول_ليها_لينك', 'تغييرات_مرتبطه' ),
'Redirect' => array( 'تحويل' ),
'Randompage' => array( 'تسادوپین_وّرق' ),
'RandomInCategory' => array( 'تسادوپی_بئ_تهری_تا' ),
'Randomredirect' => array( 'تسادوپین_تغیرمیسر' ),
+ 'Randomrootpage' => array( 'تسادوپین_پایگ_ئی_وّرق' ),
'Recentchanges' => array( 'آخیرئین_تغیران' ),
'Recentchangeslinked' => array( 'مربوتین_تغیران' ),
'Redirect' => array( 'تغیرمسیر' ),
'Randompage' => array( 'Zufällige_Seite' ),
'RandomInCategory' => array( 'Zufällig_in_Kategorie' ),
'Randomredirect' => array( 'Zufällige_Weiterleitung' ),
+ 'Randomrootpage' => array( 'Zufällige_Stammseite' ),
'Recentchanges' => array( 'Letzte_Änderungen' ),
'Recentchangeslinked' => array( 'Änderungen_an_verlinkten_Seiten' ),
'Redirect' => array( 'Weiterleitung' ),
'Randompage' => array( 'Raştameye', 'PelaRaştameyiye' ),
'RandomInCategory' => array( 'KategoriyaRaştameyiye' ),
'Randomredirect' => array( 'SerberdışoRaştameye' ),
+ 'Randomrootpage' => array( 'RaştamayePerraréçi' ),
'Recentchanges' => array( 'VurnayışêPeyêni' ),
'Recentchangeslinked' => array( 'GıreyêVurnayışêPeyênan' ),
'Redirect' => array( 'Serberdış' ),
'Randompage' => array( 'Random', 'RandomPage' ),
'RandomInCategory' => array( 'RandomInCategory' ),
'Randomredirect' => array( 'RandomRedirect' ),
+ 'Randomrootpage' => array( 'RandomRootpage' ),
'Recentchanges' => array( 'RecentChanges' ),
'Recentchangeslinked' => array( 'RecentChangesLinked', 'RelatedChanges' ),
'Redirect' => array( 'Redirect' ),
'Randompage' => array( 'Juhuslik_artikkel' ),
'RandomInCategory' => array( 'Juhuslik_kategoorias' ),
'Randomredirect' => array( 'Juhuslik_ümbersuunamine' ),
+ 'Randomrootpage' => array( 'Juhuslik_juurlehekülg' ),
'Recentchanges' => array( 'Viimased_muudatused' ),
'Recentchangeslinked' => array( 'Seotud_muudatused' ),
'Redirect' => array( 'Ümbersuunamine' ),
'Randompage' => array( 'صفحهٔ_تصادفی' ),
'RandomInCategory' => array( 'تصادفی_در_رده' ),
'Randomredirect' => array( 'تغییرمسیر_تصادفی' ),
+ 'Randomrootpage' => array( 'صفحهٔ_پایهٔ_تصادفی' ),
'Recentchanges' => array( 'تغییرات_اخیر' ),
'Recentchangeslinked' => array( 'تغییرات_مرتبط' ),
'Redirect' => array( 'تغییرمسیر' ),
'Randompage' => array( '임의문서' ),
'RandomInCategory' => array( '분류안의임의문서' ),
'Randomredirect' => array( '임의넘겨주기' ),
+ 'Randomrootpage' => array( '임의최상위문서', '임의루트문서' ),
'Recentchanges' => array( '최근바뀜' ),
'Recentchangeslinked' => array( '링크최근바뀜' ),
'Redirect' => array( '넘겨주기' ),
'Randompage' => array( 'Случајна', 'СлучајнаСтраница' ),
'RandomInCategory' => array( 'СлучајнаВоКатегорија' ),
'Randomredirect' => array( 'СлучајноПренасочување' ),
+ 'Randomrootpage' => array( 'СлучајнаОсновнаСтраница' ),
'Recentchanges' => array( 'СкорешниПромени' ),
'Recentchangeslinked' => array( 'ПоврзаниПромени' ),
'Redirect' => array( 'Пренасочување' ),
'Randompage' => array( 'Willekeurig', 'WillekeurigePagina' ),
'RandomInCategory' => array( 'WillekeurigeUitCategorie' ),
'Randomredirect' => array( 'WillekeurigeDoorverwijzing' ),
+ 'Randomrootpage' => array( 'WillekeurigeHoofdpagina' ),
'Recentchanges' => array( 'RecenteWijzigingen' ),
'Recentchangeslinked' => array( 'RecenteWijzigingenGelinkt', 'VerwanteWijzigingen' ),
'Redirect' => array( 'Doorverwijzen' ),
'Randompage' => array( 'Ngẫu_nhiên' ),
'RandomInCategory' => array( 'Ngẫu_nhiên_trong_thể_loại' ),
'Randomredirect' => array( 'Đổi_hướng_ngẫu_nhiên' ),
+ 'Randomrootpage' => array( 'Trang_gốc_ngẫu_nhiên' ),
'Recentchanges' => array( 'Thay_đổi_gần_đây' ),
'Recentchangeslinked' => array( 'Thay_đổi_liên_quan' ),
'Redirect' => array( 'Đổi_hướng' ),
'Randompage' => array( '随机', '随机页面' ),
'RandomInCategory' => array( '分类内随机' ),
'Randomredirect' => array( '随机重定向', '随机重定向页' ),
+ 'Randomrootpage' => array( '随机根页面' ),
'Recentchanges' => array( '最近更改' ),
'Recentchangeslinked' => array( '最近链出更改', '相关更改' ),
'Redirect' => array( '重定向' ),
'Randompage' => array( '隨機頁面' ),
'RandomInCategory' => array( '隨機分類頁面', '於分類中隨機' ),
'Randomredirect' => array( '隨機重新導向', '隨機重定向頁面' ),
+ 'Randomrootpage' => array( '隨機根頁面' ),
'Recentchanges' => array( '最近變更', '最近更改' ),
'Recentchangeslinked' => array( '已連結的最近變更', '相關變更', '連出更改' ),
'Redirect' => array( '重新導向', '重定向' ),