维基文本
维基文本(wikitext)是使用wiki标记语言写成的文本内容,其当前版本在Help:编辑 中描述(参见Help:格式化文本 和Markup spec/DTD )。 维基文本功能是内容、标记、宏以及元数据的混合。 wiki页面当前和以前修订的内容在text 表中的数据库中,通常以wikitext的形式,尽管某些类型的页面(例如维基数据对象)以其他内容格式存储。
用户文档
开发者文档
- Specs/wikitext/1.0.0 – 在2016年8月,Parsoid用来识别假定的维基文本版本的URI
MediaWiki维基文本的代替选项
实现
- 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)."
- Parsoid – MediaWiki的转换工具,可以在带有RDFa的HTML5 DOM和MediaWiki维基文本之间转换。
测试
我们提供了重要的兼容性信息,这些信息有助于描述将维基文本转换为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
- Requests for comment/A Spec For Wikitext – RFC which defines a framework for writing a Wikitext spec, should we choose to write one (discussed in Phab:E259 in August 2016)
- Handling wiki content beyond plaintext – Discussions planned to occur at WikiDev17
2015年之前的讨论
- Markup spec – early attempt to use a standard metasyntax (such as Backus–Naur Form) to define MediaWiki Wikitext.
- Parser 2011 – early Parsoid documentation, including a 2011 plan for rolling out a new version.
- Wikitext standard – 2003-2005年活跃的页面
- Wikitext syntax – Quoting the page: I'm just tipping some links onto this page for -- I will clean it up to some sort of coherence later -- Tarquin 16:45, 30 Aug 2003 (UTC)
- Wikitext.next – Brion VIBBER's thoughts from 2011
參見
- Wikitext besides wiki
- Extension:StandardWikitext - Extension that standardizes wikitext on every page save