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

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Help:VisualEditor/User guide and the translation is 68% 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]

To edit a page using VisualEditor, click on the "编辑" tab at the top of the page.

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

Clicking on the "编辑源代码" tab will open the classic wikitext source editor.

VisualEditor - Edit tab-zh.png

You can also open VisualEditor by clicking on the "编辑" link on each section.
VisualEditor - Section edit links.png

入门:可视化编辑器工具栏[edit | edit source]

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

VisualEditor - Toolbar - Undo-redo.png
撤销 and 重做 the changes you have made.

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 "标题", and subsections are "标题2", "标题3", and so on. The normal format for text is "段落".

VisualEditor Toolbar Formatting-zh-hans.png

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

  • The "粗体" item (B) bolds the selected text.
  • The "斜体" item (I) italicizes the selected text.
  • The "上标" item (x2) causes the selected text to appear smaller than surrounding text and to be slightly higher than the surrounding text.
  • The "下标" item (x2) causes the selected text to appear smaller than surrounding text and slightly lower than the surrounding text.
  • The "删除线" item (S) adds a solid bar through the selected text.
  • The "计算机代码" 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 "下划线" item (U) adds a solid line beneath the selected text.
  • The "语言" 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 "清除样式", removes all character formatting from the selected text, including links

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

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

(Instructions for adding local citation templates to the 引用 menu at a specific wiki are available at VisualEditor/Citation tool.)


VisualEditor Toolbar Lists and indentation-en.png
Lists & indentation: The first two items allow you to format text as either a "无序列表" or a "有序列表". The last two items allow you to decrease or increase the indentation level of list items.

VisualEditor Insert Menu-zh-hans.png
插入: The "插入" menu may be different on some projects. Below is a list of all options that may appear.
  • The "媒体文件" icon (a picture of mountains) opens the media dialog.
  • The "图库" icon (a set of photos) allows you to insert a gallery to the page.
  • The "模板" icon (a puzzle piece) allows you to edit templates.
  • The "注释" 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 "公式" icon (Σ) opens the formula inserter dialog.
  • The "参考资料列表" 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.
  • The "象形文字" icon (an ankh symbol - ☥) allows you to enter the hieroglyphics inserter. (See below.)
  • The "特殊字符" icon (Ω) allows you to insert some special characters. (See immediately below.)

VisualEditor Toolbar SpecialCharacters-zh-hans.png
Special character insertion: The "特殊字符" icon on the "插入" menu, when clicked, displays a dialog showing many special characters. By clicking on a specific character, you place it into the text. These special characters include some standard symbols, accents, and mathematical symbols. (This list may be customized locally. See VisualEditor/Special characters for instructions.)

VisualEditor cancel save-en.png
The 页面选项 menu is to the left of the 保存页面 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 "语言" 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.

保存更改[edit | edit source]

When you're done editing, click the green "保存页面" button in the toolbar. (If you have made no changes, the green button will be greyed out - not usable.) 要取消您所有的编辑更改,关闭您的浏览器窗口即可。
VisualEditor cancel save-en.png

Pressing the green "保存页面" button opens a dialog. You can then enter a brief summary of your actions, mark your edit as minor, and add the page to your 监视列表. The box for the summary is the equivalent of the 摘要: field in the wikitext editor.

You can also review your changes using the "检查您的更改" button to be sure they will work as intended before saving your changes. This is similar to the "显示更改" button in the wikitext editor.

The "取消" button returns you to the page you were editing. You can save all of your changes later.

VisualEditor save dialog-zh-hans.png

编辑链接[edit | edit source]

VisualEditor - Toolbar - Linking.png
Links can be added through the "链接" icon (links in a chain) in the toolbar, or by using the shortcut  Ctrl+K (or  Command+K on a Mac).

If you select (highlight) text and then press the "链接" 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
Once you have entered or selected the link, you complete the linking process by pressing  Enter, pressing the "完成" button, or just clicking outside of the box. Your link will immediately appear on the VisualEditor page, but it will not be saved until you save the entire page.

