There is a simple way and a little more complicated.
The easy way assumes that you do not have a public wiki (i.e. unregistered users cannot edit and create an account are not automatic). A.
If in this case, just set $wgRawHtml to true, and you can enter any arbitrary HTML code into your pages by wrapping it inside the <html> .
Here is an example:
This is '''wikitext'''. <html> This is <em>HTML</em>. </html>
Now that you have a publicly accessible wiki version, you certainly don't want users to be able to add any HTML to your wiki. In this case, you can use the Verbatim extension. This will embed the page content in the MediaWiki namespace as it is, while preserving any HTML markup.
For example:
<verbatim>Foo</verbatim>
Embeds MediaWiki: Foo content.
Hope this helps.
tor
source share