Extension:HtmlFromFile
HtmlFromFile リリースの状態: 保守されていない |
|
---|---|
実装 | タグ |
説明 | Includes HTML snippets from files into wiki pages |
作者 | Constantin Berhard (ConnyOnnyOnnyトーク) |
MediaWiki | |
データベースの変更 | いいえ |
ライセンス | クリエイティブ・コモンズ CC0 1.0 全世界 |
ダウンロード | |
パラメーター
$wgHtmlFromFileMappings |
|
使用するフック
|
|
The HtmlFromFile extension includes some HTML snippet in the rendering of a wiki page. In the wiki markup you add <htmlfromfile>someName</htmlfromfile>. The extension does a lookup for "someName" in the configured mapping array (see below) to get a complete file name and then directly forwards the contents of that file to the viewer's browser.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のHtmlFromFile
という名前のディレクトリ内に配置します。 - 以下のコードを LocalSettings.php
require_once "$IP/extensions/HtmlFromFile/HtmlFromFile.php";
ファイルの末尾に追加します: - 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
構成パラメーター
- $wgHtmlFromFileMappings
- Array which maps short names for in-wiki usage to actual file names where the content is
関連項目
- Extension:IframePage
- Extension:Widgets
- Extension:SecureInclude
- Extension:Secure HTML