r49880 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49879‎ | r49880 | r49881 >
Date:18:47, 25 April 2009
Author:siebrand
Status:deferred (Comments)
Tags:
Comment:
* add uniwiki/CreatePage extension to core
* add 'Create a page' to default sidebar
* remove uniwiki/CreatePage from Translate
* remove uniwiki/CreatePage from UniwikiSettings.php
* add special page aliases of CreatePage extension to MessagesXx.php
Modified paths:
  • /trunk/extensions/Translate/aliases.txt (modified) (history)
  • /trunk/extensions/Translate/groups/MediaWikiExtensions.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)
  • /trunk/extensions/uniwiki/CreatePage/OBSOLETE (added) (history)
  • /trunk/extensions/uniwiki/UniwikiSettings.php (modified) (history)
  • /trunk/phase3/CREDITS (modified) (history)
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialCreatePage.php (added) (history)
  • /trunk/phase3/languages/messages/MessagesAr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesArz.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDe.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesDsb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFr.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesFrp.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesGsw.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHsb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesHu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesIt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesJa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKsh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLb.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMk.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesMt.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNds_nl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesNo.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesPs.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSa.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesSw.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesTl.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesVec.php (modified) (history)
  • /trunk/phase3/maintenance/language/messageTypes.inc (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/aliases.txt
@@ -271,9 +271,6 @@
272272 Translate
273273 file = Translate/Translate.alias.php
274274
275 -Uniwiki Create page
276 -file = uniwiki/CreatePage/CreatePage.alias.php
277 -
278275 Usage statistics
279276 file = UsageStatistics/SpecialUserStats.alias.php
280277
Index: trunk/extensions/Translate/groups/MediaWikiExtensions.php
@@ -554,7 +554,6 @@
555555 'ext-uniwiki-authors',
556556 'ext-uniwiki-autocreatecategorypages',
557557 'ext-uniwiki-catboxattop',
558 - 'ext-uniwiki-createpage',
559558 'ext-uniwiki-csshooks',
560559 'ext-uniwiki-customtoolbar',
561560 'ext-uniwiki-formatchanges',
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -835,11 +835,6 @@
836836 file = uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php
837837 descmsg = catboxattop-desc
838838
839 -Uniwiki - Create Page
840 -id = ext-uniwiki-createpage
841 -file = uniwiki/CreatePage/CreatePage.i18n.php
842 -descmsg = createpage-desc
843 -
844839 Uniwiki - Css Hooks
845840 id = ext-uniwiki-csshooks
846841 file = uniwiki/CssHooks/CssHooks.i18n.php
Index: trunk/extensions/uniwiki/UniwikiSettings.php
@@ -18,6 +18,7 @@
1919 # Broken. creditLink() missing.
2020 #require_once("$uw/Authors/Authors.php");
2121 require_once("$uw/CustomToolbar/CustomToolbar.php");
22 -require_once("$uw/CreatePage/CreatePage.php");
 22+# Obsolete. Added to MediaWiki 1.15 alpha in r49880
 23+#require_once("$uw/CreatePage/CreatePage.php");
2324 require_once("$uw/FormatChanges/FormatChanges.php");
2425 require_once("$uw/FormatSearch/FormatSearch.php");
Index: trunk/extensions/uniwiki/CreatePage/OBSOLETE
@@ -0,0 +1,4 @@
 2+As of MediaWiki 1.15 alpha r49880 this extension is obsolete. Its functionality
 3+was integrated into MediaWiki's core.
 4+
 5+In the future it will be deleted from subversion.
\ No newline at end of file
Property changes on: trunk/extensions/uniwiki/CreatePage/OBSOLETE
___________________________________________________________________
Added: svn:eol-style
16 + native
Index: trunk/phase3/CREDITS
@@ -56,6 +56,7 @@
5757 * Victor Vasiliev
5858
5959 == Patch Contributors ==
 60+* Adam Mckaig
6061 * Agbad
6162 * Brad Jorsch
6263 * Brent G
@@ -65,18 +66,21 @@
6667 * church of emacs
6768 * Daniel Arnold
6869 * Danny B.
 70+* Evan Wheeler
6971 * FunPika
7072 * Happy-melon
7173 * Jeremy Baron
7274 * Jidanni
7375 * Juliano F. Ravasi
 76+* Louperivois
7477 * Lucas Garczewski
75 -* Louperivois
7678 * Luigi Corsaro
7779 * Manuel Menal
7880 * Marcin Cieślak
 81+* Mark Johnston
7982 * Marooned
8083 * Max Semenik
 84+* Merrick Schaefer
8185 * Michael De La Rue
8286 * Michael Walsh
8387 * Mike Horvath
@@ -93,6 +97,7 @@
9498 * Simon Walker
9599 * Stefano Codari
96100 * Str4nd
 101+* Travis Derouin
97102
98103 == Translators ==
99104 * Anders Wegge Jakobsen
Index: trunk/phase3/includes/specials/SpecialCreatePage.php
@@ -0,0 +1,101 @@
 2+<?php
 3+/* This code was adapted from CreatePage.php from: Travis Derouin <travis@wikihow.com> for the Uniwiki extension CreatePage
 4+ * Originally licensed as: GNU GPL v2.0 or later
 5+ *
 6+ * This page has been copied and adapted from the Uniwiki extension CreatePage
 7+ * Originally licensed as: http://www.gnu.org/licenses/gpl-3.0.txt
 8+ *
 9+ * @license GNU GPL v3.0 http://www.gnu.org/licenses/gpl-3.0.txt
 10+ * @author Travis Derouin
 11+ * @author Merrick Schaefer
 12+ * @author Mark Johnston
 13+ * @author Evan Wheeler
 14+ * @author Adam Mckaig (at UNICEF)
 15+ * @author Siebrand Mazeland (integrated into MediaWiki core)
 16+ * @addtogroup SpecialPage
 17+ */
 18+
 19+class SpecialCreatePage extends SpecialPage {
 20+
 21+ function __construct() {
 22+ SpecialPage::SpecialPage( 'CreatePage', 'createpage' );
 23+ }
 24+
 25+ public function execute( $params ) {
 26+ global $wgOut, $wgRequest, $wgUser;
 27+
 28+ $this->setHeaders();
 29+
 30+ if ( !$this->userCanExecute( $wgUser ) ) {
 31+ $this->displayRestrictionError();
 32+ return;
 33+ }
 34+
 35+ $wgOut->addWikiMsg( 'createpage-summary' );
 36+
 37+ // check to see if we are trying to create a page
 38+ $target = $wgRequest->getVal ( 'target' );
 39+ $title = Title::newFromText ( $target );
 40+
 41+ // check for no title
 42+ if ( $wgRequest->wasPosted() && $target === '' ) {
 43+ $this->error( wfMsg( 'createpage-entertitle' ) );
 44+ }
 45+ // check for invalid title
 46+ elseif ( $wgRequest->wasPosted() && is_null( $title ) ) {
 47+ $this->error( wfMsg( 'createpage-badtitle', $target ) );
 48+ }
 49+ elseif ( $target != null ) {
 50+ if ( $title->getArticleID() > 0 ) {
 51+ // if the title exists then let the user know and give other options
 52+ $wgOut->addWikiText ( wfMsg ( 'createpage-titleexists', $title->getFullText() ) . "<br />" );
 53+ $skin = $wgUser->getSkin();
 54+ $editlink = $skin->makeLinkObj( $title, wfMsg ( 'createpage-editexisting' ), 'action=edit' );
 55+ $thisPage = Title::newFromText ( 'CreatePage', NS_SPECIAL );
 56+ $wgOut->addHTML ( $editlink . '<br />'
 57+ . $skin->makeLinkObj ( $thisPage, wfMsg ( 'createpage-tryagain' ) )
 58+ );
 59+ return;
 60+ } else {
 61+ /* TODO - may want to search for closely named pages and give
 62+ * other options here... */
 63+
 64+ // otherwise, redirect them to the edit page for their title
 65+ $wgOut->redirect ( $title->getEditURL() );
 66+ }
 67+ }
 68+
 69+ // if this is just a normal GET, then output the form
 70+
 71+ // prefill the input with the title, if it was passed along
 72+ $newTitle = false;
 73+ $newTitleText = $wgRequest->getVal( 'newtitle', null );
 74+ if ( $newTitleText != null ) {
 75+ $newTitle = Title::newFromURL( $newTitleText );
 76+ if ( is_null( $newTitle ) )
 77+ $newTitle = $newTitleText;
 78+ else
 79+ $newTitle = $newTitle->getText();
 80+ }
 81+
 82+ // output the form
 83+ $form = Xml::openElement( 'fieldset' ) .
 84+ Xml::element( 'legend', null, wfMsg( 'createpage' ) ) . # This should really use a different message
 85+ wfMsgWikiHtml( 'createpage-instructions' ) .
 86+ Xml::openElement( 'form', array( 'method' => 'post', 'name' => 'createpageform', 'action' => '' ) ) .
 87+ Xml::element( 'input', array( 'type' => 'text', 'name' => 'target', 'size' => 50, 'value' => $newTitle ) ) .
 88+ '<br />' .
 89+ Xml::element( 'input', array( 'type' => 'submit', 'value' => wfMsgHtml( 'createpage-submitbutton' ) ) ) .
 90+ Xml::closeElement( 'form' ) .
 91+ Xml::closeElement( 'fieldset' );
 92+ $wgOut->addHTML( $form );
 93+ }
 94+ /*
 95+ * Function to output an error message
 96+ * @param $msg String: message text or HTML
 97+ */
 98+ function error( $msg ) {
 99+ global $wgOut;
 100+ $wgOut->addHTML( Xml::element( 'p', array( 'class' => 'error' ), $msg ) );
 101+ }
 102+}
Property changes on: trunk/phase3/includes/specials/SpecialCreatePage.php
___________________________________________________________________
Added: svn:mergeinfo
Added: svn:eol-style
1103 + native
Index: trunk/phase3/includes/DefaultSettings.php
@@ -3099,6 +3099,7 @@
31003100 'Export' => 'pagetools',
31013101 'Import' => 'pagetools',
31023102 'Whatlinkshere' => 'pagetools',
 3103+ 'Createpage' => 'pagetools',
31033104
31043105 'Statistics' => 'wiki',
31053106 'Version' => 'wiki',
Index: trunk/phase3/includes/SpecialPage.php
@@ -169,6 +169,7 @@
170170 'Undelete' => array( 'SpecialPage', 'Undelete', 'deletedhistory' ),
171171 'Whatlinkshere' => 'SpecialWhatlinkshere',
172172 'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ),
 173+ 'Createpage' => 'SpecialCreatePage',
173174
174175 # Other
175176 'Booksources' => 'SpecialBookSources',
Index: trunk/phase3/includes/AutoLoader.php
@@ -495,6 +495,7 @@
496496 'ShortPagesPage' => 'includes/specials/SpecialShortpages.php',
497497 'SpecialAllpages' => 'includes/specials/SpecialAllpages.php',
498498 'SpecialBookSources' => 'includes/specials/SpecialBooksources.php',
 499+ 'SpecialCreatePage' => 'includes/specials/SpecialCreatePage.php',
499500 'SpecialExport' => 'includes/specials/SpecialExport.php',
500501 'SpecialImport' => 'includes/specials/SpecialImport.php',
501502 'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php',
Index: trunk/phase3/RELEASE-NOTES
@@ -33,6 +33,11 @@
3434 * (bug 18222) $wgMinimalPasswordLength default is now 1
3535 * $wgSessionHandler can be used to configure session.save_handler
3636
 37+=== Migrated extensions ===
 38+The following extensions are migrated into MediaWiki 1.15:
 39+
 40+* Special:CreatePage (was extension Uniwiki CreatePage)
 41+
3742 === New features in 1.15 ===
3843
3944 * (bug 2242) Add an expiry time to temporary passwords
Index: trunk/phase3/languages/messages/MessagesMt.php
@@ -131,6 +131,7 @@
132132 'Blankpage' => array( 'PaġnaVojta' ),
133133 'LinkSearch' => array( 'FittexĦolqa' ),
134134 'DeletedContributions' => array( 'KontribuzzjonijietImħassra' ),
 135+ 'Createpage' => array( 'OħloqPaġna' ),
135136 );
136137
137138 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesNo.php
@@ -164,6 +164,7 @@
165165 'LinkSearch' => array( 'Lenkesøk' ),
166166 'DeletedContributions' => array( 'Slettede bidrag' ),
167167 'Tags' => array( 'Tagger' ),
 168+ 'Createpage' => array( 'Opprett side' ),
