Extension:MultimediaViewer/pt-br

Category:Extensions maintained by Reader Teams/pt-brCategory:Extensions maintained by Reader Growth/pt-brCategory:Extensions maintained by Reader Teams - Level Pending/pt-br Category:GPL licensed extensions/pt-br
Manual de extensões do MediaWiki
MultimediaViewer
Estado da versão: estávelCategory:Stable extensions/pt-br
Implementação Interface de usuárioCategory:User interface extensions/pt-br, AjaxCategory:Ajax extensions/pt-br
Descrição Proporciona uma melhor experiência aos usuários quando eles clicam nas miniaturas em uma página
Autor(es)
Política de
compatibilidade
Lançamentos de snapshot junto com o MediaWiki. A master não é retrocompatível.
MediaWiki 1.25+Category:Extensions with manual MediaWiki version/pt-br
PHP 5.4+
  • $wgMediaViewerThumbnailBucketSizes
  • $wgMediaViewerRecordVirtualViewBeaconURI
  • $wgMediaViewerImageQueryParameter
  • $wgMediaViewerUseThumbnailGuessing
  • $wgMediaViewerEnableByDefault
  • $wgMediaViewerEnableByDefaultForAnonymous
  • $wgMediaViewerExtensions
Licence GNU GPL (Licença Pública Geral) 2.0 ou superior
Download Category:Extensions in Wikimedia version control/pt-br
Exemplo MediaWiki.org
Para traduzir a extensão MultimediaViewer, verifique sua disponibilidade no translatewiki.net
Problemas Tarefas em aberto · Relatar um bug
Category:All extensions/pt-br

A extensão Visualizador multimídia dá ao usuário de um wiki uma interface diferente para visualizar imagens em tamanho real, ou quase em tamanho total, em seu navegador, sem cargas de página estranhas ou páginas intersticiais confusas.

Instalação

You will also likely want to download Extensão:CommonsMetadata. It is not a hard requirement, but without it, you will not get much information in the boxes showing details about the images.

On third-party wikis, even if you only use locally uploaded images, you need CommonsMetadata to populate the information in the boxes via a template holding information about the files.

Esta extensão vem com o MediaWiki 1.31 e versões superiores. The remaining configuration instructions must still be followed.Category:Extensions bundled with MediaWiki 1.31/pt-br
  • Baixe e mova a pasta extraída MultimediaViewer 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/MultimediaViewer
    
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'MultimediaViewer' );
    
  • 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.


Instalação com o Vagrant:

  • Se estiver usando o Vagrant , instale com vagrant roles enable multimediaviewer --provision

Configuração

  • $wgMediaViewerEnableByDefault and $wgMediaViewerEnableByDefaultForAnonymous will determine whether MultimediaViewer is enabled by default for everyone and anonymous users, respectively.

They both default to true.

  • $wgMediaViewerUseThumbnailGuessing will improve performance when enabled, but can be fragile depending on how the wiki is set up (it will probably work fine if you use a 404 handler).
Forced download

To ensure files are offered for download and not viewed in the user's browser following a click on the Download … button, the server has to be configured, except when using vagrant:

If the requested URL to an image directory contains the download query parameter, the Content-Disposition-header must be set to attachment. This can be achieved in Apache and compatible servers using mod_rewrite and mod_headers in a .htaccess file. Varnish configuration can look like this.

Usage testing

Next, go to a page that has a thumbnail on it. Try clicking on the image or on the "expand" icon near it. The lightbox should pop up and give you a bigger view of the image.

If you'd prefer, there's an exported test environment that you can use via "Special:Import" to set up a suitable testing environment quickly.

Predefinições

MultimediaViewer and UploadWizard need several templates to show data of photos. Save this code in an XML file and import it in your wiki.

Ver também

Category:Extensions used on Wikimedia/pt-br#MultimediaViewer/pt-br Category:Image extensions/pt-br
Category:Ajax extensions/pt-br Category:All extensions/pt-br Category:BeforePageDisplay extensions/pt-br Category:CategoryPageView extensions/pt-br Category:Extensions available as Debian packages/pt-br Category:Extensions bundled with MediaWiki 1.31/pt-br Category:Extensions in Wikimedia version control/pt-br Category:Extensions included in BlueSpice/pt-br Category:Extensions included in Canasta/pt-br Category:Extensions included in Fandom/pt-br Category:Extensions included in Miraheze/pt-br Category:Extensions included in MyWikis/pt-br Category:Extensions included in ProWiki/pt-br Category:Extensions included in Telepedia/pt-br Category:Extensions included in semantic::core/pt-br Category:Extensions included in wiki.gg/pt-br Category:Extensions maintained by Reader Growth/pt-br Category:Extensions maintained by Reader Teams/pt-br Category:Extensions maintained by Reader Teams - Level Pending/pt-br Category:Extensions used on Wikimedia/pt-br Category:Extensions with manual MediaWiki version/pt-br Category:GPL licensed extensions/pt-br Category:GetPreferences extensions/pt-br Category:Image extensions/pt-br Category:MakeGlobalVariablesScript extensions/pt-br Category:ResourceLoaderGetConfigVars extensions/pt-br Category:Stable extensions/pt-br Category:ThumbnailBeforeProduceHTML extensions/pt-br Category:UserGetDefaultOptions extensions/pt-br Category:User interface extensions/pt-br