MediaWiki 1.21/ru

MediaWiki 1.21 - это устаревшая версия MediaWiki, разрабатываемая в период с сентября 2012 по март 2013. Она была развернута на вики-ресурсах Фонда Викимедиа через инкрементные ветки, в период с апреля 2012 по сентябрь 2013. Это резюме основных изменений, представляющих интерес для пользователей. Обратитесь к файлу для просмотра полного списка изменений. Окончательная версия была выпущена 25 мая 2013 года. См. для получения копии.

Что нового?
MediaWiki 1.21 включает все изменения, выпущенные в небольших, раз в две недели «1.21wmf''X» «развертываний программного обеспечения на сайтах Викимедиа.

Комментарии к кандидату на выпуск
From wikitech-l mailing list:


 * 46934
 * There is just one issue that I would like to mention: in my database (MySQL) pre-upgrade jobs have job_random set to 0 and do not seem to be picked up - not even when I use the option --type=replaceText.  I can repeat the replace text operations, so this is not big problem for me.  However, if this is the normal behaviour for an upgrade, maybe it should be  mentioned in the notes somewhere.

Более четкие уведомления по электронной почте
Bug 14901 – Email notification mistakes log action for new page creation, the third most reported open MediaWiki bug, has been fixed. Consequently, notifications now state clearly what action was performed on the watched pages in case they are created, deleted, restored, moved or changed.

There are still some known issues. If you customised MediaWiki:Enotif body on your wiki, you have to delete or update it; see also full documentation.

Темы оформления
The CologneBlue skin has been refactored to make it relevant again, more compatible with existing scripts, and more similar in structure to Vector and Monobook, reusing a lot of existing code.

The only major difference for end-users should be a slight reordering of the sidebar menu (the "Context" submenu was removed and its contents merged into other ones). If you were, however, depending on the exact HTML it used to produce, you'll need to review your tools.

As part of the Wikidata initiative, 1.21 adopts an extensible framework ("ContentHandler") so that pages can contain something other than wikitext.

Right now, built-in content types are limited to


 * wikitext - wikitext, as usual
 * javascript - user-provided JavaScript code
 * css - user-provided CSS code
 * text - plain text

Extension developers can create additional content types. Extension:EventLogging uses ContentHandler to implement a namespace for JSON schemas, and may be used as a reference. Other extensions, such as Scribunto, also make use of the new functionality.

ContentHandler affects diff rendering, handing of CSS and JavaScript pages, import/export, and the API.

Поддержка дисплеев с высоким разрешением DPI
MediaWiki now tries to deliver higher-res images to high pixel density screens such as Apple Retina Displays (see for details). This is a work-in-progress, so normal-resolution images may still appear in some places and in some browser versions. Administrators may need to watch out for higher load on their image scaling software.

Ajax патрулирование

 * (bug 7851) The features users have waited for longest: one-click Ajax patrolling. With this new feature, users can mark revisions or pages as having been "patrolled" with a single click while staying on the current page.

Интернационализация

 * The general logging framework was made completely localisable at last. The logging for each action (whether in core or extensions) might still need to be updated to use the new system, though.
 * MediaWiki:Contributions now reflects the gender of the user.

Новые учетные записи

 * It's now easier to create accounts for other users by sending a temporary password via e-mail: Special:CreateAccount now shows a checkbox for logged-in users to use this feature, rather than a button.
 * Account API: bots and other scripts can now use the API to create user accounts, rather than attempting to pseudo-submit the HTML form.

Account creation welcome
The MediaWiki:welcomecreation message was split up into MediaWiki:welcomeuser and MediaWiki:welcomecreation-msg so users no longer see "Login successful" when creating their accounts. If you customized the former message and want to preserve your customization, you'll have to modify the new messages accordingly.

More wikitext now supported in JavaScript messages
The jqueryMsg parser now supports wikilinks and int: transclusion. For more details, see Manual:Messages API.

Using semantic headings for the navigation menu
The previous scheme of using (varying per skin) &lt;h4>, &lt;h5> and/or &lt;h6> tags (with nothing apart from the main &lt;h1> above them in the hierarchy) was change to consistently using a &lt;h2> above the entire navigation and &lt;h3>s as portlet headings in all skins.

The &lt;h2> is hidden for normal browsers, but accessible for screen-readers or text browsers.

While this change is minor, it might require similarly minor updates in any customized CSS or JS (or in screen scrapers).

Extended collation support
UCA-based category collations for 68 languages based in Latin, Greek and Cyrillic alphabets are now supported. You can use them by setting, where   is the appropriate language code.

Bundled extensions
Newly bundled for 1.21 (bug 43815):


 * (note: will trigger "Fatal exception of type MWException" using default installation. Add  to your LocalSettings.php)
 * SyntaxHighlight GeSHi
 * (note: will trigger "Fatal exception of type MWException" using default installation. Add  to your LocalSettings.php)
 * SyntaxHighlight GeSHi
 * (note: will trigger "Fatal exception of type MWException" using default installation. Add  to your LocalSettings.php)
 * SyntaxHighlight GeSHi
 * (note: will trigger "Fatal exception of type MWException" using default installation. Add  to your LocalSettings.php)
 * SyntaxHighlight GeSHi
 * (note: will trigger "Fatal exception of type MWException" using default installation. Add  to your LocalSettings.php)
 * SyntaxHighlight GeSHi

См. также

 * Open bugs targeted for 1.21
 * Resolved bugs targeted for 1.21