Extension:HtmlFromFile/zh
Appearance
此扩展目前不再積極维护! 尽管它可能仍然工作,但任何错误报告或功能请求将很可能被忽略。 请参见以下替代扩展,这可能是您希望安装的扩展: |
发行状态: 不再維護 |
|
|---|---|
| 实现 | 标签 |
| 描述 | Includes HTML snippets from files into wiki pages |
| 作者 | Constantin Berhard (ConnyOnnyOnny留言) |
| MediaWiki | |
| 数据库更改 | 否 |
|
$wgHtmlFromFileMappings |
|
| 许可证 | Creative Commons Zero v1.0 Universal |
| 下載 | |
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";
完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。
Configuration parameters
- $wgHtmlFromFileMappings
- Array which maps short names for in-wiki usage to actual file names where the content is
