Extension:HtmlFromFile

From mediawiki.org
This page is a translated version of the page Extension:HtmlFromFile and the translation is 50% complete.
MediaWiki 拡張機能マニュアル
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";
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

構成パラメーター

$wgHtmlFromFileMappings
Array which maps short names for in-wiki usage to actual file names where the content is

関連項目