Jump to content

Extension:HtmlFromFile/es

From mediawiki.org
This page is a translated version of the page Extension:HtmlFromFile and the translation is 20% complete.
Manual de extensiones de MediaWiki
HtmlFromFile
Estado de la versión: sin mantenimiento
Implementación Etiqueta
Descripción Includes HTML snippets from files into wiki pages
Autor(es) Constantin Berhard (ConnyOnnyOnnydiscusión)
MediaWiki
Cambios en la base de datos No
$wgHtmlFromFileMappings
Licencia Creative Commons Cero v1.0 Universal
Descargar

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.

Instalación

  • Download y extrae los archivos en el directorio «HtmlFromFile» dentro del directorio extensions/ existente.
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    require_once "$IP/extensions/HtmlFromFile/HtmlFromFile.php";
    
  • Yes Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Configuration parameters

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

Ve también