Extension:HtmlFromFile/de-formal

From mediawiki.org
This page is a translated version of the page Extension:HtmlFromFile and the translation is 20% complete.
MediaWiki extensions manual
HtmlFromFile
Release status: unmaintained
Implementation Tag
Description Includes HTML snippets from files into wiki pages
Author(s) Constantin Berhard (ConnyOnnyOnnyDiskussion)
MediaWiki
Database changes No
License Creative Commons Zero v1.0 Universal
Download
$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

  • Die Download und die Datei(en) in ein Verzeichnis namens HtmlFromFile im Ordner extensions/ ablegen.
  • Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
    require_once "$IP/extensions/HtmlFromFile/HtmlFromFile.php";
    
  • Yes Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Configuration parameters

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

Siehe auch