Topic on Extension talk:IframePage

Including iframe in template

2
82.134.94.226 (talkcontribs)

I have a template Template:MapTest with this text:


<iframe key="google" path="maps/embed?pb=\{\{\{map\}\}\}" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


And I try to include it in a page like this:


\{\{\{MapTest|map=!4m5!3m4!1s0x4761e04f538c63e7:0x50f2a3d385586140!8m2!3d43.9787249!4d15.3846242\}\}\}

But for reasons I don't understand, this does not produce a map. IF I just put it verbatime like this, it works:

<iframe key="google" path="maps/embed?pb=!4m5!3m4!1s0x4761e04f538c63e7:0x50f2a3d385586140!8m2!3d43.9787249!4d15.3846242" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


How would I succeed at this?


PS: I escaped { with \ to avoid the editor trying to run my wikitext in this talk post.

Tosfos (talkcontribs)

That's not how this extension works. Instead of struggling with this, I'd say your best bet is to try the Maps extension, or the Iframe widget.

Reply to "Including iframe in template"