Extension:ParserMigration
リリースの状態: 安定 |
|
|---|---|
| 実装 | ユーザー インターフェイス |
| 説明 | 記事のテキストをMediaWikiパーサーの新しいバージョンに移行するためのインターフェースを提供します |
| 作者 | |
| 最新バージョン | Continuous updates |
| 互換性の方針 | MediaWiki とともにリリースされるスナップショット。 master には後方互換性がありません。 |
| MediaWiki | >= 1.46 |
| データベースの変更 | いいえ |
|
|
| ライセンス | クリエイティブ・コモンズ CC0 1.0 全世界 |
| ダウンロード | |
| ヘルプ | Help:Extension:ParserMigration/ja |
| translatewiki.net で翻訳を利用できる場合は、ParserMigration 拡張機能の翻訳にご協力ください | |
| 問題点 | 未解決のタスク · バグを報告 |
parser 拡張機能は記事のレンダリングをMediaWikiparserの既定でない新しいバージョンと比較するインターフェースを提供し、パーサーの移行用ツールとして機能します。
ウィキメディアの製品クラスタに実装したのは2018年以前で、RemexHTML準拠の出力とTidy準拠のそれを比較対照するためでした。 RemexHTMLがTidyの代わりでした。 2023年、従来のウィキテキストのパーサーアウトプットとParsoidウィキテキストパーサーによるアウトプットを比較するために再デプロイされました。
ツールの使用の是非は、「parsermigration」の個人設定オプションによって利用者が選択できます。
拡張機能の使用
See Help:Extension:ParserMigration and the extension's README file.
インストール
- ダウンロードして、ファイルを
extensions/フォルダー内のParserMigrationという名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserMigration
- 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'ParserMigration' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
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:
| この拡張機能は 1 つ以上のウィキメディアのプロジェクトで使用されています。 これはおそらく、この拡張機能が安定していて高いトラフィックのウェブサイトでも十分に動作することを意味します。 この拡張機能がインストールされている場所を確認するには、ウィキメディアの設定ファイル CommonSettings.php および InitialiseSettings.php 内で、この拡張機能の名前を探してください。 特定のウィキにインストールされている拡張機能の完全な一覧は、そのウィキの Special:Version ページにあります。 |
| この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: |
- Stable extensions/ja
- User interface extensions/ja
- ArticleParserOptions extensions/ja
- ChangeTagsAllowedAdd extensions/ja
- ChangeTagsListActive extensions/ja
- ConfirmEditTriggersCaptcha extensions/ja
- GetPreferences extensions/ja
- ListDefinedTags extensions/ja
- ParserOutputPostCacheTransform extensions/ja
- QuickSurveysEnabled extensions/ja
- ResourceLoaderGetConfigVars extensions/ja
- SidebarBeforeOutput extensions/ja
- Public domain licensed extensions/ja
- Extensions in Wikimedia version control/ja
- All extensions/ja
- Extensions used on Wikimedia/ja
- Extensions included in Miraheze/ja
