Reputation: 3288
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"></iframe>
</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?
Upvotes: 4
Views: 2013
Reputation: 3572
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.
Upvotes: 1
Reputation: 1938
Possibly something like this:
<html>
<iframe src="http://www.</html>{{{1}}}<html>.com"></iframe>
</html>
You may want to investigate a more general solution like:
http://www.mediawikiwidgets.org/Iframe
Upvotes: 2