Extension:NamespaceHTML/ja

The NamespaceHTML extension allows raw HTML in specified namespaces. It is intended to work just like the setting. The difference is that this extension allows specifying which namespace(s) should be able to contain raw HTML, which allows administrators to restrict raw HTML to namespaces with sufficient edit protections.

This extension was created for WikiWorks.

使用法
Embed raw html within  tags. See for more information.

As a template
The extension allows inclusion from namespaces where HTML is allowed to namespaces where HTML is not. You can create a custom script namespace and allow HTML in that namespace. Then you can create pages in the script namespace that contain safe scripts which can be transcluded into any page.

Technically, you can use the #tag parser function to pass parameters to the template. See here for an example. However, it is a better idea to use the Widgets extension for that.

Widget examples

 * To add a Pinterest feed: Extension:NamespaceHTML/Pinterest Widget

設定

 * $wgRawHtmlNamespaces: List of the namespaces where raw HTML should be enabled. See this page for more information about namespace constants. For example:



関連項目

 * - list of extensions that allow for the inclusion of raw HTML
 * Extension:Secure HTML - adds "secret key" protection for html sections
 * Extension:SaferHTMLTag - allows only sysops and certain user groups to edit pages containing the tag
 * Extension:HTMLets - Serves HTML from server files