MediaWiki HTML Template Template

How to parse wiki markup in tags?

For example, I create a template to insert an iframe in my personal wiki page:

Template: iframelink contains:

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

However, I can’t pass anything {{{1}}} because it is inside the <html> tag.

What actions can be used to extend {{{1}}} in html tags?

+3
source share
2 answers

Maybe something like this:

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

You can study a more general solution, for example:

http://www.mediawikiwidgets.org/Iframe

+1
source

( , ), HTML. RawMsg, , HTML .

+1

Source: https://habr.com/ru/post/1770439/


All Articles