168169 );
169170
170171 $messages = array(
Index: trunk/phase3/languages/messages/MessagesGl.php
@@ -131,6 +131,7 @@
132132 'LinkSearch' => array( 'Buscar ligazóns web' ),
133133 'DeletedContributions' => array( 'Contribucións borradas' ),
134134 'Tags' => array( 'Etiquetas' ),
 135+ 'Createpage' => array( 'Crear a páxina' ),
135136 );
136137
137138 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesSa.php
@@ -140,6 +140,7 @@
141141 'Blankpage' => array( 'रिक्तपृष्ठ' ),
142142 'LinkSearch' => array( 'सम्बन्धन्‌शोध' ),
143143 'DeletedContributions' => array( 'परित्यागितयोगदान' ),
 144+ 'Createpage' => array( 'पृष्ठस्यसृजन' ),
144145 );
145146
146147 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesKsh.php
@@ -179,6 +179,7 @@
180180 'LinkSearch' => array( 'Websigge Söke' ),
181181 'DeletedContributions' => array( 'Fotjeschmeße' ),
182182 'Tags' => array( 'Makeerunge' ),
 183+ 'Createpage' => array( 'Sigge_aanlääje', 'Sigg_aanlääje' ),
183184 );
184185
185186 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesSu.php
@@ -123,6 +123,7 @@
124124 'Invalidateemail' => array( 'SurelekTeuKaci' ),
125125 'Blankpage' => array( 'KacaKosong' ),
126126 'Tags' => array( 'Tag' ),
 127+ 'Createpage' => array( 'JieunKaca' ),
