MediaWiki 1.31/cs

Poslední vydaná verze MediaWiki s dlouhodobou podporou je MediaWiki 1.31. Pro úplný seznam změn jděte na. Na všechny wiki Wikimedia Foundation byla postupně instalovaná od 24. září 2017, aplikací změn ve "wmf"-větvi. Stabilní verze 1.31.0 byla uvolněna 13. června 2018. Poslední vydání si můžete stáhnout buď jako archiv, nebo tak, že uděláte checkout repozitáře, který stáhnete přes Git, na větev.

Víc přibalených rozšíření
The set of extensions that are bundled with the MediaWiki tarball has increased. The new additions are:


 * provides a more friendly editor when editing CSS and JavaScript on-wiki.
 * provides a lightbox viewer for images and galleries.
 * provides two-factor authentication for wiki accounts.
 * provides a form to let administrators do string replacements on the entire wiki, for both page contents and page titles.
 * provides a form to let administrators do string replacements on the entire wiki, for both page contents and page titles.

The Nuke extension was not included in the tarball for MediaWiki 1.31.0 by mistake. If you want to use this extension, please download the extension separately. This will be fixed in the next MediaWiki release.

Téma Timeless
Novinkou u této MediaWiki je responzivní téma Timeless, které je nyní součástí celého balíku.

Téma CologneBlue a Modern
Témata CologneBlue a Modern už delší dobu nejsou ve standardním balíku, i když jsou s touto MediaWiki stále kompatiblní. Pokud chcete aktualizovat a používáte tyto témata, berte tímto na vědomí ze si je musíte stáhnout zvlášť.

Tidy bylo nahrazeno parsovacím algoritmem HTML 5

 * Pro podrobnější informace navštivte stránku často kladené otázky

Knihovna Tidy, která byla založená na HTML 4 byla nahrazena syntaktickým analyzátorem (parser) RemexHtml, napsaným čistě v PHP, který již vychází z HTML 5. Ten řeší analýzu wikitextu mnohem lépe a efektivněji. Pokud jste v obsahu vašich stránek využívali některých nedostatků původního analyzátoru Tidy, nemáte jinou možnost, než je opravit.

K nalezení těchto stránek můžete využít rozšíření Linter ve spojení s Parsoidem, protože vám zobrazí rozdíly v kódu, který je výsledkem analyzátoru RemexHtml. RozšířeníParserMigration zase umí na jedné stránce zobrazit vedle sebe obsah zpracovaný přes Tidy a vedle něj obsah zpracovaný přes RemexHtml.

Interwiki usernames
MediaWiki now supports "interwiki" usernames in a format like " " in revisions, log entries, and so on. This allows for properly recording imports and events from foreign wikis (as generated by Wikibase, for example) without confusion with a local account that exists now or may be created in the future.


 * Imports will now record unknown (and, optionally, known) usernames in a format like " ".
 * (used on history pages, log pages, and so on) will display usernames formed like " Example" as interwiki links, as if by wikitext like.

Further UI standardization

 * As a first pass in standardizing dialog boxes across the MediaWiki product, Html class now provides helper methods for messageBox, successBox, errorBox and warningBox generation.

Other feature changes

 * Add default edit rate limit of 90 edits/minute for all users. This can be changed by setting.
 * only affects  actions.
 * User sub-pages named  are now protected in the same way that   and   pages are, so that configuration options can safely be placed there.
 * The info page for File pages now displays the file's base-16 SHA1 hash value in the table of basic information.
 * The pingback feature will now send a monthly heartbeat ping to identify active wikis.
 * Tabs which link to pages that don't exist (like those to uncreated discussion pages) now have a tooltip to indicate state, not just colour.

Aktualizace jazyků u 1.31
MediaWiki podporuje přes 350 jazyků. Většina lokalizací je pravidelně aktualizována. V následujícím přehledu jsou uvedeny pouze nově přidané jazyky a jazykové změny, které oznámil Phabricator.


 * Mirandština (mwl) nyní podporuje mluvnické rody pro jmenné prostory /.
 * Nově přidaná podpora pro: Nyungarštinu (nys).
 * Nově přidaná podpora pro: Sibiřskou tatarštinu (sty).
 * Nově přidaná podpora pro: Guayanskou kreolštinu (gcr).
 * Nově přidaná podpora pro: Kumyčtinu (kum).
 * Nově přidaná podpora pro: Formální španělštinu (es-formal)
 * Nově přidaná podpora pro: Formální maďarštinu (hu-formal)
 * Nově přidaná podpora pro: Gorontalo (gor).

