扩展:Wiki编辑器

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Extension:WikiEditor and the translation is 54% complete.

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎한국어 • ‎Lëtzebuergesch • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎sicilianu • ‎سنڌي • ‎中文
This extension comes with MediaWiki 1.18 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
MediaWiki扩展手册Manual:Extensions
Crystal Clear action run.png
WikiEditor

发布状态:Extension status 稳定版

VectorEditorBasic-en.png
描述Template:Extension#description Provides an extendable wikitext editing interface and many feature-providing modules
作者Template:Extension#username Trevor Parscal, Roan Kattouw
最新版本Template:Extension#version 0.5.1 (2016-04-15)
MediaWikiTemplate:Extension#mediawiki 1.25+
许可协议Template:Extension#license GNU General Public License 2.0 or later
下载
README
例子Template:Extension#example Test Wikipedia
参数Template:Extension#parameters

$wgWikiEditorFeatures

使用的钩子Template:Extension#hook
EditPage::showEditForm:initialManual:Hooks/EditPage::showEditForm:initial
GetPreferencesManual:Hooks/GetPreferences
MakeGlobalVariablesScriptManual:Hooks/MakeGlobalVariablesScript
ResourceLoaderRegisterModulesManual:Hooks/ResourceLoaderRegisterModules

翻译WikiEditor扩展(如果在translatewiki.net可用)

检查使用和版本矩阵。

问题Phabricator

开放的工作 · 报告错误

The WikiEditor extension provides an improved interface for editing wikitext. It is the editing interface that Wikipedia started using in 2010 for desktop users.

It includes an extendable framework with a set of feature-based modules, each of which can be selectively enabled or disabled, aiming to improve the user experience of editing in different ways.


安装[edit]

  • 下载文件,并将其放置在您extensions/文件夹中的WikiEditor目录内。

配置[edit]

注意只有usebetatoolbarusebetatoolbar-cgd配置选项在维基媒体网站上启用。其他配置选项的支持可能有限。

# Enables use of WikiEditor by default but still allows users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;

# Enables link and table wizards by default but still allows users to disable them in preferences
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

# Displays the Preview and Changes tabs
$wgDefaultUserOptions['wikieditor-preview'] = 1;

# Displays the Publish and Cancel buttons on the top right side
$wgDefaultUserOptions['wikieditor-publish'] = 1;

把上面的代码添加到您的 LocalSettings.php 文件底部。 在某些情况下,WikiEditor可能会在您安装后仍然不能在您的浏览器上显示出来。 如果出现这种情况,请尝试清空浏览器缓存。

注意 注意:

个性化工具栏[edit]

参见工具栏定制

扩展[edit]

工具栏模块[edit]

Wiki编辑器。

A toolbar visible on editing pages which replaces the stock toolbar. 参见工具栏图标

章节[edit]

工具栏
加粗的按钮工具。
Default select tools: Format, Insert, Special characters, Help

A toolbar is a series of groups, each with a series of tools, rendered in the writing direction of the content language, with visible dividers between groups.

Supported Tool Types

  • Button - an icon which can be clicked
  • Select - a drop-down list which can be selected from
小册子
加载帮助小册子

A booklet is a series of named pages which can be viewed one at a time and navigated through using an index list widget.

Supported Page Types

  • Table - a grid of columns and rows
  • Characters - a series of rectangular buttons containing text values

操作[edit]

Each tool has an action which is executed when the tool is used. The most commonly used action is encapsulate, which operates on the currently selected text, prepending text, appending text and in the case that no text was selected inserting text at the cursor. The encapsulate action takes three parameters, pre, peri and post, which can either be raw text or message keys.

原始文本 消息 描述
pre preMsg Text to place before the cursor/selection
peri periMsg Text to place at the cursor if there is no selection
post postMsg Text to place after the cursor/selection/peri text

实验室模块[edit]

Part of the WikiEditor extension were a number of alpha quality modules. These alpha modules are now deprecated and are being removed. The modules are: highlighter, toc, templates and template editor. 您不应使用它们。

参见[edit]