127128 );
128129
129130 $messages = array(
Index: trunk/phase3/languages/messages/MessagesLb.php
@@ -39,7 +39,6 @@
4040 'Bild_Diskussioun' => NS_FILE_TALK,
4141 );
4242
43 -
4443 $specialPageAliases = array(
4544 'DoubleRedirects' => array( 'Duebel Viruleedungen' ),
4645 'BrokenRedirects' => array( 'Futtis Viruleedungen' ),
@@ -128,6 +127,7 @@
129128 'LinkSearch' => array( 'Weblink-Sich' ),
130129 'DeletedContributions' => array( 'Geläschte Kontributiounen' ),
131130 'Tags' => array( 'Taggen' ),
 131+ 'Createpage' => array( 'Säiten uleeën' ),
132132 );
133133
134134 $messages = array(
Index: trunk/phase3/languages/messages/MessagesTh.php
@@ -129,6 +129,7 @@
130130 'LinkSearch' => array( 'ค้นหาเว็บลิงก์' ),
131131 'DeletedContributions' => array( 'การแก้ไขที่ถูกลบ' ),
132132 'Tags' => array( 'ป้ายกำักับ' ),
 133+ 'Createpage' => array( 'สร้างหน้า' ),
133134 );
134135
135136 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesTl.php
@@ -128,6 +128,7 @@
129129 'LinkSearch' => array( 'Paghahanap ng kawing' ),
130130 'DeletedContributions' => array( 'Naburang mga ambag' ),
131131 'Tags' => array( 'Mga tatak' ),
 132+ 'Createpage' => array( 'Likhain ang pahina', 'LikhaPahina' ),
