Jump to content

Ekstensi:WikiEditor

From mediawiki.org
This page is a translated version of the page Extension:WikiEditor and the translation is 13% complete.
Manual pengaya MediaWiki
WikiEditor
Status keluaran: stabil
Deskripsi Memberikan antarmuka penyunting teks wiki yang dapat diperluas serta banyak modul yang menyediakan fitur
Perancang
Versi terbaru Pembaruan berkelanjutan
MediaWiki >= 1.46
Lisensi Lisensi Publik Umum GNU 2.0 atau lebih baru
Unduh
README
Contoh Wikipedia Uji Coba
  • $wgWikiEditorRealtimePreviewDebounce
  • $wgWikiEditorRealtimePreview
  • $wgWikiEditorRealtimeDisableDuration
Terjemahkan pengaya WikiEditor jika tersedia di translatewiki.net
Masalah Tugas terbuka · Laporkan kekutu

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

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.
  • Unduh dan pindahkan folder WikiEditor yang diekstrak ke direktori extensions/ Anda.
    Pengembang dan penyumbangsih kode sebaiknya memasang pengaya dari Git sebagai gantinya, menggunakan:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
    
  • Tambahkan kode berikut di bawah berkas LocalSettings.php Anda:
    wfLoadExtension( 'WikiEditor' );
    
  • Yes Selesai – Telusuri ke Special:Version di wiki Anda untuk memastikan pengayanya berhasil dipasang.

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.

Konfigurasi

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 Nyalakan bilah alat penyuntingan: Ini terkadang disebut 'penyunting teks wiki 2010'. option (under the Penyuntingan 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';
Versi MediaWiki:
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.
Versi MediaWiki:
1.41

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

$wgWikiEditorRealtimePreview = false;
Versi MediaWiki:
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.