Extension:HtmlFromFile

Category:Unmaintained extensions#HtmlFromFile Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:Public domain licensed extensions
MediaWiki extensions manual
HtmlFromFile
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Tag Category:Tag extensions
Description Includes HTML snippets from files into wiki pages
Author(s) Constantin Berhard (ConnyOnnyOnnytalk)
MediaWiki Category:Extensions without MediaWiki version
Database changes No
License Creative Commons Zero v1.0 Universal
Download Category:Extensions in GitLab version control
$wgHtmlFromFileMappings
Category:All extensionsCategory:Extensions not in ExtensionJson

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

Configuration parameters

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

See also

Category:All extensions Category:Extensions in GitLab version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions without MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:ParserFirstCallInit extensions Category:Public domain licensed extensions Category:Tag extensions Category:Unmaintained extensions