132133 );
133134
134135 $messages = array(
Index: trunk/phase3/languages/messages/MessagesEs.php
@@ -162,6 +162,7 @@
163163 'Blankpage' => array( 'BlanquearPágina', 'Blanquear página' ),
164164 'LinkSearch' => array( 'BúsquedaDeEnlaces', 'Búsqueda de enlaces' ),
165165 'DeletedContributions' => array( 'ContribucionesBorradas', 'Contribuciones Borradas' ),
 166+ 'Createpage' => array( 'Crear_página' ),
166167 );
167168
168169 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesJa.php
@@ -155,6 +155,7 @@
156156 'LinkSearch' => array( '外部リンク検索' ),
157157 'DeletedContributions' => array( '削除された投稿記録', '削除された投稿履歴', '削除歴' ),
158158 'Tags' => array( 'タグ一覧' ),
 159+ 'Createpage' => array( 'ページ作成' ),
159160 );
160161
161162 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesFr.php
@@ -308,6 +308,7 @@
309309 'LinkSearch' => array( 'Recherche de lien', 'Recherche de liens' ),
310310 'DeletedContributions' => array( 'Contributions supprimées', 'ContributionsSupprimées', 'ContributionSupprimees' ),
311311 'Tags' => array( 'Balises' ),
 312+ 'Createpage' => array( 'Créer page', 'CréerPage' ),
