帮助:可视化编辑器/用户指南

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Help:VisualEditor/User guide and the translation is 67% complete.

Other languages:
العربية • ‎asturianu • ‎azərbaycanca • ‎Bikol Central • ‎беларуская (тарашкевіца)‎ • ‎български • ‎বাংলা • ‎bosanski • ‎català • ‎Cebuano • ‎čeština • ‎Cymraeg • ‎dansk • ‎Deutsch • ‎Zazaki • ‎Emiliàn • ‎Ελληνικά • ‎emiliàn e rumagnòl • ‎English • ‎British English • ‎Esperanto • ‎español • ‎eesti • ‎فارسی • ‎suomi • ‎føroyskt • ‎français • ‎Frysk • ‎galego • ‎עברית • ‎हिन्दी • ‎Fiji Hindi • ‎hrvatski • ‎magyar • ‎Հայերեն • ‎Bahasa Indonesia • ‎Interlingue • ‎Ilokano • ‎italiano • ‎日本語 • ‎Basa Jawa • ‎ქართული • ‎ភាសាខ្មែរ • ‎ಕನ್ನಡ • ‎한국어 • ‎Lëtzebuergesch • ‎lietuvių • ‎latviešu • ‎Malagasy • ‎македонски • ‎മലയാളം • ‎मराठी • ‎Bahasa Melayu • ‎Napulitano • ‎norsk bokmål • ‎Nederlands • ‎Oromoo • ‎ଓଡ଼ିଆ • ‎Picard • ‎polski • ‎پښتو • ‎português • ‎português do Brasil • ‎română • ‎русский • ‎Scots • ‎slovenčina • ‎slovenščina • ‎српски / srpski • ‎Basa Sunda • ‎svenska • ‎தமிழ் • ‎ไทย • ‎Tagalog • ‎Türkçe • ‎татарча/tatarça • ‎українська • ‎Tiếng Việt • ‎isiXhosa • ‎ייִדיש • ‎中文
PD 注意:当你编辑本页面时,你将表示同意以CC0协议授权你的贡献。你可以在公有领域帮助文档找到更多信息。
PD
如果您希望尝试可视化编辑器而不需要编辑一个条目,这里有一个您可以自由测试它的页面。 您不需要一个账户即可在那个页面使用可视化编辑器。


開啟可視化編輯器

要使用可视化编辑器编辑一个页面,点击页面顶部的“Edit”标签即可。

这将需要花费数秒钟打开页面以进行编辑,并且如果页面很长加载也就很长。

点击“Edit source”标签将打开传统的wiki文本源代码编辑器。

VisualEditor - Edit tab-zh.png

另外也可以按一下每個章節的“edit”連結來開啟可視化編輯器。
VisualEditor - Section edit links.png


入门:可视化编辑器工具栏

可視化編輯器工具欄屏幕截圖
開始用可視化編輯器編輯時,工具欄會出現在熒幕上方。工具欄裡有一些熟悉的按鈕:

VisualEditor - Toolbar - Undo-redo.png
UndoRedo您所作出的更改。

