Extension:HtmlFromFile/ru
![]() Статус релиза: не поддерживается |
|
---|---|
Реализация | Тег |
Описание | Includes HTML snippets from files into wiki pages |
Автор(ы) | Constantin Berhard (ConnyOnnyOnnyобсуждение) |
MediaWiki | |
Изменения в БД | Нет |
Лицензия | Creative Commons Zero v1.0 Universal |
Скачать | GitLab: Note: |
Параметры
$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.
Установка
- Download и распакуйте файл(ы) в папку с названием
HtmlFromFile
в вашей папкеextensions/
. - Добавьте следующий код в конце вашего файла 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