Extension:MultimediaViewer/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 CommonsMetatada to populate the information in the boxes via a template holding information about the files.)
- Baixe e mova a pasta extraída
MultimediaViewer
ao seu diretórioextensions/
.
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
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
![]() | Esta extensão está sendo usada(o) por um ou mais projetos da Wikimedia. Isto significa que, provavelmente, a extensão é estável e funciona bem o suficiente para ser utilizada(o) em sites da web de alto tráfego. Procure pelo nome dessa extensão nos arquivos de configuração CommonSettings.php e InitialiseSettings.php da Wikimedia para verificar onde ela foi instalada. Uma lista completa das extensões instaladas numa wiki em particular podem ser visualizadas na página Special:Version da wiki. |
![]() | Esta extensão está incluída nas seguintes fazendas/hospedagens (farms/hosts) e/ou pacotes wiki:
|