views:

12

answers:

2

Hi all,

How do I parse wiki markup within tags?

For example, I'm creating a template to insert an iframe into my personal wiki page:

Template:iframelink contains:

<html>
<iframe src="http://www.{{{1}}}.com"&gt;&lt;/iframe&gt;
</html>

However, I can't pass anything to {{{1}}} because it's within the <html> tags.

What work-arounds can I use to be able to expand {{{1}}} within the html tags?

A: 

Possibly something like this:

<html>
<iframe src="http://www.&lt;/html&gt;{{{1}}}&lt;html&gt;.com"&gt;&lt;/iframe&gt;
</html>

You may want to investigate a more general solution like:

http://www.mediawikiwidgets.org/Iframe

Joshua C. Lerner
Thanks, I'll look into an iFrame plugin
Lionel
A: 

If you have permission to make technical changes (or can influence those that can) you could add an extension to support HTML. My favourite is RawMsg because the administrators keep control over what HTML is permitted.

Mark Robinson