Extension:HtmlFromFile/ru

Category:Unmaintained extensions/ru#HtmlFromFile/ru Category:Public domain licensed extensions/ru
Справка по расширениям MediaWiki
HtmlFromFile
Статус релиза: не поддерживаетсяCategory:Unmaintained extensions/ru
Реализация Тег Category:Tag extensions/ru
Описание Includes HTML snippets from files into wiki pages
Автор(ы) Constantin Berhard (ConnyOnnyOnnyобсуждение)
MediaWiki Category:Extensions without MediaWiki version/ru
Изменения в БД Нет
Лицензия Creative Commons Zero v1.0 Universal
Скачать Category:Extensions in GitLab version control/ru
$wgHtmlFromFileMappings
Category:All extensions/ruCategory:Extensions not in ExtensionJson/ru

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";
    
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.Category:Extensions not using extension registration/ru

Параметры конфигурации

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

См. также

Category:All extensions/ru Category:Extensions in GitLab version control/ru Category:Extensions not in ExtensionJson/ru Category:Extensions not using extension registration/ru Category:Extensions without MediaWiki version/ru Category:ParserFirstCallInit extensions/ru Category:Public domain licensed extensions/ru Category:Tag extensions/ru Category:Unmaintained extensions/ru