Tillägg:WikiEditor

From mediawiki.org
This page is a translated version of the page Extension:WikiEditor and the translation is 29% complete.
Detta tillägg följer med i MediaWiki 1.18 och framåt. Därav behöver du inte ladda ner det igen. Du behöver däremot fortfarande följa de angivna instruktionerna.
Manual för MediaWikitillägg
OOjs UI icon advanced-invert.svg
WikiEditor
Utgivningsstatus: stabil
VectorEditorBasic-en.png
Beskrivning Erbjuder en utfällbart gränssnitt för wikitextredigering och flera funktionserbjudande moduler
Författare
Senaste versionen Fortsatta uppdateringar
MediaWiki >= 1.39.0
Licenser GNU General Public License 2.0 eller senare
Ladda ner
README
Exempel Test Wikipedia
  • $wgWikiEditorRealtimePreview
  • $wgWikiEditorRealtimePreviewDebounce
  • $wgWikiEditorRealtimeDisableDuration
Översätt tillägget WikiEditor om det finns tillgängligt på translatewiki.net

Kontrollera användning och versionsmatris.

Ärenden Öppna ärenden · Rapportera en bugg

The WikiEditor extension provides an improved interface (primarily a toolbar) for editing wikitext. It is the wikitext editing interface that Wikipedia started using in 2010 for desktop users, and so it is sometimes called the 2010 wikitext editor.

Installation

  • Ladda ner och placera filen/filerna i en katalog som heter WikiEditor i din extensions/-mapp.
  • Lägg till följande kod längst ner i dina LocalSettings.php :
    wfLoadExtension( 'WikiEditor' );
    
  • Yes Klart – Ta dig till Special:Version på din wiki för att bekräfta att tillägget har installerats ordentligt.

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 represents the icons. To fix this, you have to add the MIME type.

Konfigurering

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 "Aktivera redigeringsverktygsraden" option (under the "Redigering" tab).

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

$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

MediaWiki-version:
1.39

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.

History

The extension used to provide "Labs" features for "publication" and "preview" steps, but these were removed from REL1_31 onwards.

Se även

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