ウィキテキスト

From mediawiki.org
This page is a translated version of the page Wikitext and the translation is 79% complete.

ウィキテキスト(Wikitext)は、文書を作成するためのウィキ マークアップ言語です。現在のバージョンについては Help:編集 で解説されています。(Help:書式整形 および Markup spec/DTD も参照してください。) ウィキテキストは、本文やマークアップ、マクロ、メタデータが混在しているのが特徴です。 The content of current and previous revisions of a wiki page is in the database in the text table, generally in the form of wikitext, although some types of pages, such as Wikidata objects, are stored in other content formats.

利用者者向けの説明文書

開発者向けの説明文書

  • Specs/wikitext/1.0.0 – Parsoid がウィキテキストのバージョンの判断に用いるURI(2016年8月現在)

実装

  • PHP Parser - ソースコードに埋め込まれたコメントから説明文書を生成。PHPパーサの解説を要約します: 「ウィキマークアップを処理(リンク生成の「[[リンク]]」などユーザに使いやすい構文解析を使用)し、そのウィキを不可逆的に変換、(X)HTML形式で出力もしくはマークアップ(こちらはブラウザが読み取って表示できる形式)。
  • Parsoid - MediaWikiの翻訳ツールで、HTML5 DOM with RDFaとMediaWikiウィキテキストを翻訳する。

テスト

ウィキテキストをHTMLへ変換するために期待される挙動を記述する役に立つ、重要な互換性情報を提供しました。

  • Parser tests - Our tests in MediaWiki core contain the authoritative source for Wikitext markup compatibility testing.
  • Parsoid test cases (parserTests.txt on Diffusion)a forked version of the MediaWiki core tests, used by Parsoid. Besides the wt2html mode that the PHP parser supports, Parsoid's parser tests runner also enables several other testing modes not supported by the PHP parser (wt2wt, html2wt, html2html, randomized edits for testing selective serialization, manual edits for controlled testing of serialization). These tests are manually synchronized using scripts in the Parsoid codebase.

2015年以降の議論

2015年以前の議論

関連項目