Extension:LogoFunctions/pt-br

Category:GPL licensed extensions/pt-br
Manual de extensões do MediaWiki
LogoFunctions
Estado da versão: estávelCategory:Stable extensions/pt-br
Implementação Função de análise sintática Category:Parser function extensions/pt-br
Descrição Adiciona uma parser function sobre o logo da wiki
Autor(es) JuneHyeon Bae (*devuntdiscussão)
Última versão 2.0 (2019-09-15)
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
PHP 7.0+
Modifica o banco
de dados
Não
Licença GNU GPL (Licença Pública Geral) 2.0 ou superior
Download Category:Extensions in Wikimedia version control/pt-br
  • $wgNamespaceLogos
Quarterly downloads 1 (Ranked 100th)
Para traduzir a extensão LogoFunctions, verifique sua disponibilidade no translatewiki.net
Problemas Tarefas em aberto · Relatar um bug
Category:All extensions/pt-br

A extensão LogoFunctions adiciona uma parser function sobre o logo de sua wiki.

Uso

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

Defina o logo para [[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.

Instalação

This extension was broken for several years. Use master or respectively the versions for MediaWiki 1.34 and later once available to install it.
  • Baixe e mova a pasta extraída LogoFunctions ao seu diretório extensions/.
    Desenvolvedores e colaboradores de código, por outro lado, deverão instalar a extensão a partir do Git, usando:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'LogoFunctions' );
    
  • Configure as required.
  • Yes Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.

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/pt-br Category:BeforePageDisplay extensions/pt-br Category:Extensions in Wikimedia version control/pt-br Category:Extensions included in Miraheze/pt-br Category:Extensions included in WikiForge/pt-br Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/pt-br Category:ParserFirstCallInit extensions/pt-br Category:Parser function extensions/pt-br Category:Stable extensions/pt-br