Tillägg:WikiEditor
![]() Utgivningsstatus: stabil |
|
---|---|
![]() |
|
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 |
|
|
Quarterly downloads | 1,017 (Ranked 6th) |
Public wikis using | 10,287 (Ranked 5th) |
Översätt tillägget WikiEditor om det finns tillgängligt på translatewiki.net | |
Ä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 dinextensions/
-mapp. - Lägg till följande kod längst ner i din
LocalSettings.php
:wfLoadExtension( 'WikiEditor' );
- 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;
This feature is as of August 2022 being tested on some wikis like this wiki.
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
- Extension:WikiEditor/Toolbar customization – tekniska detaljer för att anpassa verktygsraden.
- Extension:WikiEditor/Toolbar customization/Library – snuttar av koden för vanliga tillägg till verktygsraden.
- RefToolbar 2.0, på-plats JavaScript som lägger till en Cite-mallverktyg till WikiEditors UI.
- 2017 års wikitextredigerare
- Extension:EventLogging – if the EventLogging extension is installed, WikiEditor will make use of it.
Det här tillägget används på ett eller fler av Wikimedias projekt. Det betyder förmodligen att tillägget är stabilt och fungerar tillräckligt bra för att användas på högtrafikerade hemsidor. Leta efter tilläggets namn i Wikimedias CommonSettings.php och InitialiseSettings.php-konfigureringsfiler för att se var det har installerats. En fullständig lista över tillägg som installerats på en wiki finns på wikins Special:Version-sida. |
Följande paket och/eller wikihotell innehåller detta tillägg: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |