Jump to content

ข้อความวิกิ

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

Wikitext , also known as wiki markup or wikicode, is the markup language that consists of the syntax and keywords used by the MediaWiki software to format a page. It is explained in more detail in Help:Editing and Help:การจัดรูปแบบ . วิกิเท็กซ์ต์มีสาระรวมของสาระ การหมายเลข การมากโร และเมทาเทา 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.

User documentation

Developer documentation

  • Specs/wikitext/1.0.0as of August 2016, the URI used by Parsoid to identify the version of Wikitext it is assuming

Implementation

  • 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)."

Testing

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.

Discussions from 2015 and later

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

Discussions prior to 2015

See also