Jump to content

Extensió:WikiEditor

From mediawiki.org
This page is a translated version of the page Extension:WikiEditor and the translation is 20% complete.
Manual d'extensions de MediaWiki
WikiEditor
Notes de la versió: estable
Descripció Proporciona una interfície d'edició de wikitext extensible i molts mòduls que proporcionen funcions.
Autor(s)
Darrera versió Actualitzacions contínues
MediaWiki >= 1.46
  • $wgWikiEditorRealtimePreviewDebounce
  • $wgWikiEditorRealtimePreview
  • $wgWikiEditorRealtimeDisableDuration
Licence Llicència pública general GNU 2.0 o posterior
Descàrrega
README
Exemple Viquipèdia de proves
Traduir l'extensió WikiEditor si està disponible a translatewiki.net
Incidències Tasques obertes · Informar d'un error

L'extensió WikiEditor proporciona una interfície millorada (principalment una barra d'eines) per editar wikitext. És la interfície d'edició de wikitext que Viquipèdia va començar a utilitzar el 2010 per a usuaris d'escriptori, i per això de vegades s'anomena editor de wikitext del 2010.

Instal·lació

This extension comes with MediaWiki 1.18 and later, so you do not need to download it. The remaining configuration instructions must still be followed.
  • Download and move the extracted WikiEditor folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'WikiEditor' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

In some situations, WikiEditor may not show in your browser after the installation. Clearing your browser cache will solve the problem.

Note for IIS setup: By default, IIS doesn't understand .svg files. WikiEditor uses them to represent the icons. To fix this, you have to add the MIME type.

Configuration

Enabling/disabling the toolbar

No configuration is needed "out of the box". By default, when installed, this extension will be available to all users, and logged-in users can disable it from their preferences via the Habilita la barra d'edició: A vegades rep el nom d'«editor wikitext del 2010». option (under the Caixa d'edició tab).

If you wish all users to have it, and be unable to disable it, add it to $wgHiddenPrefs in your LocalSettings.php file:

$wgHiddenPrefs[] = 'usebetatoolbar';
MediaWiki version:
1.31

If you are using a version before REL1_31 and would want the toolbar to be default for users when they first join, add this line to your LocalSettings.php:

$wgDefaultUserOptions['usebetatoolbar'] = 1;

Realtime Preview

This configuration parameter defaults to true starting with version 1.41.0 of MediaWiki.
MediaWiki version:
1.41

Realtime Preview is enabled by default. Disable the Realtime Preview feature with the following:

$wgWikiEditorRealtimePreview = false;
MediaWiki versions:
1.39 – 1.40

Enable the Realtime Preview feature with the following:

$wgWikiEditorRealtimePreview = true;

Signature button

The button for adding user signatures (four tildes) is available on talk pages and in namespaces specified in $wgExtraSignatureNamespaces .

See also

  • RefToolbar 2.0, on-wiki JavaScript that adds Cite template tools to WikiEditor's UI.