Extension:HtmlFromFile/ru

This page is a translated version of the page Extension:HtmlFromFile and the translation is 30% complete.
Справка по расширениям MediaWiki
HtmlFromFile
Статус релиза: не поддерживается
Реализация Тег
Описание Includes HTML snippets from files into wiki pages
Автор(ы) Constantin Berhard (ConnyOnnyOnnyобсуждение)
MediaWiki
Изменения в БД Нет
Лицензия Creative Commons Zero v1.0 Universal
Скачать

GitLab:

Note:
No localisation updates are
provided by translatewiki.net .

Параметры
$wgHtmlFromFileMappings
Используемые хуки
  • ParserFirstCallInit

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 на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

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

$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