This page is a translated version of the page Wikitext and the translation is 74% complete.

维基文本wikitext)是使用wiki标记语言写成的文本内容,其当前版本在Help:编辑 中描述(参见Help:格式化文本 Markup spec/DTD )。 维基文本功能是内容、标记、宏以及元数据的混合。 wiki页面当前和以前修订的内容在text 表中的数据库中,通常以wikitext的形式,尽管某些类型的页面(例如维基数据对象)以其他内容格式存储。

用户文档

开发者文档

MediaWiki维基文本的代替选项

  • Wikitax—2022提案
  • 轻量级标记语言—维基百科文章,描述了“可能需要读取原文档以及最终呈现的输出”的情况下的标记语言

实现

  • PHP Parser – Generated documentation from comments embedded in the source code. A summary of what the PHP parser is as described on that page: "Processes wiki markup (which uses a more user-friendly syntax, such as "[[链接]]" for making links), and provides a one-way transformation of that wiki markup it into (X)HTML output / markup (which in turn the browser understands, and can display)."

测试

我们提供了重要的兼容性信息,这些信息有助于描述将维基文本转换为HTML的预期行为。

  • Parser tests - 我们在MediaWiki核心中的测试包含维基文本标记兼容性测试的可靠源。
  • Parsoid测试用例(Diffusion上的parserTests.txt) – MediaWiki核心测试的分支版本,用于Parsoid。 除了PHP解析器支持的wt2html模式外,Parsoid的解析器测试运行器还可以启用PHP解析器不支持的其他几种测试模式(wt2wt,html2wt,html2html,用于测试选择性序列化的随机编辑,用于序列化控制测试的手动编辑)。 这些测试在Parsoid代码库中使用脚本手动同步。

2015年之后的讨论

  • Architecture focus 2015 – 2015 discussion at Lyon Hackathon about the future of MediaWiki, including content representation and transclusion

2015年之前的讨论

參見