312313 );
313314
314315 $separatorTransformTable = array( ',' => "\xc2\xa0", '.' => ',' );
Index: trunk/phase3/languages/messages/MessagesNl.php
@@ -295,6 +295,7 @@
296296 'LinkSearch' => array( 'VerwijzingenZoeken', 'LinksZoeken' ),
297297 'DeletedContributions' => array( 'VerwijderdeBijdragen' ),
298298 'Tags' => array( 'Labels' ),
 299+ 'Createpage' => array( 'PaginaAanmaken' ),
299300 );
300301
301302 $linkTrail = '/^([a-zäöüïëéèà]+)(.*)$/sDu';
Index: trunk/phase3/languages/messages/MessagesSv.php
@@ -141,6 +141,7 @@
142142 'LinkSearch' => array( 'Länksökning' ),
143143 'DeletedContributions' => array( 'Raderade bidrag' ),
144144 'Tags' => array( 'Taggar' ),
 145+ 'Createpage' => array( 'Skapa sida' ),
145146 );
146147
147148 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesDe.php
@@ -157,6 +157,7 @@
158158 'LinkSearch' => array( 'Weblink-Suche' ),
159159 'DeletedContributions' => array( 'Gelöschte Beiträge' ),
160160 'Tags' => array( 'Markierungen' ),
 161+ 'Createpage' => array( 'Seite erstellen' ),
161162 );
162163
163164 $datePreferences = array(
Index: trunk/phase3/languages/messages/MessagesGsw.php
@@ -109,6 +109,7 @@
110110 'Blankpage' => array( 'Läärsyte' ),
111111 'LinkSearch' => array( 'Suech no Gleicher' ),
112112 'DeletedContributions' => array( 'Gleschti Byytreeg' ),
 113+ 'Createpage' => array( 'Syte aalege' ),
113114 );
114115
115116 $linkTrail = '/^([äöüßa-z]+)(.*)$/sDu';
Index: trunk/phase3/languages/messages/MessagesHsb.php
@@ -127,6 +127,7 @@
128128 'LinkSearch' => array( 'Wotkazowe pytanje' ),
129129 'DeletedContributions' => array( 'Zničene přinoški' ),
130130 'Tags' => array( 'Taflički' ),
 131+ 'Createpage' => array( 'Stronu wutworić' ),
131132 );
132133
133134 $messages = array(
Index: trunk/phase3/languages/messages/MessagesArz.php
@@ -281,6 +281,7 @@
282282 'LinkSearch' => array( 'بحث_الوصلات' ),
283283 'DeletedContributions' => array( 'مساهمات_محذوفة' ),
284284 'Tags' => array( 'وسوم' ),
 285+ 'Createpage' => array( 'إنشاء_صفحة' ),
285286 );
286287
287288 $messages = array(
Index: trunk/phase3/languages/messages/MessagesKm.php
@@ -174,6 +174,7 @@
175175 'Blankpage' => array( 'ទំព័រទទេ' ),
176176 'LinkSearch' => array( 'ស្វែងរកតំណភ្ជាប់' ),
177177 'DeletedContributions' => array( 'ការរួមចំណែកដែលត្រូវបានលុបចោល' ),
 178+ 'Createpage' => array( 'បង្កើត​ទំព័រ' ),
178179 );
179180
180181 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesVec.php
@@ -128,6 +128,7 @@
129129 'LinkSearch' => array( 'SercaLigamenti' ),
130130 'DeletedContributions' => array( 'ContributiScancelà' ),
131131 'Tags' => array( 'Tag' ),
 132+ 'Createpage' => array( 'CreaPàxena' ),
