Extension:DonateButton/pt

This page is a translated version of the page Extension:DonateButton and the translation is 35% complete.
Outdated translations are marked like this.
Manual de extensões do MediaWiki
DonateButton
Estado de lançamento: estável
px
Implementação Tema , Minha Wiki , Hook
Descrição Adicionar botão com link para uma página de doação
Autor(es) WikiMANNia (WikiForMendiscussão)
Última versão 1.6.0 (2024-04-21)
MediaWiki 1.35+
PHP 7.3.19+
Licença GNU - Licença Pública Geral 2.0 ou superior
Transferência
  • $wmDonateButton
  • $wmDonateButtonURL

A extensão DonateButton permite adicionar um botão personalizado com um link para uma página de doação para a wikis barra lateral . O botão Imagem é automaticamente adaptado de acordo com a linguagem selecionada.

Utilização

Instale a extensão e carregue um ficheiro para a wiki, como especificado em $wmDonateButtonFilename. Ao inserir * donatebutton no MediaWiki:Sidebar , o botão pode ser colocado individualmente.

Instalação

  • Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado DonateButton, na sua pasta extensions/.
  • Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
    wfLoadExtension( 'DonateButton' );
    
  •   Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.

Opções de configuração

Enable the DonateButton. Default is false.

$wmDonateButton = true;

An image with this name should be uploaded on each wiki of your wikifarm.

  • Specify the link to a donation page.
$wmDonateButtonURL = "https://example.org/yourdonationpage.php?lang=";

The link is automatically completed by the code of the language selected by the user or alternatively by the $wgLanguageCode variable.

Localisation

The extension is provided in "de", "en", "es", "fr", "he", "it", "nl", "pt", "ru".

Consulte também

Remarks

  • Esta extensão funciona a partir de REL1_25 e tem sido testada até à versão MediaWiki REL1_37 .
  • Branch REL1_35 works from REL1_35 and has been tested up to MediaWiki version REL1_41 .
  • Configuration of a donation link in skin Minerva Neue .
  • Version 1.5 has some Refactoring:
    Changed “configuration schema”, replaced manifest version 1 with version 2 and changed the prefix of the configuration variables from default to wm.
    Replaced class “DonateButtonHooks” (extends “Hooks”) with class implements interfaces.
  • Version 1.5.1 adds a dirty hack for skin Timeless.
  • The extension was tested with the following MediaWiki versions: 1.35.14, 1.39.7, 1.40.2, 1.41.1
  • Version 1.6.0 has added support for skin Monaco.