VisualEditor Toolbar Headings-zh-hans.png
Headings pull-down menu: allows you to change how the paragraph is formatted. To change the style of a paragraph, put your caret in the paragraph and select an item in this menu (you don't have to highlight any text). Section titles are formatted "Heading", and subsections are "Heading 2", "Heading 3", and so on. 文本的默认样式为“Paragraph”。

VisualEditor Toolbar Formatting-zh-hans.png

格式化:点击“A”打开菜单。对于任何项目要产生影响,您必须首先选择(高亮)一些文本。

  • “Bold“(B)会将选中文本加粗。
  • “Italic”(I)会将选中文本改为斜体。
  • The "Superscript" item (x2) causes the selected text to appear smaller than surrounding text and to be slightly higher than the surrounding text.
  • The "Subscript" item (x2) causes the selected text to appear smaller than surrounding text and slightly lower than the surrounding text.
  • “Strikethrough”(S)按钮填充字体背景色来高亮重要部分。
  • The "Computer code" item (a set of curly brackets: {}) changes the font of the selected text to a monospaced font, which sets it apart from surrounding (proportionally spaced) text.
  • The "Underline" item (U) adds a solid line beneath the selected text.
  • The "Language" item (Aあ) allows you to label the language (for example, Japanese) and direction (for example, right-to-left) of the selected text.
  • The final item (VisualEditor MediaWiki theme clear icon bitmap.png), called "Clear styling", removes all character formatting from the selected text, including links

VisualEditor - Toolbar - Linking.png
连接工具:锁链图标是链接工具。点击它(通常在选择一些文本后)打开链接对话框

VisualEditor - Cite Pulldown.png
Cite menu: The "Cite" menu is used to add inline citations (also called "footnotes" or "references"). All projects have access to "Basic" reference formatting and the ability to "Re-use" citations, using this menu. This menu also gives you quick access to local citation templates, if these are enabled on your wiki.

(添加Cite菜单到特定维基的方法已在VisualEditor/Citation tool提供。)


VisualEditor Toolbar Lists and indentation-en.png
列表與縮排:頭兩個按鈕分別是用來製作 "Bullet list" 和 "Numbered list" 的。後兩個按鈕則是用來增加和減少縮排。

VisualEditor Insert Menu-zh-hans.png
Insert:可视化编辑器的“Insert”菜单会打开各种可选操作,包括添加引用、转置模板。“Insert”在不同项目中可能有差异,下面是所有可用选项的列表。
  • 通过“Media”按钮(山景图)打开媒体对话框
  • “Gallery”按钮(图片集)允许您在页面中插入图册。
  • “Template”图标(一个拼图标记)允许您编辑模板
  • The "Comment" item (a speech balloon) allows you to insert comments that are not visible to readers; these comments can be seen only when in edit mode.
  • The "Formula" icon (Σ) opens the formula inserter dialog.
  • The "References list" icon (three books) opens a dialog in which you can specify where will references be displayed to the reader. Usually this only needs to be done once on every page.
  • “Hieroglyphs”图标(假面符号——“☥”)允许您输入象形文字(见下方)。
  • “Special character”图标(Ω)允许您插入一些特殊符号(见略下方)。

VisualEditor Toolbar SpecialCharacters-zh-hans.png
插入特殊字符:“Special character”按钮允许您插入一定数量的特殊字符。目前包括拓展拉丁字母和数学符号。 (This list may be customized locally. See VisualEditor/Special characters for instructions.)

VisualEditor cancel save-en.png
The Page options menu is to the left of the Save page button. On this menu there are options to adjust page settings, such as whether the page is a redirect, or how it is indexed; to add, edit, or delete categories; and to see, using the "Language" item, the list of articles on the same subject that are in other languages. You can also switch (one-way only) from VisualEditor to the classic wikitext source editor without losing the editing work you've done.

保存更改

当您完成编辑后,点击工具栏中的绿色“Save page”按鈕。(如果您没有做出更改,这个绿色按钮将是灰色的——无法使用。) 要取消您所有的编辑更改,关闭您的浏览器窗口即可。
VisualEditor cancel save-en.png

按下綠色的“Save page”按鈕以打开一個小對話框,你可以在這裡添加一段精簡的編輯摘要、標示該次編輯為小修改、選擇將頁面加入您的Watchlist。摘要框等價於wiki文本編輯器的Summary (?):。

You can also review your changes using the "Review your changes" button to be sure they will work as intended before saving your changes. This is similar to the "Show changes" button in the wikitext editor. “Cancel”按鈕允許您返回編輯,因此您可容后儲存。

VisualEditor save dialog-zh-hans.png


编辑链接

VisualEditor - Toolbar - Linking.png
想添加連結的話,可以按一下工具欄裡的“Link”按鈕(鎖鏈),或者使用快捷鍵 Ctrl+K(Mac的話是 Command+K)。

If you select (highlight) text and then press the "Link" button, a link will be inserted using that text. For single-word links it's enough to just do it while the caret is on that word.


VisualEditor - Link editing inline 2.png
不管是用連結按鈕還是快捷鍵,都會出現對話框,您可以在這裡添上連結。

VisualEditor will try to help with internal links by looking for likely matches as you begin to type.


VisualEditor - Link editing inline box.png
輸入或選取了連結後,按一下 Enter、點擊對話框以外的地方或者按一下關閉圖標(Done)。該連結會出現在可視化編輯器的頁面上,不過要到您儲存頁面時才會一併儲存。

VisualEditor - External link.png
要連到維基百科外的網頁,作法是相同的。只要在框內輸入連結,即可添加「External link」。

没有标签的外部链接就像这样:[1]。 You can add these by placing your cursor away from any word (e.g., after a space). Open the link tool by clicking on the button or pressing the shortcut keys. Type the URL in the box, and click the "Done" button to insert the link.

VisualEditor - Link editing inline.png
要修改或移除现有的链接,点击文本当中的链接,然后按下在它附近出现的「Link」按钮。您也可以点击工具栏上同样的按钮或者按下键盘上的 Ctrl+K快捷键。

In the dialog, you can then change where the link goes. You can also remove the link altogether by pressing the "Remove" button in the lower left corner of the dialog. You can also open the link's target in another window by clicking on the "Open" button. (You might want do this to check if an external link is valid.)

編輯引用

编辑现有的参考资料


VisualEditor - Editing references 1.png
要编辑一个现有的参考资料,请在文本中点击它,您会看到“Basic”(书签)或模板图标。点击该图标会打开可编辑饮用的小型编辑工具。

VisualEditor - Editing references 6.png
如果出现的是“Basic”图标,点击它会打开小型的饮用编辑器,大部分时候您都可以编辑它的参考文本。

Many wikis use templates to format references. If a template is used in your reference, then all the text in the template will be highlighted when you click on the reference information.

If a template was used and you've clicked on information in that template, then the Template icon (puzzle piece) will appear. Click on that icon to edit the content of the template in the template mini-editor dialog.


VisualEditor - Editing References - Cite Web.png
如果点击引用后出现的是某个模板图标,则点击它会直接进入小型模板编辑器。

VisualEditor - Editing references 5.png
Inside the template mini-editor, you can add or remove types of information or change current content. Only fields (template parameters) that have content are supposed to be shown initially. To add fields, click on "Add more information" at the bottom of the mini-editor.

VisualEditor - Apply changes.png
完成后点击“Apply changes”即可。

重新使用现有的参考资料


VisualEditor Cite menu re-use.png
如果页面有包含其他参考,如果这个参考适合你所印证的文段,你可以重新选择其进行参考引用。

要重新一個已存在的参考,将光标放置在您想要添加引用的文本,然后单击“$insert”工具栏上的“$reference”图标。


VisualEditor - Editing references 18.png
In the Reference dialog, look at the list for the reference you want to reuse, and select it. If there are many references, you can use the search box (labeled "What do you want to reference?") to list only those references that include certain text.

添加新的参考资料


VisualEditor references more.png
To add a citation using the "Cite" menu, place your cursor where you want to add it in the text. Then select the appropriate citation type in the menu.

使用“基础”引用


VisualEditor - Editing references 20.png
在参考编辑器中,你能添加,修改或格式化你的引用。

You can make the reference belong to a given group, although normally this is left blank. (This option is used to display groups of references with the "References list" tool.)


VisualEditor Template Insert Menu-zh-hans.png
如果您要在新引用中使用模板,请点击引用编辑器“Insert”工具栏菜单中的 Template 图标(拼图)。

VisualEditor - Editing references 9.png
Then, look for the template you want to use, add it and edit it as you would any other template. (See the Editing templates section, below, if you need more information about templates.)

点击“Apply changes”返回参考编辑器,再“Apply changes”返回编辑页面。


VisualEditor Reference List Insert Menu-en.png
如果页面没有包含显示参考列表,你可以添加一个到你希望其显示的位置上。

Place the cursor where you want to display the references list (usually at the bottom of the page), open the "Insert" menu and click the "References list" icon (three books).


VisualEditor - Editing references 11.png
If you are using several groups of references, which is relatively rare, you can specify the group in this dialog. Only the references that belong to that group will be displayed here.

参考资料列表对话框中的最后一部就是点击“Insert”。

使用标准引用模板


VisualEditor - Editing References - Cite Pulldown.png
如果您的 wiki 支持引用菜单,则这样添加引用很方便。 (添加引用菜单到特定维基的方法已在VisualEditor/Citation tool提供。)

VisualEditor - Editing references - Cite book required fields.png
选择模板图标会进入可编辑所选模板的小型模板编辑器。在显示最常用模板时强烈推荐的模板会用星号标记出来,其中有些并非必须的。不会显示未使用的参数。

VisualEditor - Editing references - Add parameter.png
To add more parameters, scroll down in the template mini-editor and click on the "Add more information" option.

Click on "Insert" when you're done.

Editing images and other media files

编辑图片

要添加新的圖像(或其它媒體文件)至頁面中,單擊“Insert”工具欄中的「Media」圖標。圖像将添加到光标所在位置。
VisualEditor Media Insert Menu-zh-hans.png

點擊“Media”圖標,打開一個對話框,可自動搜索維基共享資源與你正在編輯的頁面有關的媒體文件。

你可以查看其他媒體文件,通過更改對話框裏的搜索框的文本。

點擊縮圖以選擇檔案。 This places the image onto the page you are editing.

VisualEditor - Media editing 2.png

After the image you selected is inserted into the page, another dialog will open. This dialog allows you to add and edit the caption of the image. The caption can contain formatting and links.
VisualEditor - Media editing 6.png

您还可以在媒体对话框中添加替换文本标题,这样可以帮助使用屏幕阅读器或禁用图像显示的用户。
Media editing 7.png

You can also set various parameters for the image in the "Advanced settings" window. These include the alignment, the type, and size of the image.
VisualEditor - Media editing 8.png

當你完成後,點擊“Apply changes”關閉對話框並返回到頁面編輯器。
VisualEditor - Apply changes.png

For an existing image, you can add or edit a caption or other settings by clicking on the image, then clicking on the "Media" icon that appears below the picture.

You can resize an existing image by clicking on it, then moving the resize icon (the two-headed arrow on the bottom left).

You can also drag and drop an image to a place higher or lower on the page.

VisualEditor - Media editing 3.png


编辑媒体集


To edit an existing gallery in VisualEditor, click that gallery. Then, near the bottom of the gallery, click the gallery icon (a set of photos). This brings up the gallery editor, with the full list of images included in the gallery.
VisualEditor - Gallery2.png
The gallery editor is currently a simple box that allows you to edit existing galleries using wikitext markup. To add a new image to an existing gallery, type the file name, followed by a bar (|) and the caption for that image. You must put each image in the gallery on its own line. You can also edit this list to remove or rearrange images or to change captions.

When you click the "Done" button, you will exit the gallery editor. You should then see your changes, with the gallery as it will now appear to readers.

Remember that exiting the gallery editor does not save your changes. As with other changes made using VisualEditor, you must save the entire page in order to save your work.

VisualEditor - Gallery3.png

Editing templates

To add a new template to the page, place your cursor where you want the template to be inserted, and click on the "Template" icon (puzzle piece) in the "Insert" menu.
VisualEditor Template Insert Menu-zh-hans.png

Type the name of the template you want to insert. When you see it on the list, click on its name. Then click "Add template".
VisualEditor - Template editing 4.png

You can also edit templates that are already on the page by selecting them (they turn blue), and clicking on the "Template" icon (puzzle piece) that appears.
VisualEditor - Template editing 1.png

Adding a new template or opening an existing one opens the "Transclusion" dialog. If the template has have been updated to contain TemplateData information, then the dialog will show a list of individual parameters; otherwise, a link to the documentation will be available in the dialog.
VisualEditor - Template editing 2.png

For an existing template, you edit the parameters already listed, and you can add additional parameters by clicking "Add more information", at the very bottom of the dialog.
VisualEditor - Template editing 3.png

如果某个模板内嵌于其他模板中,则该子模板会显示在它们的参数中,通过参数字段可编辑或移除子模板。

要添加新的子模板请参照添加参数的步骤,您可能需要查阅该模板的文档以确保它支持作为子模板。

VisualEditor - Template editing 5.png

当您完成时,点击“Apply changes”以关闭对话框并返回到页面编辑器。
VisualEditor - Apply changes.png

替换模板


当该模板需要 替换来使用时,在模板名之前添加subst:(留意需要加上半角冒号)。

添加subst:后,模板名自动匹配查找会失效。请在完成自动匹配查找到模板名后再添加 subst:

接着,点击“Add template”按钮。

VisualEditor - Template editing 7.png

像往常一样,添加参数,点击“Apply changes”。
VisualEditor - Template editing 6.png

当您点击“Apply changes”后您就可以看见被展开的模板。之后保存页面即可。
VisualEditor - Template editing 8.png

编辑表格

VisualEditor-logo.svg
You can use VisualEditor to insert and change tables. This is a new feature, and the details will be changing rapidly.

VisualEditor table editing add and remove columns.png
您可以加入和移除行和列。

VisualEditor-logo.svg
Double-click inside a cell to add or change the contents.

编辑分类

VisualEditor Categories.png
To edit categories, on the "Page options" menu, click the "Categories" button.

VisualEditor - Category editing 1.png
The "Categories" button opens a dialog that lists existing categories and allows you to add new ones.

You have the option of setting or changing the general (default) sorting key, which used to determine where the page appears when listed with other pages in the same category.

For example, the default sorting key for the article "George Washington" is "Washington, George", and so in the category "Presidents of the United States", the article is listed under the letter "W", not the letter "G".


VisualEditor - Category editing 3.png
To add a category for a page, type the name of the category into the field "Add a category". As you type, VisualEditor will search for possible matching, existing categories. You can either select an existing category, or you can add a category that doesn't yet have its own category page. (Until that category page is created, your new category will show as a red link after you save all your editing changes.)

VisualEditor - Category editing 2.png
To remove an existing category, click on it and click on the "Remove" icon (trash can) in the dialog that opens.

Clicking on a category also allows you to specify a sorting key for that specific category. Such a sorting key overrides the default sorting key.


VisualEditor - Apply changes.png
当点击“Apply changes”就完成分类修改并返回到页面编辑器上。


Editing page settings

VisualEditor - Page Settings menu.png
To edit a page's settings, click to open the "Page options" menu, in the toolbar, and select the "Page settings" button.

VisualEditor Page Settings-zh-hans.png
The "Page settings" button opens a dialog that shows several options.

VisualEditor Page Settings Redirects-zh-hans.png
You can make a page a redirect to another page by checking the "Redirect this page to" checkbox, and then typing the name of the page to which you want to send the reader who tries to go to the page that you're editing.

At the bottom is the option to prevent page renames from updating this redirect. This is very rarely used.


File:VisualEditor Page Settings TOC-zh-hans.png 通过选择三个之中的某个按钮,您可以设置一个页面是否显示目录。默认选项是“If needed”,表示有三个或更多标题时则显示目录。

VisualEditor - Page Settings Edit Links.png
选中该复选框,则页面不会在每个段落标题后显示编辑链接。

VisualEditor Apply Changes-zh-hans.png
當你編輯完Page options時,請點「Apply changes」回到頁面編輯器。


Editing mathematical formulae

要添加新的数学公式, 请将光标放在要插入的目标位置,在工具栏的“Insert”下拉菜单中点击“Formula”图标 ("Σ")。
VisualEditor Formula Insert Menu-zh-hans.png

A window will open in which you can type the formula, using LaTeX syntax. VisualEditor will update the formula as you type it, so you can see how it will look as you make changes. Once you are happy with the formula, click the "Done" button.
VisualEditor formula-zh-hans.png

To edit an existing mathematical formula on the page, click on it and then click on the "Σ" icon that appears. This will open up the formula window, where you make changes.
VisualEditor - editing existing mathematical formula.png


Editing poems and other special items

Some items, such as poems and musical scores, are not yet supported by VisualEditor. Until they are, you will need to edit the source wikitext directly if you want to add these or change these.


鍵盤快捷鍵

Many editors are used to entering wikitext directly, especially bold, italics and wikilinks. Keyboard shortcuts allow to quickly insert similar formatting without having to use toolbar items. Here are the common general shortcuts in VisualEditor:

PC快捷鍵 動作 Mac快捷鍵

 Ctrl+B 粗體  Cmd+B

 Ctrl+I 斜體  Cmd+I

 Ctrl+K 添加鏈結  Cmd+K

 Ctrl+X 剪取  Cmd+X

 Ctrl+C 拷貝  Cmd+C

 Ctrl+V 貼上  Cmd+V

 Ctrl+Z 撤銷  Cmd+Z