Extension:HtmlFromFile/zh

This page is a translated version of the page Extension:HtmlFromFile and the translation is 10% complete.
MediaWiki擴充功能手冊
OOjs UI icon advanced-invert.svg
HtmlFromFile
发布状态: 未维护
实现 标签
描述 Includes HTML snippets from files into wiki pages
作者 Constantin Berhard (ConnyOnnyOnny讨论)
MediaWiki
数据庫更改
许可协议 Creative Commons Zero v1.0 Universal
下载
$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.

Installation

  • 下载文件,并将其放置在您extensions/文件夹中的HtmlFromFile目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/HtmlFromFile/HtmlFromFile.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

Configuration parameters

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

See also