132133 );
133134
134135 $messages = array(
Index: trunk/phase3/languages/messages/MessagesSw.php
@@ -108,6 +108,7 @@
109109 'Blankpage' => array( 'KurasaTupu' ),
110110 'LinkSearch' => array( 'TafutaKiungo' ),
111111 'DeletedContributions' => array( 'MichangoIliyofutwa' ),
 112+ 'Createpage' => array( 'AnzishaUkurasa' ),
112113 );
113114
114115 $messages = array(
Index: trunk/phase3/languages/messages/MessagesHu.php
@@ -144,6 +144,7 @@
145145 'LinkSearch' => array( 'Hivatkozás keresés' ),
146146 'DeletedContributions' => array( 'Törölt szerkesztések' ),
147147 'Tags' => array( 'Címkék' ),
 148+ 'Createpage' => array( 'Oldalkészítés', 'Oldal készítése' ),
148149 );
149150
150151 $datePreferences = array(
Index: trunk/phase3/languages/messages/MessagesNds_nl.php
@@ -275,6 +275,7 @@
276276 'Blankpage' => array( 'Lege_pagina' ),
277277 'LinkSearch' => array( 'Verwiezingen_zeuken' ),
278278 'DeletedContributions' => array( 'Vort-ehaolen gebrukersbiedragen' ),
 279+ 'Createpage' => array( 'Pagina_anmaken' ),
279280 );
280281
281282 $linkTrail = '/^([a-zäöüïëéèà]+)(.*)$/sDu';
Index: trunk/phase3/languages/messages/MessagesPs.php
@@ -76,6 +76,7 @@
7777 'Blankpage' => array( 'تش مخ' ),
7878 'LinkSearch' => array( 'د تړنې پلټنه' ),
7979 'DeletedContributions' => array( 'ړنګې شوي ونډې' ),
 80+ 'Createpage' => array( 'مخ جوړول' ),
8081 );
8182
8283 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesAr.php
@@ -377,6 +377,7 @@
378378 'LinkSearch' => array( 'بحث_الوصلات' ),
379379 'DeletedContributions' => array( 'مساهمات_محذوفة' ),
380380 'Tags' => array( 'وسوم' ),
 381+ 'Createpage' => array( 'إنشاء_صفحة' ),
