Jump to content

הרחבה:ParserMigration

From mediawiki.org
This page is a translated version of the page Extension:ParserMigration and the translation is 90% complete.
מדריך להרחבות מדיה-ויקי
ParserMigration
סטטוס שחרור: גרסה יציבה
יישום User interface
Description מספק אינטרס עבור העברת טקסט מאמר לגרסיות חדשות של MediaWiki parser
Author(s)
Latest version Continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki >= 1.46
Database changes No
  • $wgParserMigrationCompactIndicator
  • $wgParserMigrationUserNoticeVersion
  • $wgParserMigrationEnableParsoidMobileTalkPages
  • $wgParserMigrationFeedbackTitleURL
  • $wgParserMigrationFeedbackAPIURL
  • $wgParserMigrationEnableParsoidPercentage
  • $wgParserMigrationEnableQueryString
  • $wgParserMigrationEnableUserNotice
  • $wgParserMigrationEnableParsoidMobileArticlePages
  • $wgParserMigrationUserNoticeDays
  • $wgParserMigrationEnableIndicator
  • $wgParserMigrationExcludePageProps
  • $wgParserMigrationEnableQuickSurvey
  • $wgParserMigrationEnableReportVisualBugOnlyLoggedIn
  • $wgParserMigrationFeedbackTitle
  • $wgParserMigrationEnableReportVisualBug
  • $wgParserMigrationEnableParsoidArticlePages
  • $wgParserMigrationEnableParsoidTalkPages
Licence Creative Commons Zero v1.0 Universal
Download
Translate the ParserMigration extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The ParserMigration extension provides an interface for comparing article rendering with a new non-default version of the MediaWiki parser , thus serving as a parser migration tool.

הוא הושפע בקלאסטר הייצור של ויקימדיה עד 2018 כדי להשוות את ההוצאת המבוססת על Tidy עם ההוצאת מבוססת RemexHTML. RemexHTML היה החלפת של טידי. בשנת 2023 הוא הועבר מחדש כדי להשוות את יצירתו של משקפת ויקייטקסט מורשת עם יצירתו המוצרת על ידי משקפת ויקיטקסט של פרסואיד .

זמינות הכלים יכולה להיות נשלטת על ידי משתמש באמצעות אפשרות העדפות "parsermigration".

התקנת הרחבה

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

התקנה

  • Download and move the extracted ParserMigration folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserMigration
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ParserMigration' );
    
  • Yes בוצע – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

This extension 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 Parsoid wikitext parser to render article pages.

If the user chooses to follow the wiki default, the use of Parsoid will be based on two configuration options:

  • $wgParserMigrationEnableParsoidDiscussionTools if set to true, will use Parsoid for all pages in the talk namespace. 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.

ראו גם

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