Tema:Vector

From mediawiki.org
This page is a translated version of the page Skin:Vector and the translation is 57% complete.
Outdated translations are marked like this.
This skin comes with MediaWiki 1.16 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
MediaWiki skins manual - category
Vector
Release status: stable
Compatibility policy Snapshots releases along with MediaWiki. Master is not backwards compatible.
Composer mediawiki/vector-skin
License GNU General Public License 2.0 or later
Download
Example
Parameters
Quarterly downloads 741 (Ranked 1st)
Public wikis using 14,010 (Ranked 2nd)
Public wikis using as default skin 5,943
Translate the Vector skin if it is available at translatewiki.net
Vagrant role vector
Issues : Open tasks · Report a bug

Vector è un tema MediaWiki che è stato il tema predefinito di MediaWiki dal 2010, rimpiazzando MonoBook .

Negli ultimi anni il tema ha subito una serie di modifiche tecniche, ad es. il passaggio a Mustache per supportare la costruzione di Skin:Vector/2022 come parte del lavoro svolto dall'iniziativa Lettura/Web/Migliorie all'IU desktop .

Installazione

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

Manual installation

  • Download and place the file(s) in a directory called Vector in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadSkin( 'Vector' );
    
  • Yes Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Impostare il tema predefinito a Vector

Un tema predefinito dovrebbe essere impostato per i nuovi utenti del wiki impostando la variabile $wgDefaultSkin in LocalSettings.php al nome del tema minuscolo specificato nel file del tema:

$wgDefaultSkin = 'vector'; // "Legacy" Vector (2010)
$wgDefaultSkin = 'vector-2022'; // New Vector (2022)

Parametri di configurazione

$wgVectorUseIconWatch

Watch and unwatch as an icon rather than a link.

  • Valori supportati:
    • trueuse an icon watch/unwatch button
    • falseuse watch/unwatch text link
$wgVectorUseIconWatch = true;

$wgVectorResponsive

Versioni di MediaWiki:
1.26 – 1.35

Impostazione sperimentale per rendere Vector un tema reattivo che si adatta ai telefoni cellulari. false by default.

  • Valori supportati:
    • true — Usa la reattività per migliorare l'usabilità con visualizzazioni ristrette
    • false — Nessuna reattività

Versioni di MediaWiki:
1.30 – 1.35

Logo usato negli stili di stampa.

Keys are 'url', 'width', 'height' (in pixels). Note that this solution only works correctly if the image pointed to by 'url' is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below. In alternativa, è possibile utilizzare un PNG o un altro tipo di immagine, ma anche le sue dimensioni devono corrispondere alla variabile corrispondente di seguito. Ciò però può causare immagini sfocate.

For MediaWiki 1.36 and higher, the print logo will simply be set from Manual:$wgLogos .

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

$wgVectorShareUserScripts

Setting to false prevents Vector 2022 skin from loading MediaWiki:Vector.css and MediaWiki:Vector.js.


Caratteristiche

Funzionalità di base del tema Vector
  • Reduced clutter, primarily by reducing the number of lines on screen
  • More prominent placement of the search portal
  • Visual separation of the content-action and namespace links, the former of which being divided into view tabs and action menu items
  • Automatic increase/decrease of margins throughout the user interface based on browser size
  • Use of a star icon for watch and unwatch actions
Added features of the Vector extension (some of these features have later been merged into the Vector skin or into the MediaWiki Core or have been removed)
  • Portale di ricerca semplificata, che include i suggerimenti
  • Collapsible navigation portals
  • Alert when leaving an edit page without saving
  • Automatic hiding of tabs that do not fit on screen
Caratteristiche di estensione di Vector sperimentali
  • Contenuti del piè di pagina semplificati
  • Riquadro di ricerca che si espande se ha il focus
  • I collegamenti di modifica della sezione sono stati spostati direttamente accanto all'intestazione anziché sulla destra, e usano un'icona
CollapsibleNav support via CollapsibleVector extension

Note

Navigazione comprimibile

I portali di navigazione comprimibile ora vengono forniti dell'estensione CollapsibleVector che dovrà essere installata a parte.

Progettazione per smartphone e tablet

Vector funzionerà su molti dispositivi mobili, anche se non completamente ottimizzato per questi. This latest version of Vector, Vector 2022, has better support for mobile devices.

Storia del tema

Vector è stato creato nel 2009 come parte del lavoro svolto dal Wikipedia Usability Initiative . It became MediaWiki's default skin in 2010 (MediaWiki 1.17 , git #2833b07a), succeeding Skin:MonoBook . In 2022, as part of the MediaWiki 1.38 release, it was updated as part of the work done by the Lettura/Web/Migliorie all'IU desktop initiative.

Vector fornisce un certo numero di miglioramenti di usabilità rispetto al suo predecessore MonoBook. È stato il primo tema a separare il livello piatto content_actions nel categorizzato content_navigation.

All'inizio, la funzionalità di base era inclusa nel tema principale, mentre alcune delle funzionalità speciali di Vector erano gestite da un'estensione separata, Extension:Vector . In MediaWiki 1.22, l'estensione è stata inglobata nel tema.

Personalizzazioni della modalità scura

A dark color scheme can be applied to Vector using CSS , for example with user styles, [1] which are enabled by default. Dark mode derivatives of the Vector skin, such as Skin:DarkVector , can be loaded into a wiki as a separate option.

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

Vedi anche

Nuovo tema Vector in 1.38+

Versione MediaWiki:
1.38

In MediaWiki 1.38 una nuova variante di Vector, Vector 2022 è stata creata come parte del progetto Desktop Improvements .