PHP7 resp. HHVM je nyní nutné
MediaWiki 1.31 vyžaduje PHP verze 7.0.0 nebo vyšší. I kdy je stále podporované HHVM verze 3.18.5 a vyšší, je důrazně doporučeno použít PHP verze 7.0.0 či vyšší, kvůli dlouhodobé podpoře.

Změny v databázi
1.31 vyžaduje oproti verzi 1.30 několik databázových změn, bez kterých nebude fungovat. Pokud používáte PostgresSQL, musíte nyní použít verzi 9.2 nebo vyšší.

Revision table
Note that due to changes to some very large tables like the revision table, the schema update may take quite long (minutes on a medium sized site, many hours on a large site). Don't forget to always back up your database before upgrading!

Archive table
If you're using MySQL, SQLite, or MSSQL, are not using update.php to apply schema changes, and cannot have downtime to run  and apply   manually, you'll have to apply a default value to the   and   columns of the   table or make those columns nullable before upgrading to MediaWiki 1.31. shows how to do this for MySQL.

Actor table
The identity of the logged-in or IP "actor" for logged actions is being moved into a new  table, with the rows in tables such as revision and logging referring to the actor ID instead of storing the user ID and name/IP in every row.


 * This is currently gated by . Most wikis can set this to  and run   as soon as any necessary extensions are updated.
 * Most code accessing rows for logged actions from the database should use the relevant  methods to get the information needed to build the SQL query. The   class may also be used to get feature-flagged information needed to access actor-related fields during the migration period.

Změny v konfiguraci

 * and are now deprecated and will be removed in a future version. The API is now considered to be stable, secure and essential.
 * was removed, as it is now the default. This was documented as a temporary variable during the migration period, deprecated since 1.29.
 * has been updated to support SVG images and uses where possible for fallback images such as PNG.
 * will no longer ignore ' ' when user does not have the right to mark things patrolled.
 * Wikis that contain imported revisions or CentralAuth global blocks should run.
 * The configuration settings and, deprecated since 1.27, were removed.
 * now supports having fallbacks for browsers that are not using the latest version of the Referrer Policy specification.
 * is now set to  by default. This is a first step of migration to human-readable section IDs that will later result in ' ' being the default mode.
 * now only supports APC(u) or WinCache. XCache support was removed as upstream is inactive and has no plans to move to PHP 7.
 * The old  feature, including its related configuration option, has been removed.
 * The ' ' value for is no longer supported for performance reasons, and installations with this setting will now work as if it was configured with ' '.
 * MediaWiki now defaults to using  to tidy up user input, rather than being off by default. If you wish to disable HTML tidying entirely, set  to  ; if you wish to use the old, deprecated Tidy external binary, both set  to   and  to.
 * now defaults to  instead of.
 * was removed and will be ignored.
 * , deprecated and ignored since 1.25, was removed. See the 1.25 release notes for more information.
 * is now marked as deprecated, just like the deprecated AJAX framework that it enables. Some extensions mistakenly used this to check whether any AJAX functionality at all should be enabled, further making this problematic to retain.
 * is now deprecated, and will be removed in a future version. It has been marked as experimental ever since it was introduced.
 * now affects all database types. Old MediaWiki versions were setting this to 'mediawiki' during the installer, which may cause errors during the upgrade when your database is not PostgreSQL or MSSQL. In that case, remove this setting from LocalSettings.php.

Změny API pro action v 1.31

 * The ' ' value to  for   has been removed. It has never made a difference in the output, the name was always returned regardless.
 * The ' ' and ' ' parameters for  have been removed. They were deprecated and also accidentally nonfunctional since 1.17 in 2010. Use ' ' instead.

Další změny v 1.31

 * Browser support for Internet Explorer 10 was lowered from Grade A to Grade C.
 * Browser support for Opera 12 and older was dropped entirely. Opera 15+ continues at Grade A.
 * Multi-content-revision capability was introduced into the storage layer. See .
 * The " " CSS class is now only applied to unbracketed URLs in wikitext. Links written using square brackets will get the class " ", not " ".
 * : Whitespace is trimmed from wikitext headings, wikitext list items, wikitext table captions, wikitext table headings, wikitext table cells. HTML headings, HTML list items, HTML table captions, HTML table headings, HTML table cells will not have this trimming behavior.