Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MediaWiki Template Parsing with HTML Tags

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?

like image 269
Lionel Avatar asked Oct 27 '25 05:10

Lionel


1 Answers

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

like image 177
Joshua C. Lerner Avatar answered Oct 30 '25 14:10

Joshua C. Lerner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!