Jump to content

Skin:Vector/pt-br: Difference between revisions

From mediawiki.org
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
Line 41: Line 41:
<span class="mw-translate-fuzzy">'''Vector''' é um [[Special:MyLanguage/Manual:Skins|tema]] para MediaWiki que se tornou padrão em 2010 ($1, $2), sucedendo o [[$4|MonoBook]].</span>
<span class="mw-translate-fuzzy">'''Vector''' é um [[Special:MyLanguage/Manual:Skins|tema]] para MediaWiki que se tornou padrão em 2010 ($1, $2), sucedendo o [[$4|MonoBook]].</span>


<span lang="en" dir="ltr" class="mw-content-ltr">In recent years the skin underwent a number of technical changes, e.g. the switch to {{ll|Mustache}}</span>
<span lang="en" dir="ltr" class="mw-content-ltr">In recent years the skin underwent a number of technical changes, e.g. the switch to {{ll|Mustache}} to support the construction of [[Skin:Vector/2022]] as part of the work done by the {{ll|Reading/Web/Desktop Improvements}} initiative.</span>

In 2021, as part of the MediaWiki 1.36-1.38 releases it will see incremental updates as part of the work done by the {{ll|Reading/Web/Desktop Improvements}} initiative.
<span lang="en" dir="ltr" class="mw-content-ltr">At the end of the project, the 2010 version and 2021 versions will be split into two separate skins.</span>


{{anchor|Installation}}
{{anchor|Installation}}
Line 172: Line 169:


== Ver também ==
== Ver também ==
* {{ll|Skin:Vector/2022}} The 2022 version of Vector
* {{ll|Skin:MonoBook}} – A skin padrão anterior do MediaWiki
* {{ll|Skin:MonoBook}} – A skin padrão anterior do MediaWiki
* {{ll|Skin:DarkVector}} – <span lang="en" dir="ltr" class="mw-content-ltr">Dark theme of the same skin</span>
* {{ll|Skin:DarkVector}} – <span lang="en" dir="ltr" class="mw-content-ltr">Dark theme of the same skin</span>
Line 181: Line 179:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== New Vector skin in 1.36+ ==
== New Vector skin in 1.38+ ==
</div>
</div>
{{MW 1.36|+}}
{{MW 1.38|+}}
<span lang="en" dir="ltr" class="mw-content-ltr">In MediaWiki 1.36 a new variant of Vector was added as part of {{ll|Reading/Web/Desktop Improvements}}.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">In MediaWiki 1.38 a new variant of Vector [[Skin:Vector/2022]] was made available part of {{ll|Reading/Web/Desktop Improvements}}.</span>
While available to use, this is not actively supported for 3rd parties at the time of writing and used at your own risk. Official support for this skin should be added as part of the 1.38 release.

=== wgVectorDefaultSkinVersion ===
{{MW 1.36|+}}

To preview the new skin, in 1.36-1.38 you can use the following configuration:

<syntaxhighlight lang="php">
$wgVectorResponsive = true;
$wgVectorDefaultSkinVersion = '2';
</syntaxhighlight>



{{OnWikimedia}}
{{OnWikimedia}}

Revision as of 16:49, 26 January 2022

Este tema acompanha o MediaWiki 1.17 ou superior. Logo, não é necessário baixá-la novamente. No entanto, ainda é necessário seguir as outras instruções fornecidas.
MediaWiki skins manual - categoria
Vector
Estado da versão: estável
Política de
compatibilidade
Snapshots releases along with MediaWiki. Master is not backwards compatible.
Composer mediawiki/vector-skin
Licença GNU General Public License 2.0 or later
Baixar
Exemplo https://en.wikipedia.org/
Parâmetros
Quarterly downloads 717 (Ranked 1st)
Public wikis using 14,010 (Ranked 2nd)
Public wikis using as default skin 5,943
Para traduzir o tema Vector, verifique sua disponibilidade no translatewiki.net
Função no Vagrant vector
Problemas : Tarefas em aberto · Relatar um erro

Vector é um tema para MediaWiki que se tornou padrão em 2010 ($1, $2), sucedendo o MonoBook.

In recent years the skin underwent a number of technical changes, e.g. the switch to Mustache to support the construction of Skin:Vector/2022 as part of the work done by the Leitura/Web/Melhorias da Área de Trabalho initiative.

Instalação

  • If using Vagrant , install with vagrant roles enable vector -p

Manual installation

  • Baixe e coloque o(s) arquivo(s) em uma pasta chamada Vector dentro da sua pasta skins/.
  • Adicione o seguinte código no final do arquivo LocalSettings.php:
    wfLoadSkin( 'Vector' );
    
  • Yes Concluído - Vá até Special:Version em sua wiki para se certificar que a instalação da skin foi bem-sucedida.

Para usuários utilizando MediaWiki 1.24 ou anteriores:

As instruções acima descrevem a nova forma de instalar skins utilizando wfLoadSkin(), a partir do MediaWiki 1.25. Para instalar esta skin em versões anteriores, em vez de wfLoadSkin( 'Vector' );, você precisa usar:

