Вики-текст
Вики-текст — это язык вики-разметки для создания документов. Текущая версия описана в Справка:Редактирование (см. также Справка:Форматирование и Markup spec/DTD ). Викитекст представляет собой смесь содержимого, разметки, макросов и метаданных. Содержимое текущих и предыдущих версий вики-страницы хранится в базе данных в таблице text , как правило, в форме вики-текста, хотя некоторые типы страниц, такие как объекты Викиданных, хранятся в других форматах содержимого.
Пользовательская документация
Документация для разработчиков
- Specs/wikitext/1.0.0 – as of August 2016, the URI used by Parsoid to identify the version of Wikitext it is assuming
Реализация
- 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 – translation tool for MediaWiki which translates between HTML5 DOM with RDFa and MediaWiki Wikitext.
Тестирование
We have provided important compatibility information, which helps describe expected behavior for converting wikitext to 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 года и позже
- 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 – Page that was active in 2003-2005
- Wikitext/2003 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