Extension:SecureHTML/ja

This extension allows editors to add HTML section(s) or pages on a wiki page. This extension can only be used on protected pages, but allows an editor to add a protected template on an unprotected, editable page. The extension uses the '$wgRawHtml' global variable of Mediawiki.

機能

 * カスケーディング: ベースのページで'html'を使うことが許可されている場合、すべてのインクルードされたページがあたかもそれをできるように処理されます.
 * 名前空間の免除: 設定された名前空間は'protection'の必要条件から免除されます.
 * パーサキャッシュとの親和性:
 * 拡張機能は挿入された内容のサポートを継続できるように有効にしなければなりません.
 * Support for the parser function
 * is very well suited for securely embedding widgets such as the ones created with SproutBuilder or GoogleGadgets.
 * The page where the shtml parser function is used does not need to be protected but the template page where the javascript/html widget code is located must though.
 * This behavior makes it easy for administrator to allow selected widgets to be included by the user population of the wiki

tag

 * 保護されたページの範囲で標準的な タグを使用して下さい($wgRawHtml/jaを参照). 言及したタグのインクルージョンの前後でページを保護できます.
 * Complete usage example for using iframes tag:

parser function
Use:  where: The page where this parser function is used must be edit protected.
 * is the page name of the article to include
 * are of the form:

parser function
Same usage as for #html with difference that the origin page where this parser function is used does not need to be edit protected. The target page's edit protection attribute ensures security.

必要な拡張機能

 * StubManager extension
 * ParserFunctionsHelper extension is optional and only required for the parser function #shtml

Reason for the parser function
It is sometimes useful to include, in a secure fashion, a template containing 'raw html' in another page. This enables, for example, the construction of gadgets.

Through the added functionality of parameterization using the, the said templates can be customized on a per-page basis without resorting to convoluted escape patterns (e.g.  ) which renders page viewing difficult to humans.

履歴

 * added namespace exemption functionality i.e. namespaces where article do not need to be protected in order to use 'html' tags
 * use  to turn off
 * use  to add namespaces
 * enhanced with functionality to 'add' content to the document's 'head' section
 * Removed dependency on ExtensionClass
 * Enabled for 'StubManager'
 * Added 'addExemptNamespaces' function

1.1.0

 * Added, by default, NS_MEDIAWIKI namespace to the exemptNamespaces

2.0.0

 * Addition of the parser function

2.1.0

 * Addition of the parser function #shtml (requires Extension:ParserFunctionsHelper)

Todo

 * Fix for allowing more customization of 'exempt' namespaces even when using StubManager
 * Think about renaming the extension to be more distinct from Extension:Secure HTML

関連項目

 * Extension:Secured HTML/ja - Similar name, different extension which restricts sections to protected pages/namespaces.
 * Extension:Secure HTML/ja
 * Extension:Anysite/ja - Embeds a website in a wiki page without touching HTML settings.
 * Extension:Secured_PHP/ja
 * Extension:SecureWidgets/ja