Help:Edit summary/zh
![]() |
注意:當您編輯本頁面時,即同意以CC0協議授權您的貢獻。您可以在公有領域找到更多。 | ![]() |
编辑摘要是当你更改页面时留下的一条简短的信息。 常用的编辑摘要包括例如“修正笔误”或“添加一个新的章节”。 填写编辑摘要可以帮助其他用户了解你的编辑而不必查看详细内容。 将所有内容保留在同一页面中是可选的,但这很有用。 若发现侵权行为,这也可以在重要的修订版本删除后提供授权信息。[1]
当我提交空白编辑摘要(或默认撤销摘要)时提醒我
(under 编辑
section) can be useful to ensure you don't forget to leave one.
页面布局

用于输入编辑摘要的页面布局通常包括以下元素:
摘要:
输入区 - 一个文本框,可用于输入对你的编辑的简短描述。 This field is essential for providing context in the page history.这是小编辑
复选框 - 位于编辑摘要框附近,允许您将编辑标记为小编辑,表示更改较小或不重要。监视该页面
复选框 - 另一个复选框,该选项可将页面添加到你的监视列表 ,允许您接收此页面后续编辑的通知。 可使用名为监视期限:
的下拉菜单来设置您希望监视页面的时长。 这比较重要,因为其他用户可能会在你发布更改之后对你的编辑进行评论。发布更改
按钮 - 位于编辑摘要框下方,该按钮可完成这次编辑。 用户应当在点击该按钮前确认填写的摘要能准确的反映这次更改的内容。显示预览
按钮 - 显示渲染的页面内容预览和渲染的编辑摘要预览。 编辑摘要的预览会显示在摘要输入框的下方。显示更改
按钮 - 不影响编辑摘要。 显示现有页面内容与即将应用的新更改之间的差异。
主要功能
编辑摘要输入框中最多能输入500个字符。 若尝试输入更多内容,只有前500个字符的内容会被保存。
一个提示是,如果你在摘要中写错了,你可以进行一次空编辑 (如添加一个空格)来追加修改。
使用链接
What works:
- Internal and interwiki links work, including links with alternate text.
- Section links can be added using
/* Section Name */
, which will show a clickable arrow pointing to that section when you click on显示预览
.
What doesn't work:
- Most wikitext (like templates, variables, and bold/italic text) won't work.
- HTML tags and external links are not supported.
- Special characters in URLs may break links if they are not handled correctly.
- The 链入页面 feature won't find the link referenced in the edit summary.
Special cases and workarounds
Handling section links:
- When editing a section, the section title is automatically added to the summary. You can edit or remove this if needed.
- If the section title changes later, the link in the summary won't update automatically.
Working around URL issues:
- If a link doesn't work due to special characters, you might need to edit the URL manually. For example, if a URL has
%28
in it which represents a special character(
, you can replace it with the actual character.
Flexibility and future-proofing
- To prevent broken links in summaries, consider linking to a page or section with a stable name.
- If you expect a section to be moved or renamed, you can create a redirect page that will stay accurate even after changes and then include a redirect on the edit summary.
讨论工具
feature
- On Talk pages, clicking the
+
sign allows you to add a new section. The主题
box becomes both the section title and the edit summary. - The text you type in the main editing box will appear under the new heading.
自动摘要
当您保存编辑且没有提供摘要时,有时系统会为您生成自动摘要。 不像编辑单个章节时出现的摘要(你可以自行更改),这些自动摘要完全由系统生成且不可更改。
Situation | 页面 | 自动摘要文本 |
---|---|---|
对页面的大规模更改 | ||
移除页面中的全部内容 | MediaWiki:Autosumm-blank | 清空全部内容 |
移除页面的大部分文字或编辑一个很短的页面 ( $1 会被替换为页面源代码) |
MediaWiki:Autosumm-replace | 页面内容被替换为“$1” |
页面创建 | ||
创建一个新页面 ($1 会被替换为页面源代码) |
MediaWiki:Autosumm-new | 创建页面,内容为“$1” |
创建一个没有内容的新页面 | MediaWiki:Autosumm-newblank | 创建空白页面 |
对重定向的更改 | ||
创建或替换现有页面为重定向 ( $1 会被替换为重定向的目标页面名) |
MediaWiki:Autoredircomment | 重定向页面至$1 |
更改重定向的目标 ( $1 会被替换为先前的重定向目标;$2 会被替换为新的重定向目标) |
MediaWiki:Autosumm-changed-redirect-target | 已将重定向目标从$1更改为$2 |
移除重定向 ( $1 会被替换为重定向的目标) |
MediaWiki:Autosumm-removed-redirect | 已移除至$1的重定向 |
虽然自动摘要(如重定向过程中创建的自动摘要)通常可以提供足够的信息,但它们不能替代正确的编辑摘要。 Always add a clear and concise summary to give context to your edits. This practice is particularly helpful for:
- New users - It assists inexperienced users who may not realize the importance of edit summaries.
- Vandalism detection - It helps others quickly identify and address potential vandalism.
There is R&D into automatic generation of edit summaries.[2]
Multilingual edit summaries
Some features, particularly those related to Wikidata, use multilingual automatic summaries through MediaWiki's autocomment functionality.
These summaries appear in the viewer's language, adapting to their settings.
In tools that show the raw edit summary, these may appear as a code or key, such as /* wbsetsitelink-add:1
, which is used to manage internationalization (i18n).
何处能找到编辑摘要
The edit summary appears in various places across the platform in black italics. Here's where you can find it:
Permanent locations:
- Page history - Shows a list of all edits made to a specific page, including the size of the wikitext (in bytes).
- User contributions - Displays a list of edits made by a specific user.
- Diff page - Highlights the differences between two edits.
Temporary locations:
- Watchlist - Lists recent changes to watched pages (for logged-in users). It also shows the change in the wikitext's size (in bytes). If you use the enhanced watchlist, you can see all recent changes to your watched pages, not just the most recent one for each page.
- Recent changes / Enhanced recent changes - Lists all recent edits and shows the change in the wikitext's size (in bytes).
- Related changes - Displays recent changes to pages linked to a specified page, including the change in wikitext size (in bytes).
- List of new pages - Shows the edit summary for newly created pages and the current size of the wikitext (in bytes).
Additionally, the edit summary is included in the email notifications you receive if you've enabled email alerts for edits.
文件上传摘要
When you upload an image, you can include an upload summary. This summary has several important functions:
- Automatic edit summary - It becomes the second part of the automatically generated edit summary in the upload log (the first part is the file name).
- Image history - It appears as text in the image's history entry.
- New file names
- Image page creation - It serves as the edit summary for creating the image page if the file name is new.
- Image page content - It is used as wikitext for the editable section of the image page. Here, you can:
- Briefly describe the image
- Include internal or external links
- Use templates
- Specify one or more categories for the image
字符限制
The upload summary can be over 600 characters long.
Note that in the upload log, the last part of the summary may be cut off if it exceeds 600 characters (including uploaded "filename"
).
Searching
MediaWiki's built-in search function doesn't include edit summaries, and these summaries aren't indexed by external search engines.
There is an unofficial external tool for filtering by edit summaries in Wikimedia projects at Wikimedia Labs: edit summary search.
Also, hashtags (like #tag) can be searched at https://hashtags.wmflabs.org.
A third way to search them is using Quarry and the comment_text
field.
(Example query that shows a user's created categories on Commons)
Recommendations for edit summaries
- Always include a summary - It's crucial to fill in the summary field for every edit you make. Even a brief summary is better than leaving it blank. If you remove text, a summary is especially important to clarify your reasons and prevent misunderstandings. If you're making multiple changes, mention them all, or use "and misc." to cover additional changes.
- Purpose of accurate summaries - Summaries help others quickly understand the nature of your changes and decide if they want to review them. This is particularly useful for contributors with relevant expertise who might be drawn to detailed summaries. For minor edits, a brief note like "fixed spelling" is still valuable.
- Explain your changes - Along with summarizing the changes, include an explanation if necessary. This is especially important if your edit involves deletions or significant modifications. For detailed explanations, use the Talk page and note "see Talk" in the summary.
- Edit summary limitations - Once you save the page, you cannot edit the summary. Ensure it's accurate and free of spelling errors before saving.
- Correcting summary errors - If you spot a mistake or omission in your summary after saving, make a dummy edit to the page to correct it, updating the summary field with the needed information.
Action summary
When you perform protection or move actions on a page, these actions are recorded in the page history. Here's what you need to know:
- History entry size - Each entry is capped at 500 characters. This includes both the action description and any comments you provide.
- Action Descriptions
- The system automatically generates descriptions like "moved XX to YY" based on the current site language.
- Changing your user interface language will not alter these descriptions.
- User comments
- If your comments are too long, the system may shorten them in the page history.
- The full, uncut version of your comments can be found in the protection/move logs, separate from the 500-character limit in the history.
参见