Extension:ParserMigration/ru

From mediawiki.org
This page is a translated version of the page Extension:ParserMigration and the translation is 27% complete.
Справка по расширениям MediaWiki
ParserMigration
Статус релиза: стабильно
Реализация Пользовательский интерфейс
Описание Provides an interface for migrating article text to new versions of the MediaWiki parser
Автор(ы)
Последняя версия Continuous updates
Политика совместимости Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki >= 1.42
Изменения в БД Нет
Лицензия Creative Commons Zero v1.0 Universal
Скачать
  • $wgParserMigrationEnableParsoidArticlePages
  • $wgParserMigrationEnableQueryString
  • $wgParserMigrationUserNoticeVersion
  • $wgParserMigrationEnableParsoidDiscussionTools
  • $wgParserMigrationUserNoticeDays
Ежеквартальные загрузки 9 (Ranked 129th)
Переведите расширение ParserMigration, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

Расширение ParserMigration было введено в gerrit:296182. It provides an interface for comparing article rendering with a new non-default version of the MediaWiki parser thus serving as a parser migration tool.

It was deployed on the Wikimedia production cluster until 2018 to compare Tidy-based output with a RemexHTML-based output. RemexHTML was the replacement for Tidy. In 2023 it was redeployed in order to compare legacy wikitext parser output with output generated by the Parsoid wikitext parser.

The availability of the tool can be controlled by a user via the "parsermigration" preference option.

Using the extension

See Help:Extension:ParserMigration and the extension's README file.


Установка

  • Скачайте и распакуйте файл(ы) в папку с названием ParserMigration в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserMigration
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'ParserMigration' );
    
  • This extension also adds a dropdown under 'Developer tools' at the bottom of the 'Editing' options for a user, which allows the user to opt-in, opt-out, or follow the wiki defaults for the use of the new Parsoid wikitext parser to render article pages.
    "Follow the wiki default" uses Parsoid based on two configuration options:
    • $wgParserMigrationEnableParsoidDiscussionTools if set to true will use Parsoid for all pages in the talk namespace, but not for other pages. This is intended for use with the DiscussionTools extension, which is already powered by Parsoid and enabled by default on some wikis.
    • $wgParserMigrationEnableParsoidArticlePages if set to true will use Parsoid for all pages in the main article namespace, but not for other pages.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

См. также

For the 2018-era deployment of the ParserMigration tool, see: