Wiki syntax

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search
Blue Glass Arrow.svg MediaWiki logo.png
A proposal to move this page to MediaWiki.org was rejected.
Because the Template:MoveToMediaWiki tag was on the page for a year without any MediaWiki.org importers seeing fit to transwiki it, the move proposal was regarded as rejected by the MediaWiki.org community.

Wiki syntax is MediaWiki's simple text formatting used in writing wiki pages. See also Wikitext syntax.

For current state of things, see en:Wikipedia:How to edit a page.

This page is to suggest changes and enhancements.

Contents

[edit] Syntax Components

Syntax symbol key:

label:    ->    Definition label (lab)
' '       ->    All of list      (aof)
'|'       ->    One of list      (oof)
'*'       ->    Zero or more     (zom)
'+'       ->    One or more      (oom)
'?'       ->    Optional         (opt)
';'       ->    Definition end   (end)
"text"    ->    Literal          (lit)

[edit] Wiki

   wiki:            wiki-item*;
   wiki-item:       line | b-quote;
   line:            section-line | list-line | space-line | indent-line | div-line
                      | free-line;
   section-line:    section endl;
   list-line:       list endl;
   space-line:      " " free-line;
   indent-line:     ":" free-line;
   div-line:        "----";
   free-line:       ...???

[edit] Section

   section:         section-level ws? section-name ws? section-level;
   section-level:   "==" | "===" | "====";
   section-name:    ...???

[edit] List

   list:            p-list | d-list;
   p-list:          p-list-line+;
   p-list-line:     p-list-spec free-line;
   p-list-spec:     p-list-item+;
   p-list-item:     "*" | "#";
   d-list:          d-list-line+;
   d-list-line:     ";" d-list-item ":" d-list-defn endl;

[edit] Blockquote

   b-quote:         "<blockquote>" ws? free-line* ws? "</blockquote>";

[edit] Links

   link:            "[[" link-item "]]" blend?;
   link-item:       page-spec | pipe-link | ns-link
Personal tools

Variants
Actions
Navigation
Community
Beyond the Web
Print/export
Toolbox