media.py - A MediaWiki parser plugin for MoinMoin
#format media
==MediaWiki level 1 header== * Bullet without indentation ** On level two - as MediaWiki likes
media.py is a parser plugin for MoinMoin. It can parse a subset of MediaWiki syntax and use it for MoinMoin.
Currently a substantial subset of MediaWiki is supported. These constructs are recognized:
MediaWiki syntax Meaning Notes
''x'' Italics '''x''' Bold '''''x''''' VeryStrong <sup>x</sup> Superscript text <sub>x</sub> Subscript text <small>x</small> Small text <u>x</u> Underline <tt>x</tt> Preformatted embedded text <i>x</i> Italics <b>x</b> Bold &x; HTML entities <br> Breaking paragraphs
---- Divider
http://x External Link [http://x] External Link [5] [http://x y] External Link with text
[[x]] Link [1] [[x|y]] Link with text [1] [[#Anchor]] Setting an anchor in a page
==x== Header level 1 ===x=== Header level 2 ... * x Bullet list level 1 ** x Bullet list level 2 ... # x Numbered list level 1 ## x Numbered list level 2 ... *#* Mixed lists : x Indented paragraph level 1 :: x Indented paragraph level 2 ... ;x:y Definition level 1 ;;x:y Definition level 2 [2] ... <pre>x</pre> Preformatted uninterpreted text <nowiki>x</nowiki> Uninterpreted text [3]
<!-- x --> Comments [4]
Special:
is not supported. Such links map to a macro in
MoinMoin.
Dates. Done by a macro in MoinMoin.
These adaptions are made:
User:
namespace is dropped silently to map the MediaWiki logic into
MoinMoin logic.
Special namespaces Image:
and Media:
used to embed pictures or to attach
arbitrary data are mapped to the attachment:
for MoinMoin so they are
effectively mapped to the attachment feature of MoinMoin.
The Talk:
namespace is mapped to a sub page /Talk
.
Namespace operation is currently supported for English and German.
Each non-discussion page gets an automatic link to its discussion page.
These things are not yet supported:
MediaWiki syntax Meaning
<center>x</center> Centered text ISBN x Link to a book by its ISBN RFC x Link to an RFC <strike>x</strike> Stroke text <math>x</math> TeX markup x Preformatted text line
Moreover these features are not yet supported:
If you are really missing a feature please check
http://en.wiki.oekonux.org/OekonuxWiki/Help/MediaWikiFAQ/FeatureRequests
Feel free to add your feature request there.
The following things are beyond a parser because they are replaced while processing an edit of before displaying a page actually. While editing the MoinMoin counterparts must be used:
MediaWiki syntax MoinMoin syntax Meaning
~~~ @USERNAME@ Insert user name ~~~~ @SIG@ Insert user name and current time #REDIRECT [[x]] #REDIRECT x Page redirection
The following things are inherited from MoinMoin and can be used:
MoinMoin syntax Meaning Notes
[[macro(arguments)]] Macros present in MoinMoin [1] someone@example.com Mail addresses
See
http://moinmoin.wikiwikiweb.de/ParserMarket#head-17c33967bbb4345a453627b944bad1f1bc4b2791
Stefan Merten <smerten@oekonux.de>
This program is licensed under the terms of the GPL. See
http://www.gnu.org/licenses/gpl.txt
See
http://www.merten-home.de/FreeSoftware/media4moin/
``''``