Help:VisualEditor/User guide/Citation templates/zh

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

Other languages:
Cymraeg • ‎English • ‎Tiếng Việt • ‎català • ‎dansk • ‎polski • ‎português do Brasil • ‎română • ‎български • ‎中文 • ‎日本語
PD 注意:当您编辑本页面时,即代表同意以CC0协议授权您的贡献。您可以在公有领域帮助页面找到更多信息。
PD

This page is a guide to adding footnotes (also called "citations", "inline citations" or "references") when local citation templates have been configured for your wiki, but the citoid service has not been set up for your wiki.

The toolbar

Screenshot of the VisualEditor toolbar
The VisualEditor toolbar appears at the top of the screen when you begin editing.
VisualEditor - Cite Pulldown.png
引用 menu: The "引用" menu or button is used to add footnotes. All projects have access to "基本" reference formatting and the ability to "复用" citations here. This menu also gives you quick access to local citation templates.

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

VisualEditor Insert Menu-zh.png
插入: The "插入" menu may be different on some projects. Two options are useful for citations:
  • The "模板" icon (a puzzle piece) allows you to insert and edit templates. You can use this to create a citation, using a standard template, when you want a citation that is not going to be a footnote.
  • The "参考文献列表" icon (three books) is to specify where the reader will see the list of footnotes for the page. Usually this only needs to be done once on every page. (If the page already shows footnotes, then you don't want to click on this icon.) You can also set references group to display using dialog window.

编辑现有的脚注

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

VisualEditor - Editing references 6.png
If you are editing a "基本" footnote, clicking on "Edit" will open the Reference dialog, where you can edit the text which is in the footnote. Editing this text is similar to editing in the main window - you can format text, add a link, or use special characters.

Unless you are sure you know what you are doing, do not use the Cite or Insert menus within the Reference dialog.


VisualEditor - Editing References - Cite Web.png
!!FUZZY!!如果,instead of the "基本" icon (bookmark), what appears when you click on a footnote is an icon for a standard template for citations, then clicking on "Edit" will take you directly to the template mini-editor dialog.

VisualEditor - Editing references 5.png
In the template mini-editor, only fields (template parameters) that have content will be shown initially. You can change the content of these fields, and you can delete these fields if you want.

To add fields, click on "添加更多信息" at the bottom of the mini-editor.


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

Re-using an existing footnote

VisualEditor Cite menu re-use.png
Ideally, every sentence or paragraph in an article should be supported by a citation, in a footnote. If you have some text that needs a citation (source) to support it, and the page already has a footnote that applies to (supports) that text, then you can re-use the existing citation, because one footnote can support multiple, different sentences or paragraphs.

To re-use an existing reference, place your cursor in the body of the text where you want to add a footnote. Then from the "引用" menu, click on the "复用" item.


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 find only those references that include certain text.

Adding a new footnote

Using a standard citation template for a new footnote

VisualEditor - Editing References - Cite Pulldown.png
The "引用" menu is used to add a new footnote. First, place your cursor where you want to add a footnote, in the text. Then, from this menu, select a standard citation type in the menu. If the citation type you want is not on the menu, select the "基本" item. (Instructions for adding more citation templates to this menu, on your local wiki, are available at VisualEditor/Citation tool.)

VisualEditor - Editing references - Cite book required fields.png
Clicking on a standard cite template icon such as "Book" will take you into the template mini-editor for that template. While the most common fields (template parameters) will be shown, not all of them are required. Important fields may be marked with an asterisk.

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.

Using the "Basic" citation for a new footnote

VisualEditor references more.png
You can also choose the "基本" item from the "引用" menu.

The "基本" item is used for two purposes. You can create a footnote that doesn't use any citation template. Or you can create a footnote using a citation template that is not on the "引用" menu.


VisualEditor - Editing references 20.png
Shown here is an example of selecting the "基本" item, and then, in the Reference editor, adding text, including formatting, but not using a citation template.

You can make the new footnote belong to a group other than general references, although this is normally not done. (If you do have two or more groups of footnotes, the "参考文献列表" tool must specify the group of footnotes to be displayed).


VisualEditor Basic citation Insert menu with citation templates-en.png
In the Reference dialog, you can get to a citation template that is not (yet) on the "引用" menu. From the "插入" toolbar menu, click on the 模板 icon (puzzle piece).

VisualEditor - Editing references 9.png
Then, type the name (or part of the name) of the citation template you want to use, select it, click on "Add template", 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 the template, click on "插入" to return to the Reference editor, and "插入" again to return to the page you're editing.

Adding a citation outside of a footnote

How to create a ==Further reading== list using Insert > Template > Cite book (etc.)

VisualEditor Template Insert Menu-zh.png
You can add citation templates directly into the article, without putting them in footnotes or by using Basic references editor. From the Insert menu, click on the "模板" icon (a puzzle piece)

VisualEditor - Editing references 9.png
Then, type the name (or part of the name) of the citation template you want to use, select it, click on "Add template", and edit it as you would any other template. (See the Editing templates section in the user guide if you need more information about templates.)

After you're done editing the template, click on "插入" to return to the Reference editor, and "插入" again to return to the page you're editing.