在 MediaWiki 上创建一个模板页面,将给定的参数替换为 iframe

Make a template page on MediaWiki which substitutes given arguments to an iframe

我正在使用 Iframe 插件和以下代码嵌入来自 VK 的视频:

<div style="float:right; margin: 0px 0px 25px 25px;"><iframe k="vk"
 p="video_ext.php?oid=349530500&id=456239067&hash=4561ee8657098af3&hd=2"
w="640" h="360" allowfullscreen="1" /></div> 

但我想写这样的东西

{{VkVideo|video_ext.php?oid=349530500&id=456239067&hash=4561ee8657098af3&hd=2}}

我应该在Template:VkVideo中写什么?如果我写下面的代码

<div style="float:right; margin: 0px 0px 25px 25px;"><iframe k="vk"
 p="{{{1}}}"
w="640" h="360" allowfullscreen="1" /></div> 

出于某种原因,它没有替换参数。所以我使用模板的页面的 HTML 包含此代码:

<div style="float:right; margin: 0px 0px 25px 25px;"><iframe id="Iframe1"
data-src="https://vk.com/{{{1}}}"
data-delay="50" width="640" height="360" frameborder="0" allowfullscreen=""></iframe></div>

扩展标签不采用模板参数,因为它们预期输出 HTML,需要屏蔽模板处理。尝试

<div style="float:right; margin: 0px 0px 25px 25px;">{{#tag:iframe||k=vk|p={{{1}}}|w=640|h=|360|allowfullscreen=1}}</div>

(见here