Markdown to MediaWiki
Convert markdown to mediawiki with pandoc. Runs entirely on your device.
Runs on your device. The file is never uploaded.
Markdown to MediaWiki produces wikitext, the markup a wiki edit box takes: equals-sign headings, apostrophe-delimited emphasis, bracket links and pipe tables. The same text is shown for copying and offered as a .wiki download. An image becomes a File reference under the name you wrote, resolving only against pictures that wiki already holds.
Questions
Can I paste the output straight into a wiki page?
Yes. The output is wikitext, the markup you type into a MediaWiki edit box: equals-sign headings, apostrophe-delimited bold and italic, bracket links and pipe tables. Open the page you want, switch to source editing and paste. Nothing here talks to any wiki, so publishing is still a manual step you control.
What happens to images?
Image links become File references using the name from your Markdown. MediaWiki resolves those against files already uploaded to that wiki, so the picture has to exist there under that exact name. This tool uploads nothing, to the wiki or anywhere else, so upload the image through the wiki itself first.
Will it generate templates or infoboxes?
No. Templates are a MediaWiki feature with no Markdown counterpart, so there is nothing in your input for pandoc to turn into one. Add template calls by hand after pasting. The same is true of category tags and interwiki links, which are properties of the wiki rather than of your document; pandoc converts what is in your file and invents nothing.
What is the downloaded file called?
Your file name with the .wiki extension, so page.md becomes page.wiki. The wikitext is also shown on the page, with a copy button that copies all of it even when the preview on screen is shortened. Most wikis want a paste rather than a file, so the copy button is usually the one you want; the download is there for keeping the wikitext next to your Markdown source.
How do I convert wikitext back to Markdown?
Use MediaWiki to Markdown, and give it the source text from the wiki's edit view rather than the rendered page. Template calls in that source are not expanded, because expanding one means asking the wiki what the template contains, and this tool never contacts a network.