require_once "$IP/skins/Vector/Vector.php";

(Para utilizar uma skin em uma versão anterior, pode ser necessário baixar a versão marcada para a versão específica em Special:SkinDistributor.)

Setting the default skin to Vector

A default skin should be set for new users of a wiki by setting the variable $wgDefaultSkin in LocalSettings.php to the lowercase skin name specified in the skin file:

$wgDefaultSkin = 'vector';
// uncomment the following line to restore "classic" Vector appearance.
// $wgVectorDefaultSkinVersion = '1';

Opções de configuração

wgVectorUseIconWatch

  • Assista e desenrole como um ícone em vez de um link.
  • Supported Values:
    • true — use um botão de relógio/botão de desenrolar
    • false — use o link de texto relógio/desenrolar
$wgVectorUseIconWatch = true;

wgVectorResponsive (< 1.36)

Versão MediaWiki:
1.26

* Configuração experimental para tornar o Vector um pouco mais responsivo. Ainda não está sendo testado ou usado ativamente na produção, mas relativamente estável e falso por padrão.

  • Supported Values:
    • true — Use a capacidade de resposta para melhorar a usabilidade em viewports estreitas
    • false — Sem capacidade de resposta

Note as of 1.36 this experimental feature flag no longer works in the default Vector skin. Those looking for a responsive Vector skin can use #New Vector skin in 1.36+ at their own risk.

wgVectorPrintLogo (< 1.36, removed in 1.36)

Versão MediaWiki:
1.30

Logotipo usado em estilos de impressão. Chaves são 'url', 'width', 'height' (em pixels). Observe que esta solução só funciona corretamente se a imagem apontada por 'url' for um SVG que não especifica os atributos de largura e altura, ou se sua largura e altura corresponderem às variáveis correspondentes abaixo. Como alternativa, um PNG ou outro tipo de imagem pode ser usado, mas suas dimensões também precisam corresponder à variável correspondente abaixo. Isso, por sua vez, pode resultar em imagens tremidas.

In 1.36, please use Manual:$wgLogos

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];

Características

Características básicas da skin Vector
  • Redução de desordem, principalmente através da redução do número de linhas na tela
  • Posicionamento mais proeminente do portal de pesquisa
  • Separação visual dos links de ações de conteúdo e de namespaces, o primeiro dos quais sendo dividido em guias de visualização e itens do menu de ações
  • Aumento/diminuição automáticos das margens em toda a interface de usuário com base no tamanho do navegador
  • O uso de um ícone de estrela para o relógio e as ações de cancelamento de vigilância
Adicionadas características da extensão Vector (alguns desses recursos foram mais tarde incorporados pela skin Vector, no núcleo do MediaWiki ou foram removidos)
  • Portal de pesquisa simplificado, incluindo sugestões
  • Portais de navegação recolhíveis
  • Aviso ao sair da edição de uma página sem salvar
  • Ocultação automática de guias que não se encaixam na tela
Recursos da extensão experimental Vector
  • Conteúdo do rodapé simplificado
  • Caixa de pesquisa se expande quando em foco
  • Links de edição de seções são movidos para estar diretamente ao lado do cabeçalho, em vez de à direita, e usam um ícone
Suporte CollapsibleNav via extensão CollapsibleVector

Notas

Collapsible navigation

Os portais de navegação recolhíveis agora são fornecidos pela extensão CollapsibleVector , que deverá ser instalada adicionalmente.

Smartphone and tablet design

Vector will work on many mobile devices, but it is not fully optimized for mobile devices. This will be rectified in the new version of Vector that is currently in development: #New_Vector_skin_in_1.36+_2.

History of the skin

Vector became default skin in 2010 (MediaWiki 1.17 , git #2833b07a), succeeding MonoBook. Ele foi criado em 2009 como parte do trabalho feito pelo Wikipedia Usability Initiative . In 2021, as part of the MediaWiki 1.36 release it will see an update as part of the work done by the Reading/Web/Desktop Improvements initiative.

A Vector oferece uma série de melhorias de usabilidade sobre seu antecessor. Foi a primeira skin a separar o nível plano $1 dentro da categorizada $2. It was the first skin to separate the flat level content_actions into the categorized content_navigation.

No início, a funcionalidade básica foi incluída na skin do núcleo, enquanto algumas das características especiais da Vector foram tratadas por uma extensão separada (Extension:Vector ). Desde então, a extensão foi incorporada à própria pele.

Dark mode customizations

Many solutions relying on MediaWiki:Common.css exist to support a dark version of the skin, including Skin:Vector/Wikipedia-userstyle-dark-minimum. An alternative skin to Vector exists that allows you to install as a separate skin at Skin:DarkVector.

Note all of these are supported by third parties, not the Wikimedia Foundation.

Ver também

New Vector skin in 1.38+

Versão MediaWiki:
1.38

In MediaWiki 1.38 a new variant of Vector Skin:Vector/2022 was made available part of Leitura/Web/Melhorias da Área de Trabalho .