Extension:LogoFunctions/es

Category:GPL licensed extensions/es
Manual de extensiones de MediaWiki
LogoFunctions
Estado de la versión: estableCategory:Stable extensions/es
Implementación Función del analizador Category:Parser function extensions/es
Descripción Adds a parser function about the wiki's logo
Autor(es) JuneHyeon Bae (*devuntdiscusión)
Última versión 2.0 (2019-09-15)
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
PHP 7.0+
Cambios en la base de datos No
Licencia Licencia Pública General de GNU 2.0 o posterior
Descargar Category:Extensions in Wikimedia version control/es
  • $wgNamespaceLogos
Descargas trimestrales 1 (Ranked 100th)
Traduce la extensión LogoFunctions si está disponible en translatewiki.net
Incidentes Tareas abiertas · Reportar un error
Category:All extensions/es

The LogoFunctions extension adds parser functions to override or add stamps to the wiki's logo.

Uso

#setlogo
{{#setlogo:ExampleLogo.png}}

Establecer el logo a [[File:ExampleLogo.png]]

#stamplogo
{{#stamplogo:Featured.png|190px|top|-1em|-1em}}

This adds a featured article stamp to the logo ([[File:Featured.png]]), 190px wide, -1em from the left, -1em from the top, as seen on uncyclopedia:Page title.

top or bottom options can be used, for up to two stamps applied to the logo on a page.

Instalación

This extension was broken for several years. Use master or respectively the versions for MediaWiki 1.34 and later once available to install it.
  • Descarga y mueve la carpeta LogoFunctions extraída a tu directorio extensions/.
    Los desarrolladores y contribuidores de código deberían instalar la extensión desde Git en su lugar, usando:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'LogoFunctions' );
    
  • Configure as required.
  • Yes Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Configuration

This extension can be used to set per-namespace logos via configuration by mapping a namespace number to a file available on the wiki:

$wgNamespaceLogos = [
	6 => 'Uncyclomedia Commons.png',
	7 => 'Uncyclomedia Commons.png',
];

The above code added to your "LocalSettings.php" file will set the specified files as logos for the "File" and "File talk" namespace. For these in particular, do remember to protect the files and also to mark them as used to prevent them from being deleted.

Do not use namespace constants but namespace numbers for configuration since the former will not work. See T232952 for further information.
Category:All extensions/es Category:BeforePageDisplay extensions/es Category:Extensions in Wikimedia version control/es Category:Extensions included in Miraheze/es Category:Extensions included in WikiForge/es Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/es Category:ParserFirstCallInit extensions/es Category:Parser function extensions/es Category:Stable extensions/es