הרחבה: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 |
|
|
| 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
ParserMigrationfolder to yourextensions/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' );
בוצע – 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:
$wgParserMigrationEnableParsoidDiscussionToolsif 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.$wgParserMigrationEnableParsoidArticlePagesif set to true, will use Parsoid for all pages in the main article namespace.
ראו גם
For the 2018-era deployment of the ParserMigration tool, see:
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
| This extension is included in the following wiki farms/hosts and/or packages: |
- Stable extensions/he
- User interface extensions/he
- ArticleParserOptions extensions/he
- ChangeTagsAllowedAdd extensions/he
- ChangeTagsListActive extensions/he
- ConfirmEditTriggersCaptcha extensions/he
- GetPreferences extensions/he
- ListDefinedTags extensions/he
- ParserOutputPostCacheTransform extensions/he
- QuickSurveysEnabled extensions/he
- ResourceLoaderGetConfigVars extensions/he
- SidebarBeforeOutput extensions/he
- Public domain licensed extensions/he
- Extensions in Wikimedia version control/he
- All extensions/he
- Extensions used on Wikimedia/he
- Extensions included in Miraheze/he