381382 );
382383
383384 /**
Index: trunk/phase3/languages/messages/MessagesMk.php
@@ -172,6 +172,7 @@
173173 'LinkSearch' => array( 'ПребарајВрска' ),
174174 'DeletedContributions' => array( 'ИзбришаниПридонеси' ),
175175 'Tags' => array( 'Приврзоци' ),
 176+ 'Createpage' => array( 'КреирајСтраница' ),
176177 );
177178
178179 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesIt.php
@@ -161,6 +161,7 @@
162162 'Blankpage' => array( 'PaginaVuota' ),
163163 'LinkSearch' => array( 'CercaCollegamenti' ),
164164 'DeletedContributions' => array( 'ContributiCancellati' ),
 165+ 'Createpage' => array( 'CreaPagina' ),
165166 );
166167
167168 $magicWords = array(
Index: trunk/phase3/languages/messages/MessagesFrp.php
@@ -13,7 +13,6 @@
1414
1515 $fallback = 'fr';
1616
17 -
1817 $bookstoreList = array(
1918 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1',
2019 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&',
@@ -40,6 +39,10 @@
4140 NS_CATEGORY_TALK => 'Discussion_Catègorie',
4241 );
4342
 43+$specialPageAliases = array(
 44+ 'Createpage' => array( 'Fâre una pâge', 'FâreUnaPâge' ),
 45+);
 46+
4447 $linkTrail = '/^([a-zàâçéèêîœôû·’æäåāăëēïīòöōùü‘]+)(.*)$/sDu';
4548
4649 $dateFormats = array(
Index: trunk/phase3/languages/messages/MessagesIa.php
@@ -127,6 +127,7 @@
128128 'LinkSearch' => array( 'Recerca de ligamines' ),
129129 'DeletedContributions' => array( 'Contributiones delite' ),
130130 'Tags' => array( 'Etiquettas' ),
 131+ 'Createpage' => array( 'Crear pagina' ),
131132 );
132133
133134 $messages = array(
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -440,6 +440,7 @@
441441 'LinkSearch' => array( 'LinkSearch' ),
442442 'DeletedContributions' => array( 'DeletedContributions' ),
443443 'Tags' => array( 'Tags' ),
 444+ 'Createpage' => array( 'CreatePage' ),
444445 );
445446
446447 /**
@@ -489,6 +490,7 @@
490491 ** currentevents-url|currentevents
491492 ** recentchanges-url|recentchanges
492493 ** randompage-url|randompage
 494+** createpage-url|createpage
493495 ** helppage|help
494496 * SEARCH
495497 * TOOLBOX
@@ -3923,4 +3925,17 @@
39243926 'htmlform-reset' => 'Undo changes',
39253927 'htmlform-selectorother-other' => 'Other',
39263928
 3929+# Special:CreatePage
 3930+'createpage' => 'Create a page',
 3931+'createpage-url' => 'Special:CreatePage', # do not translate or duplicate this message to other languages
 3932+'createpage-summary' => '', # do not translate or duplicate this message to other languages
 3933+'createpage-submitbutton' => 'Submit',
 3934+'createpage-instructions' => 'Enter the title of the page you wish to create:',
 3935+'createpage-entertitle' => 'Please enter a title for your page.',
 3936+'createpage-titleexists' => 'A page with the title [[$1]] already exists.
 3937+Would you like to edit the existing page?',
 3938+'createpage-tryagain' => 'No. I want to create a new page with a distinct title.',
 3939+'createpage-editexisting' => 'Yes. I want to contribute to the existing page.',
 3940+'createpage-badtitle' => '"$1" cannot be used as a page title',
 3941+
39273942 );
Index: trunk/phase3/languages/messages/MessagesDsb.php
@@ -145,6 +145,7 @@
146146 'LinkSearch' => array( 'Pytanje wótkazow' ),
147147 'DeletedContributions' => array( 'Wulašowane pśinoski' ),
148148 'Tags' => array( 'Toflicki' ),
 149+ 'Createpage' => array( 'Bok napóraś' ),
149150 );
150151
151152 $messages = array(
Index: trunk/phase3/maintenance/language/messages.inc
@@ -2990,6 +2990,18 @@
29912991 'htmlform-reset',
29922992 'htmlform-selectorother-other',
29932993 ),
 2994+ 'createpage' => array(
 2995+ 'createpage',
 2996+ 'createpage-url',
 2997+ 'createpage-summary',
 2998+ 'createpage-submitbutton',
 2999+ 'createpage-instructions',
 3000+ 'createpage-entertitle',
 3001+ 'createpage-titleexists',
 3002+ 'createpage-tryagain',
 3003+ 'createpage-editexisting',
 3004+ 'createpage-badtitle',
 3005+ ),
29943006 );
29953007
29963008 /** Comments for each block */
@@ -3192,4 +3204,5 @@
31933205 'special-tags' => 'Special:Tags',
31943206 'db-error-messages' => 'Database error messages',
31953207 'html-forms' => 'HTML forms',
 3208+ 'createpage' => 'Special:CreatePage',
31963209 );
Index: trunk/phase3/maintenance/language/messageTypes.inc
@@ -154,6 +154,8 @@
155155 'upload-summary',
156156 'newuserlogentry',
157157 'wantedtemplates-summary',
 158+ 'createpage-summary',
 159+ 'createpage-url',
158160 );
159161
160162 /** Optional messages, which may be translated only if changed in the target language. */

Follow-up revisions

RevisionCommit summaryAuthorDate
r49883Follow up to r49880. Fix casing for CreatePage in $wgSpecialPageGroupssiebrand19:07, 25 April 2009
r49885Follow-up r49880, tweaks to Special:CreatePage:...ialex19:40, 25 April 2009
r49973Revert r49880, r49883, r49885 - add uniwiki/CreatePage extension to core...brion19:04, 27 April 2009
r51537Follow-up to r49973 (Revert r49880, r49883, r49885 - add uniwiki/CreatePage e...siebrand15:38, 6 June 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   18:57, 27 April 2009

This looks pretty funky...

A page with the title Main Page already exists. Would you like to edit the existing page?

Yes. I want to contribute to the existing page.
Yes. I want to contribute to the existing page.

Lack of interlinking tools means that this would promote creation of orphan pages, and the UI isn't very good. Doesn't seem to be a clear way to disable it in favor of alternate creation methods either.

Recommend revert pending issue resolution.

#Comment by Brion VIBBER (talk | contribs)   19:04, 27 April 2009

Reverted in r49973

Status & tagging log