Tag Archive for 'MediaWiki'

Inserting raw HTML code in MediaWiki

Someday this post could save you an hour: do you need to insert raw HTML code in MediaWiki (for example, an internal image that links to an external website)? Configure it to use $wgRawHtml (its page says that it is safe to use it only if your site is not publicly editable).

I can’t say this often enough: use MediaWiki if and only if you need a website that is a small clone of WikiPedia: if you need something that is just slightly different, use DokuWiki!

If you enjoyed this post, make sure you subscribe to my RSS feed!

A MediaWiki directory lister extension

I wrote this simple Mediawiki extension that lists the directories contained in a hardwired directory: its output is like the following XHTML list:

<ul>
<li>http://www.foo.org/aaa/</li>
<li>http://www.foo.org/aab/</li>
<li>...</li>
<li>http://www.foo.org/zzz/</li>
</ul>

The directories are returned in the order in which they are stored by the filesystem. Change the values of $dir and $url_foo before using the extension.

If you enjoyed this post, make sure you subscribe to my RSS feed!