Embedding iframe in Wikimedia

I am trying to embed an iframe on a wiki page in which I work based on Wikimedia, but not the actual Wikipedia without any luck.

I also tried searching on this topic, but was barren. Understand any advice on these pls.

Thks.

+8
html iframe wiki
source share
2 answers

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.

+10
source share

I suggest you use the IDisplay extension .

The iDisplay extension allows MediaWiki pages to embed external web pages. It also allows you to set an option to place a blocking page in front of it, so you cannot load the page until the user wants to load the page.

It is implemented using an <iframe> .

+1
source share

All Articles