VisualEditor - External link.png
To link to a web page on another website, the process is the similar: you enter a URL in the box, and it will be added as an "外部链接".

没有标签的外部链接就像这样:[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 "完成" button to insert the link.

VisualEditor - Link editing inline.png
To change or remove an existing link, click within the text for that link, then press the "链接" icon that appears near it. The dialog will appear, for editing. (You can also get to the dialog with the  Ctrl+K keyboard shortcut.)

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

編輯引用[edit | edit source]

编辑现有的参考资料[edit | edit source]


VisualEditor - Editing references 1.png
To edit an existing reference, click on it where it appears in the text (usually as a bracketed number). You will see either a "基本" icon (bookmark) or an icon (and name) for the template that was used to create this reference. Clicking on this icon will open a dialog where you can edit the reference.

VisualEditor - Editing references 6.png
If what appears is the "基本" icon, clicking on it opens the Reference dialog, where you can edit the reference's contents.

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 模板 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 "添加更多信息" at the bottom of the mini-editor.

VisualEditor - Apply changes.png
Click on "应用更改" when you're done.

重新使用现有的参考资料[edit | edit source]


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

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


VisualEditor - Editing references 18.png
In the 参考资料 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 "您想要引用什么内容?") to list only those references that include certain text.

添加新的参考资料[edit | edit source]


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

使用“基础”引用[edit | edit source]


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 "参考资料列表" tool.)


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

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.)

After you're done editing your new template, click on "应用更改" to return to the Reference editor, and "应用更改" again to return to the page you're editing.


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 "插入" menu and click the "参考资料列表" 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.

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

使用标准引用模板[edit | edit source]


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 "添加更多信息" option.

Click on "插入" when you're done.

Editing images and other media files[edit | edit source]

编辑图片[edit | edit source]

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

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

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

點擊縮圖以選擇檔案。

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 "高级设置" window. These include the alignment, the type, and size of the image.
VisualEditor - Media editing 8.png

當你完成後,點擊“应用更改”關閉對話框並返回到頁面編輯器。
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 "媒体文件" 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

编辑媒体集[edit | edit source]


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 "完成" 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[edit | edit source]

To add a new template to the page, place your cursor where you want the template to be inserted, and click on the "模板" icon (puzzle piece) in the "插入" 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 "添加模板".
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 "模板" icon (puzzle piece) that appears.
VisualEditor - Template editing 1.png

Adding a new template or opening an existing one opens the "嵌入" 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 "添加更多信息", at the very bottom of the dialog.
VisualEditor - Template editing 3.png

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

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

VisualEditor - Template editing 5.png

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

替换模板[edit | edit source]


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

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

Then, click the green "添加模板" button.

VisualEditor - Template editing 7.png

Add any parameters as usual and "应用更改".
VisualEditor - Template editing 6.png

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

编辑表格[edit | edit source]

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.

编辑分类[edit | edit source]

VisualEditor Categories.png
To edit categories, on the "页面选项" menu, click the "分类" button.

VisualEditor - Category editing 1.png
The "分类" 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 "添加分类". 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 "移除" 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
Click "应用更改" when you're done editing categories to return to the page editor.

Editing page settings[edit | edit source]

VisualEditor - Page Settings menu.png
To edit a page's settings, click to open the "页面选项" menu, in the toolbar, and select the "页面设置" button.

VisualEditor Page Settings-zh-hans.png
The "页面设置" 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 "重定向该页面至" 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 通过选择三个之中的某个按钮,您可以设置一个页面是否显示目录。默认选项是“需要时”,表示有三个或更多标题时则显示目录。

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

VisualEditor Apply Changes-zh-hans.png
Click "应用更改" when you're done editing the 页面选项 to return to the page editor.

Editing mathematical formulae[edit | edit source]

要添加新的数学公式, 请将光标放在要插入的目标位置,在工具栏的“插入”下拉菜单中点击“公式”图标 ("Σ")。
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 "完成" 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[edit | edit source]

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.

鍵盤快捷鍵[edit | edit source]

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