使用方法/$wgRawHtml
html
使用方法:
- <html><标签></标签></html>
- {{#tag:html|<标签></标签>}}
示例
<html><iframe width="100%" height="300" src="https://kangkk.com" frameborder="0"></iframe></html>
效果
示例2
{{#tag:html|<iframe width="100%" height="300" src="https://kangkk.com" frameborder="0"></iframe>}}
效果2
other
Extension:Widgets
wfLoadExtension( 'Widgets' );
Usage To add a widget to your MediaWiki installation, just create a page in the Widget: namespace and then use the {{#widget:...}} parser function to include it in the pages of the wiki.
{{#widget}} parser function To add a defined widget to pages, users can use the {{#widget}} parser function. The syntax is as follows:
{{#widget:WidgetName|param1=value1|param2=value2}}
Example Widget:AssocTest might look like this:
<includeonly><ul> <!--{foreach from=$arg key=key item=item}--> <li><!--{$key|escape:'html'}-->: set to <!--{$item|escape:'html'}--></li> <!--{/foreach}--> </ul></includeonly> ...and you might call this Widget as follows:
{{#widget:AssocTest|arg.foo=bar|arg.bar=oni}}
No categories