Difference between revisions of "Software/Mediasyntax"
(→Syntax and usage) |
(→Images) |
||
Line 50: | Line 50: | ||
== Images == | == Images == | ||
Images: To add an image, store your image (let's assume it is called myimage.png) into the image folder (e.g. /srv/www/htdocs/dokuwiki/data/media/image). To show it use the syntax | Images: To add an image, store your image (let's assume it is called myimage.png) into the image folder (e.g. /srv/www/htdocs/dokuwiki/data/media/image). To show it use the syntax | ||
− | + | <pre> | |
+ | [[Image:myimage.png]] | ||
+ | </pre> | ||
== Demo == | == Demo == |
Revision as of 09:15, 3 August 2013
Mediasyntax is a plugin for Dokuwiki that enables Mediawiki syntax. It comes with a converter dokuwiki to mediawiki syntax.
Contents |
Install it
- Log in as Administrator to your dokuwiki
- Choose Admin->Manage Plugins
- Under "Download and install a new plugin" enter
http://www.staerk.de/files/mediasyntax.tar.gz
and click on "Download".
Doesn't work? Read this! |
---|
SymptomIf you get a message The plugin manager was unable to decompress the downloaded file. like this: Reason 1PHP's zlib module is not installed Solution 1Install PHP's zlib modules and restart the web server, e.g. with SUSE Linux 11.4: yast -i php5-zlib /etc/init.d/apache2 restart Reason 2When trying to unpack, apache cannot overwrite mediasyntax' files because they have another user than apache. Solution 2Change the ownership of mediasyntax' folder, e.g. for SUSE Linux like this: /srv/www/htdocs/dokuwiki-2011-05-25a/lib/plugins # chown -R wwwrun:www mediasyntax/ |
Optional
- To use tables in mediawiki syntax, install the exttab1 plugin.
- If you want the "edit" buttons to be above and not below the section to edit, install the editsections plugin.
- Test your installation by writing a new article starting with '''hello world'''. This should be displayed bold.
- Use the converter at mediasyntax/tools/dokuwiki2mediawiki.php to convert your existing pages.
- To get mediawiki's style, install the monobook skin
- Change your dokuwiki's editing help (wiki:syntax) to look like this
Syntax and usage
After installation, mediawiki syntax is used to display your pages. This also includes the #REDIRECT command.
Images
Images: To add an image, store your image (let's assume it is called myimage.png) into the image folder (e.g. /srv/www/htdocs/dokuwiki/data/media/image). To show it use the syntax
[[Image:myimage.png]]
Demo
Compatibility
It is tested with Dokuwiki 2009-12-25, 2010-11-07, 2011-05-25, 2011-11-10, 2012-01-25 and 2013-05-10.
Developer's information
The mediasyntax plugin is derived from the cool creole plugin, combined with the goto plugin, which is now the redirect component. To download mediasyntax' latest development code, open a Linux console and type
git clone git://github.com/tstaerk/mediasyntax.git
You can also view the code online.
You can start developing mediasyntax.