Help:Edit summary: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Tag: 2017 source edit
 
(25 intermediate revisions by 9 users not shown)
Line 3: Line 3:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
When [[<tvar|1>Special:MyLanguage/Help:editing</>|editing]] a page, a small "Summary" field under the main edit-box looks like this:
When [[<tvar name="1">Special:MyLanguage/Help:editing</tvar>|editing]] a page, a small "Summary" field under the main edit-box looks like this:
[[File:Edit_Summary-3.png|center|750px|Edit summary text box]]
[[File:Edit summary OOUI.png|center|750px|Edit summary text box]]


<!--T:2-->
<!--T:2-->
It's good practice to fill in the Edit Summary field, or add to it in the case of [[<tvar|1>#Section editing</>|section editing]], as it helps everyone to understand what is changed, such as when perusing the history of the page. It's a good idea to set your user preferences (under Editing) to "Prompt me when entering a blank edit summary". (If you really want to keep it empty, you can just confirm the message or enter a blank space to avoid the message.)
It's good practice to fill in the Edit Summary field, or add to it in the case of [[<tvar name="1">#Section editing</tvar>|section editing]], as it helps everyone to understand what is changed, such as when perusing the history of the page, without having to look at individual revisions. Additionally, it retains authorship information after a huge revision deletion in case of discovered copyright violation.<ref>Example: [<tvar name="2">https://en.wikipedia.org/w/index.php?title=IOS_version_history&action=history&offset=20200723132316&limit=62</tvar> Content of over a week worth of sixty revisions deleted due to discovered copyright violation on "iOS version history", but with mostly good use of edit summary.]</ref> It's a good idea to set your user preferences (under Editing) to "[[<tvar name="3">Special:Preferences#mw-input-wpforceeditsummary</tvar>|Prompt me when entering a blank edit summary]]". (If you really want to keep it empty, you can just confirm the message or enter a blank space to avoid the message.)


<!--T:3-->
<!--T:3-->
In the case of applying [[<tvar|1>Special:MyLanguage/help:substitution</>|substitution]], providing the line of wikitext containing "<tvar|2>subst:</>" in the edit summary is especially useful, because otherwise substitution does not show up as such in the page history.
In the case of applying [[<tvar name="1">Special:MyLanguage/help:substitution</tvar>|substitution]], providing the line of wikitext containing "<tvar name="2">subst:</tvar>" in the edit summary is especially useful, because otherwise substitution does not show up as such in the page history.


==Properties== <!--T:4-->
==Properties== <!--T:4-->
Line 18: Line 18:


<!--T:6-->
<!--T:6-->
In edit summaries, internal and [[<tvar|1>Special:MyLanguage/Help:Interwiki linking</>|interwiki]] links work with some limitations, see below.
In edit summaries, internal and [[<tvar name="1">Special:MyLanguage/Help:Interwiki linking</tvar>|interwiki]] links work with some limitations, see below.


<!--T:7-->
<!--T:7-->
Line 29: Line 29:
*HTML tags do not work.
*HTML tags do not work.
*Italics, bold, etc, do not work (edit summaries are rendered in italics by default).
*Italics, bold, etc, do not work (edit summaries are rendered in italics by default).
*<tvar|1><code><nowiki><nowiki></nowiki></code></> tags do not work; thus e.g. <tvar|2><nowiki>[[a]]</nowiki></> cannot be displayed (it will be rendered as <tvar|3>&lt;nowiki>[[a]]&lt;/nowiki></>). One could use <tvar|4>[[a]]</> (with a zero-width space between the brackets on the left) or <tvar|5>[ [a] ]</> instead.
*<tvar name="1"><code><nowiki><nowiki></nowiki></code></tvar> tags do not work; thus e.g. <tvar name="2"><nowiki>[[a]]</nowiki></tvar> cannot be displayed (it will be rendered as <tvar name="3">&lt;nowiki>[[a]]&lt;/nowiki></tvar>). One could use <tvar name="4">[[a]]</tvar> (with a zero-width space between the brackets on the left) or <tvar name="5">[ [a] ]</tvar> instead.


<!--T:9-->
<!--T:9-->
When pressing [[<tvar|1>Special:MyLanguage/Help:preview</>|preview]], a preview of the edit summary is displayed, along with a preview of the edited page. While the summary may be too long to be seen in the input box without scrolling, it will be displayed in its entirety on the history page.
When pressing [[<tvar name="1">Special:MyLanguage/Help:preview</tvar>|preview]], a preview of the edit summary is displayed, along with a preview of the edited page. While the summary may be too long to be seen in the input box without scrolling, it will be displayed in its entirety on the history page.

<!--T:106-->
Pressing Enter in the edit summary box has the same effect as pressing "Publish changes". Be careful not to do this by accident while typing the edit summary, because the unfinished edit summary may not make sense and cannot be changed. A subsequent dummy edit such as adding an extra space somewhere which does not change the rendered page, gives the opportunity to supply a correct edit summary for the previous edit.


=== Linking to a section === <!--T:10-->
=== Linking to a section === <!--T:10-->


<!--T:11-->
<!--T:11-->
An anchor name enclosed between <tvar|1>/*</> and <tvar|2>*/</> produces a right arrow linking to a specified anchor on the page, followed by the anchor name with CSS-class "<tvar|3>autocomment</>": <span class="<tvar|3>autocomment</>">[[#Anchor name|→]] Anchor text</span>. It is similar to the wikitext "<nowiki><span class="<tvar|3>autocomment</>">[[#Anchor name|→]] Anchor text</span>"</nowiki>".
An anchor name enclosed between <tvar name="1">/*</tvar> and <tvar name="2">*/</tvar> produces a right arrow linking to a specified anchor on the page, followed by the anchor name with CSS class "<tvar name="3">autocomment</tvar>": <span class="<tvar name="3">autocomment</tvar>">[[#Anchor name|→]] Anchor text</span>. It is similar to the wikitext "<nowiki><span class="<tvar name="3">autocomment</tvar>">[[#Anchor name|→]] Anchor text</span>"</nowiki>".


<!--T:12-->
<!--T:12-->
Separators are automatically provided when needed (i.e. between <tvar|1>/* */</> syntax and text in either order). For example, the edit summary:
Separators are automatically provided when needed (i.e. between <tvar name="1">/* */</tvar> syntax and text in either order). For example, the edit summary:
</translate>
<tvar|1> /* Foo */ test /* Bar */ test</>


<kbd lang="en" dir="ltr">/* Foo */ test /* Bar */ test</kbd>

<translate>
<!--T:13-->
<!--T:13-->
is rendered as:
is rendered as:
</translate>


<span lang="en" dir="ltr"><span class="comment"><span class="autocomment">[[#Foo|&rarr;Foo]]: </span> test <span class="autocomment">[[#Bar|&rarr;Bar]]: </span> test</span></span>
<!--T:14-->
<tvar|1><span class="comment"><span class="autocomment">[[#Foo|&rarr;]]Foo - </span> test <span class="autocomment">- [[#Bar|&rarr;]]Bar -</span> test</span></>


<translate>
<!--T:15-->
<!--T:15-->
For more flexibility these special anchor links can be replaced by ordinary links to pages redirecting to the desired anchors; see also below.
For more flexibility these special anchor links can be replaced by ordinary links to pages redirecting to the desired anchors; see also below.


</translate>
<span id="Section editing"></span>
<translate>
=== Section editing === <!--T:16-->
=== Section editing === <!--T:16-->


<!--T:17-->
<!--T:17-->
When [[<tvar|1>Special:MyLanguage/Help:Section#Section editing</>|editing an existing section]], the section title is inserted at the beginning of the edit summary, enclosed with /* and */ marks, for example /* External links */.
When [[<tvar name="1">Special:MyLanguage/Help:Section#Section editing</tvar>|editing an existing section]], the section title is inserted at the beginning of the edit summary, enclosed with /* and */ marks, for example /* External links */.


<!--T:18-->
<!--T:18-->
Line 72: Line 76:


<!--T:22-->
<!--T:22-->
In edit summaries internal links, including existence detection, and [[<tvar|1>Special:MyLanguage/Help:Interwiki linking</>|interwiki links]] work. [[<tvar|2>Special:MyLanguage/Help:Piped link</>|Piping]] of these links works also.
In edit summaries internal links, including existence detection, and [[<tvar name="1">Special:MyLanguage/Help:Interwiki linking</tvar>|interwiki links]] work. [[<tvar name="2">Special:MyLanguage/Help:Piped link</tvar>|Piping]] of these links works also.


<!--T:23-->
<!--T:23-->
In the case of using the [[<tvar|1>Special:MyLanguage/Help:Piped link#Pipe trick</>|pipe trick]], the pipe is ignored (but the link works).
In the case of using the [[<tvar name="1">Special:MyLanguage/Help:Piped link#Pipe trick</tvar>|pipe trick]], the pipe is ignored (but the link works).


<!--T:24-->
<!--T:24-->
Line 81: Line 85:


<!--T:25-->
<!--T:25-->
[[<tvar|1>Special:MyLanguage/Help:What links here</>|What links here]] does not list links in edit summaries.
[[<tvar name="1">Special:MyLanguage/Help:What links here</tvar>|What links here]] does not list links in edit summaries.


====Percent codes==== <!--T:26-->
====Percent codes==== <!--T:26-->


<!--T:27-->
<!--T:27-->
If a link target contains [[<tvar|1>Special:MyLanguage/Help:URL#URLs_in_external_links</>|a %-sign followed by two hexadecimal digits]] the link does not work, and the link label shows up as plain text without brackets; in the case of a piped link the info what the link target is, is lost.
If a link target contains [[<tvar name="1">Special:MyLanguage/Help:URL#URLs_in_external_links</tvar>|a %-sign followed by two hexadecimal digits]] the link does not work, and the link label shows up as plain text without brackets; in the case of a piped link the info what the link target is, is lost.


<!--T:28-->
<!--T:28-->
Thus, while in the wikitext of the page itself <nowiki><tvar|1>[[w:Wikipedia:Village_pump_%28technical%29#Abc]]</> and <tvar|2>[[w:Wikipedia:Village pump (technical)#Abc]]</></nowiki> are equivalent, giving <tvar|1>[[w:Wikipedia:Village_pump_%28technical%29#Abc]]</> and <tvar|2>[[w:Wikipedia:Village pump (technical)#Abc]]</>, only the latter works in an edit summary.
Thus, while in the wikitext of the page itself <nowiki><tvar name="1">[[w:Wikipedia:Village_pump_%28technical%29#Abc]]</tvar> and <tvar name="2">[[w:Wikipedia:Village pump (technical)#Abc]]</tvar></nowiki> are equivalent, giving <tvar name="1">[[w:Wikipedia:Village_pump_%28technical%29#Abc]]</tvar> and <tvar name="2">[[w:Wikipedia:Village pump (technical)#Abc]]</tvar>, only the latter works in an edit summary.


<!--T:29-->
<!--T:29-->
In a URL, all characters other than <tvar|1>[[-:/.]]</>, the digits 0-9, and the plain letters A-Z, a-z, are coded with once or twice a %-sign followed by two hexadecimal digits (follow the link to confirm that these four characters are not affected).
In a URL, all characters other than <tvar name="1">[[-:/.]]</tvar>, the digits 0-9, and the plain letters A-Z, a-z, are coded with once or twice a %-sign followed by two hexadecimal digits (follow the link to confirm that these four characters are not affected).


<!--T:30-->
<!--T:30-->
Line 147: Line 151:


<!--T:45-->
<!--T:45-->
When starting a new thread on a Talk page or page with <tvar|1><nowiki>__NEWSECTIONLINK__</nowiki></>, the "Post a comment" feature can be used. Click the plus sign next to the Edit link (MonoBook skin). A box labelled "''Subject/headline''" appears before the main editing box and the "Edit Summary" text box will not appear. Text typed into the subject field becomes both the edit summary and a new heading (which is added to the end of the page), and text entered into the main edit box is inserted below this heading.
When starting a new thread on a Talk page or page with <tvar name="1"><nowiki>__NEWSECTIONLINK__</nowiki></tvar>, the "Post a comment" feature can be used. Click the plus sign next to the Edit link (MonoBook skin). A box labelled "''Subject/headline''" appears before the main editing box and the "Edit Summary" text box will not appear. Text typed into the subject field becomes both the edit summary and a new heading (which is added to the end of the page), and text entered into the main edit box is inserted below this heading.


<!--T:46-->
<!--T:46-->
See also [[<tvar|1>Special:MyLanguage/Help:Section#Adding_a_section_at_the_end</>|help about adding a section at the end]].
See also [[<tvar name="1">Special:MyLanguage/Help:Section#Adding_a_section_at_the_end</tvar>|help about adding a section at the end]].


== Automatic summaries == <!--T:47-->
== Automatic summaries == <!--T:47-->
</translate>

{{Shortcut|{{-r|WM:AES}}}}
<translate>
<!--T:48-->
<!--T:48-->
In certain circumstances, an automatic summary is generated when an edit is saved without one. This is slightly different from the summary added when editing a section, as that can be modified by the user before saving.
In certain circumstances, an automatic summary is generated when an edit is saved without one. This is slightly different from the summary added when editing a section, as that can be modified by the user before saving.
</translate>
</translate>


{| class="wikitable sortable" border=""
{| class="wikitable"
! <translate><!--T:49--> Situation</translate> !! <translate><!--T:50--> Page</translate> !! <translate><!--T:51--> Text</translate>
! <translate><!--T:49--> Situation</translate>
! <translate><!--T:50--> Page</translate>
! <translate><!--T:51--> Text</translate>
|-
|-
| <translate><!--T:52--> Creating or replacing a page with a redirect<br/>('$1' is replaced with the target of the redirect)</translate>
! colspan="3" style="background: #ececec;" | <translate><!--T:107--> Large scale edits to pages</translate>
| [[MediaWiki:Autoredircomment]]
| {{#ifeq:{{MediaWiki:Autoredircomment/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autoredircomment/{{PAGELANGUAGE}}]]|<translate><!--T:53--> Redirected page to <tvar|0><nowiki>[[$1]]</nowiki></></translate>|{{msgnw:MediaWiki:Autoredircomment/{{PAGELANGUAGE}}}}}}
|-
|-
| <translate><!--T:54--> Removing all text from a page</translate>
| <translate><!--T:54--> Removing all text from a page</translate>
Line 172: Line 178:
| [[MediaWiki:Autosumm-replace]]
| [[MediaWiki:Autosumm-replace]]
|{{#ifeq:{{MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}]]|<translate><!--T:57--> Replaced content with "$1"</translate>|{{msgnw:MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}}}}}
|{{#ifeq:{{MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}]]|<translate><!--T:57--> Replaced content with "$1"</translate>|{{msgnw:MediaWiki:Autosumm-replace/{{PAGELANGUAGE}}}}}}
|-
! colspan="3" style="background: #ececec;" | <translate><!--T:108--> Creation of pages</translate>
|-
|-
| <translate><!--T:58--> Creating a new page ($1 is replaced with the page text)</translate>
| <translate><!--T:58--> Creating a new page ($1 is replaced with the page text)</translate>
| [[MediaWiki:Autosumm-new]]
| [[MediaWiki:Autosumm-new]]
| {{#ifeq:{{MediaWiki:Autosumm-new/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-new/{{PAGELANGUAGE}}]]|<translate><!--T:59--> Created page with "$1"</translate>|{{msgnw:MediaWiki:Autosumm-new/{{PAGELANGUAGE}}}}}}
| {{#ifeq:{{MediaWiki:Autosumm-new/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-new/{{PAGELANGUAGE}}]]|<translate><!--T:59--> Created page with "$1"</translate>|{{msgnw:MediaWiki:Autosumm-new/{{PAGELANGUAGE}}}}}}
|-
| <translate><!--T:109--> Creating a new page without content</translate>
| [[MediaWiki:Autosumm-newblank]]
| {{#ifeq:{{MediaWiki:Autosumm-newblank/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-newblank/{{PAGELANGUAGE}}]]|<translate><!--T:110--> Created blank page</translate>|{{msgnw:MediaWiki:Autosumm-newblank/{{PAGELANGUAGE}}}}}}
|-
! colspan="3" style="background: #ececec;" | <translate><!--T:111--> Changes to redirects</translate>
|-
| <translate><!--T:52--> Creating or replacing a page with a redirect<br/>('$1' is replaced with the target of the redirect)</translate>
| [[MediaWiki:Autoredircomment]]
| {{#ifeq:{{MediaWiki:Autoredircomment/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autoredircomment/{{PAGELANGUAGE}}]]|<translate><!--T:53--> Redirected page to <tvar name=0><nowiki>[[$1]]</nowiki></tvar></translate>|{{msgnw:MediaWiki:Autoredircomment/{{PAGELANGUAGE}}}}}}
|-
| <translate><!--T:112--> Changing the target of a redirect<br/>('$1' is replaced with the previous target of the redirect;<br/>'$2' is replaced with the new target of the redirect)</translate>
| [[MediaWiki:Autosumm-changed-redirect-target]]
| {{#ifeq:{{MediaWiki:Autosumm-changed-redirect-target/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-changed-redirect-target/{{PAGELANGUAGE}}]]|<translate><!--T:113--> Changed redirect target from <tvar name="1"><nowiki>[[$1]]</nowiki></tvar> to <tvar name="2"><nowiki>[[$2]]</nowiki></tvar></translate>|{{msgnw:MediaWiki:Autosumm-changed-redirect-target/{{PAGELANGUAGE}}}}}}
|-
| <translate><!--T:114--> Removing a redirect<br/>('$1' is replaced with the target of the redirect)</translate>
| [[MediaWiki:Autosumm-removed-redirect]]
| {{#ifeq:{{MediaWiki:Autosumm-removed-redirect/{{PAGELANGUAGE}}}}|[[:MediaWiki:Autosumm-removed-redirect/{{PAGELANGUAGE}}]]|<translate><!--T:115--> Removed redirect to <tvar name="1"><nowiki>[[$1]]</nowiki></tvar></translate>|{{msgnw:MediaWiki:Autosumm-removed-redirect/{{PAGELANGUAGE}}}}}}
|}
|}


Line 181: Line 207:
<!--T:60-->
<!--T:60-->
With the exception of the automatic summary when creating a redirect, which usually says all that needs to be said, these are not a substitute for a proper edit summary – you should always leave a meaningful summary, even in the above cases. They are, however, useful in providing some context for edits made by inexperienced users who are not aware of the importance of edit summaries, and for spotting vandalism.
With the exception of the automatic summary when creating a redirect, which usually says all that needs to be said, these are not a substitute for a proper edit summary – you should always leave a meaningful summary, even in the above cases. They are, however, useful in providing some context for edits made by inexperienced users who are not aware of the importance of edit summaries, and for spotting vandalism.

=== Multilingual edit summaries === <!--T:117-->

<!--T:118-->
Some software features, especially Wikidata-related ones, use multilingual automatic summaries via the [[<tvar name="1">mw:autocomment</tvar>|autocomment]] functionality of MediaWiki. These appear in the language of the user looking at the wiki. In tools that display the raw edit summary, they usually look like an i18n message key inside a comment, such as <tvar name="2"><code>/* wbsetsitelink-add:1|frwiki */</code></tvar>.

== Automatic tags == <!--T:104-->

<!--T:105-->
For some kind of edits, the software adds a special [[w:Wikipedia:Tags|tag]], like "<tvar name="1">{{int|tag-mobile_edit}}</tvar>" or "<tvar name="2">{{int|tag-mw-manual-revert}}</tvar>".


==Places where the edit summary appears== <!--T:61-->
==Places where the edit summary appears== <!--T:61-->
Line 189: Line 225:
<!--T:63-->
<!--T:63-->
Permanently:
Permanently:
*[[<tvar|1>Special:MyLanguage/Help:Page history</>|Page history]] - list of edits of a specified page; also shows the size of the wikitext in bytes, for edits from 19 April 2007 (for Wikimedia wikis).
*[[<tvar name="1">Special:MyLanguage/Help:Page history</tvar>|Page history]] - list of edits of a specified page; also shows the size of the wikitext in bytes, for edits from 19 April 2007 (for Wikimedia wikis).
*[[<tvar|2>Special:MyLanguage/Help:User contributions</>|User contributions]] - list of edits by a specified user
*[[<tvar name="2">Special:MyLanguage/Help:User contributions</tvar>|User contributions]] - list of edits by a specified user


<!--T:64-->
<!--T:64-->
Temporarily (see [[<tvar|1>mw:Special:MyLanguage/Manual:$wgRCMaxAge</>|MediaWiki manual about <tvar|2>$wgRCMaxAge</>]]):
Temporarily (see [[<tvar name="1">mw:Special:MyLanguage/Manual:$wgRCMaxAge</tvar>|MediaWiki manual about <tvar name="2">$wgRCMaxAge</tvar>]]):
*[[<tvar|3>Special:MyLanguage/Help:Watching pages</>|Watchlist]] - list of recent changes to watched pages ([[<tvar|4>Special:MyLanguage/Help: Logging in</>|logged-in]] users only); also shows the change in size of the wikitext in bytes; use the enhanced watchlist to see all recent changes in the watched pages, not just the last change in each page
*[[<tvar name="3">Special:MyLanguage/Help:Watching pages</tvar>|Watchlist]] - list of recent changes to watched pages ([[<tvar name="4">Special:MyLanguage/Help: Logging in</tvar>|logged-in]] users only); also shows the change in size of the wikitext in bytes; use the enhanced watchlist to see all recent changes in the watched pages, not just the last change in each page
</translate>
</translate>
<translate>
<translate>
<!--T:65-->
<!--T:65-->
*[[<tvar|1>Special:MyLanguage/Help:Diff</>|diff page]] - shows the difference between two edits
*[[<tvar name="1">Special:MyLanguage/Help:Diff</tvar>|diff page]] - shows the difference between two edits
*[[<tvar|2>Special:MyLanguage/Help:Recent changes</>|Recent changes]] / [[<tvar|3>Special:MyLanguage/Help:Enhanced recent changes</>|enhanced recent changes]] - list of all recent edits; also shows the change in size of the wikitext in bytes
*[[<tvar name="2">Special:MyLanguage/Help:Recent changes</tvar>|Recent changes]] / [[<tvar name="3">Special:MyLanguage/Help:Enhanced recent changes</tvar>|enhanced recent changes]] - list of all recent edits; also shows the change in size of the wikitext in bytes
</translate>
</translate>
<translate>
<translate>
<!--T:66-->
<!--T:66-->
*[[w:Wikipedia:IRC channels|Wikipedia IRC channels]] - real time list of all edits
*[[w:Wikipedia:IRC channels|Wikipedia IRC channels]] - real time list of all edits
*[[<tvar|1>Special:MyLanguage/Help:Related changes</>|Related changes]] - list of recent changes to pages linked to a specified page; also shows the change in size of the wikitext in bytes
*[[<tvar name="1">Special:MyLanguage/Help:Related changes</tvar>|Related changes]] - list of recent changes to pages linked to a specified page; also shows the change in size of the wikitext in bytes
</translate>
</translate>
<translate>
<translate>
<!--T:67-->
<!--T:67-->
*[[<tvar|1>Special:Newpages</>|List of new pages]] - shows the edit summary of the creation; also shows the current size of the wikitext in bytes
*[[<tvar name="1">Special:Newpages</tvar>|List of new pages]] - shows the edit summary of the creation; also shows the current size of the wikitext in bytes


<!--T:68-->
<!--T:68-->
The edit summary also appears in the e-mail received in the case of [[<tvar|1>Special:MyLanguage/Help:Watching_pages#E-mail_notification</>|e-mail notification]].
The edit summary also appears in the e-mail received in the case of [[<tvar name="1">Special:MyLanguage/Help:Watching_pages#E-mail_notification</tvar>|e-mail notification]].


<!--T:69-->
<!--T:69-->
See also [[<tvar|1>Special:MyLanguage/Help:Tracking changes</>|help about change tracking]].
See also [[<tvar name="1">Special:MyLanguage/Help:Tracking changes</tvar>|help about change tracking]].


==File upload summary== <!--T:70-->
==File upload summary== <!--T:70-->
Line 224: Line 260:
<translate>
<translate>
<!--T:72-->
<!--T:72-->
*as text in the entry of the [[<tvar|1>Special:MyLanguage/Help:Page history#Image_history</>|image history]]
*as text in the entry of the [[<tvar name="1">Special:MyLanguage/Help:Page history#Image_history</tvar>|image history]]
</translate>
</translate>
<translate>
<translate>
Line 249: Line 285:


<!--T:78-->
<!--T:78-->
See also [[<tvar|1>Special:MyLanguage/Help:Image page</>|help about image page]].
See also [[<tvar name="1">Special:MyLanguage/Help:Image page</tvar>|help about image page]].


==Changing an edit summary== <!--T:79-->
==Changing an edit summary== <!--T:79-->
Line 262: Line 298:


<!--T:83-->
<!--T:83-->
The [[<tvar|1>Special:MyLanguage/Help:Searching</>|Wikimedia search function]] cannot search edit summaries, and they are not indexed by external search engines.
The [[<tvar name="1">Special:MyLanguage/Help:Searching</tvar>|Wikimedia search function]] cannot search edit summaries, and they are not indexed by external search engines.


<!--T:84-->
<!--T:84-->
There is an unofficial external tool at [[<tvar|1>mw:Special:MyLanguage/Wikimedia Labs</>|Wikimedia Labs]]: [<tvar|2>https://tools.wmflabs.org/sigma/summary.py</> edit summary search]. Also, hashtags (like #tag) can be searched at <tvar|3>[https://hashtags.wmflabs.org/ https://hashtags.wmflabs.org]</>.
There is an unofficial external tool at [[<tvar name="1">mw:Special:MyLanguage/Wikimedia Labs</tvar>|Wikimedia Labs]]: [<tvar name="2">https://tools.wmflabs.org/sigma/summary.py</tvar> edit summary search]. Also, hashtags (like #tag) can be searched at <tvar name="3">[https://hashtags.wmflabs.org/ https://hashtags.wmflabs.org]</tvar>.


==Recommendations== <!--T:85-->
==Recommendations== <!--T:85-->
Line 273: Line 309:


<!--T:87-->
<!--T:87-->
Accurate summaries help people decide whether it is worthwhile for them to check a change. We've found that summaries often pique the interest of contributors with expertise in the area. This may not be as necessary for [[<tvar|1>Special:MyLanguage/Help:Minor edit</>|minor edits]], but "fixed spelling" would be nice even then.
Accurate summaries help people decide whether it is worthwhile for them to check a change. We've found that summaries often pique the interest of contributors with expertise in the area. This may not be as necessary for [[<tvar name="1">Special:MyLanguage/Help:Minor edit</tvar>|minor edits]], but "fixed spelling" would be nice even then.


<!--T:88-->
<!--T:88-->
In the case of a small addition to an article, it is recommended to copy the first one or two sentences of this addition to the summary field, giving a maximum of information with a minimum of effort. Put ''ft'' in front, as an abbreviation of "full text" (see the [[<tvar|1>#Abbreviations</>|Abbreviations section]] for other abbreviations). This way, readers of the summary will be unlikely to check the page itself as they already know the extent of the edit. It also makes it easy for color-blind or visually impaired readers to see punctuation and other tiny changes that may be difficult to discern (this was especially true before the new [[<tvar|2>Help:diff</>|diff]] view in [[<tvar|3>mw:Special:MyLanguage/MediaWiki 1.20</>|MediaWiki 1.20]]). It also helps users to check recent changes, page history and user contributions (see below) very efficiently, and reduces the load on the servers.
In the case of a small addition to an article, it is recommended to copy the first one or two sentences of this addition to the summary field, giving a maximum of information with a minimum of effort. Put ''ft'' in front, as an abbreviation of "full text" (see the [[<tvar name="1">#Abbreviations</tvar>|Abbreviations section]] for other abbreviations). This way, readers of the summary will be unlikely to check the page itself as they already know the extent of the edit. It also makes it easy for color-blind or visually impaired readers to see punctuation and other tiny changes that may be difficult to discern (this was especially true before the new [[<tvar name="2">Help:diff</tvar>|diff]] view in [[<tvar name="3">mw:Special:MyLanguage/MediaWiki 1.20</tvar>|MediaWiki 1.20]]). It also helps users to check recent changes, page history and user contributions (see below) very efficiently, and reduces the load on the servers.


<!--T:89-->
<!--T:89-->
Line 291: Line 327:


<!--T:93-->
<!--T:93-->
In the case of important omissions or errors in the edit summary, you can make a [[<tvar|1>Special:MyLanguage/Help:Dummy edit</>|dummy edit]] just to put the correction in the edit summary.
In the case of important omissions or errors in the edit summary, you can make a [[<tvar name="1">Special:MyLanguage/Help:Dummy edit</tvar>|dummy edit]] just to put the correction in the edit summary.

</translate>
<span id="Abbreviations"></span>
<translate>
== Abbreviations == <!--T:94-->
== Abbreviations == <!--T:94-->


<!--T:95-->
<!--T:95-->
Experienced users, especially those with many edits to make, will often use abbreviations in edit summaries (as well as [[<tvar|1>Special:Log</>|log]] entries), in order to save time; for example, "rv" for "[[<tvar|2>Special:MyLanguage/Help:Reverting</>|revert]]". These should be used with care, as they can be confusing for inexperienced users, but they are generally fine for small edits such as formatting and grammar changes. See [[w:Wikipedia:Edit summary legend|Edit summary legend]] for a list of commonly used abbreviations in edit summaries.
Experienced users, especially those with many edits to make, will often use abbreviations in edit summaries (as well as [[<tvar name="1">Special:Log</tvar>|log]] entries), in order to save time; for example, "rv" for "[[<tvar name="2">Special:MyLanguage/Help:Reverting</tvar>|revert]]". These should be used with care, as they can be confusing for inexperienced users, but they are generally fine for small edits such as formatting and grammar changes. See [[w:Wikipedia:Edit summary legend|Edit summary legend]] for a list of commonly used abbreviations in edit summaries.


== Action summary == <!--T:96-->
== Action summary == <!--T:96-->
Line 311: Line 345:
User comments, if long enough, can be truncated by the system. Then its longer version, which doesn't have to share 1000 octets with action summary, can be found in protection/move logs.
User comments, if long enough, can be truncated by the system. Then its longer version, which doesn't have to share 1000 octets with action summary, can be found in protection/move logs.


== References == <!--T:116-->
</translate>
<references />

<translate>
==See also== <!--T:100-->
==See also== <!--T:100-->


<!--T:101-->
<!--T:101-->
*[[<tvar|1>Special:MyLanguage/Feature to edit summaries</>|Feature to edit summaries]] (2004)
*[[<tvar name="1">Special:MyLanguage/Feature to edit summaries</tvar>|Feature to edit summaries]] (2004)
*[[<tvar|2>Special:MyLanguage/Edit summary prefill poll</>|Edit summary prefill poll]] (2004)
*[[<tvar name="2">Special:MyLanguage/Edit summary prefill poll</tvar>|Edit summary prefill poll]] (2004)
*[[<tvar|3>Special:MyLanguage/Usage of edit summary on Wikipedia</>|Usage of edit summary on Wikipedia]]: statistics from 2005 to 2010
*[[<tvar name="3">Special:MyLanguage/Usage of edit summary on Wikipedia</tvar>|Usage of edit summary on Wikipedia]]: statistics from 2005 to 2010


==External links== <!--T:102-->
==External links== <!--T:102-->


<!--T:103-->
<!--T:103-->
*[[<tvar|1>MeatBall:EditDigest</>|“EditDigest” on MeatBall]]
*[[<tvar name="1">MeatBall:EditDigest</tvar>|“EditDigest” on MeatBall]]
*[[<tvar|2>MeatBall:MinorEdit</>|“MinorEdit” on MeatBall]]
*[[<tvar name="2">MeatBall:MinorEdit</tvar>|“MinorEdit” on MeatBall]]
</translate>
</translate>


{{TNT|H:f|langs=|enname=Edit summary|sandbox=|namespace=|noshift=|uselang=|tntns=|template=}}
{{H:f|langs=|enname=Edit summary}}


[[Category:Editor handbook{{#translation:}}]]
[[Category:Editor handbook{{#translation:}}]]

Latest revision as of 13:18, 31 March 2023

When editing a page, a small "Summary" field under the main edit-box looks like this:

Edit summary text box
Edit summary text box

It's good practice to fill in the Edit Summary field, or add to it in the case of section editing, as it helps everyone to understand what is changed, such as when perusing the history of the page, without having to look at individual revisions. Additionally, it retains authorship information after a huge revision deletion in case of discovered copyright violation.[1] It's a good idea to set your user preferences (under Editing) to "Prompt me when entering a blank edit summary". (If you really want to keep it empty, you can just confirm the message or enter a blank space to avoid the message.)

In the case of applying substitution, providing the line of wikitext containing "subst:" in the edit summary is especially useful, because otherwise substitution does not show up as such in the page history.

Properties

The edit summary box can hold one line of 800 characters, with a size no more than 1000 octets (the latter restriction never has an effect on 7-bit-ASCII-text, but in UTF-8, any non-ASCII character occupies 2 to 4 octets). If you attempt to type or paste more, only the first 800 characters will be displayed and the rest will be disregarded. For example, attempting to add 10 new characters at any location within a summary already containing 795 characters will result in the truncation of all text after the 800th character.

In edit summaries, internal and interwiki links work with some limitations, see below.

Other wikitext code is not interpreted:

  • Variables, templates, and parser functions are not expanded.
  • External links do not work.
  • HTML tags do not work.
  • Italics, bold, etc, do not work (edit summaries are rendered in italics by default).
  • <nowiki> tags do not work; thus e.g. [[a]] cannot be displayed (it will be rendered as <nowiki>a</nowiki>). One could use [[a]] (with a zero-width space between the brackets on the left) or [ [a] ] instead.

When pressing preview, a preview of the edit summary is displayed, along with a preview of the edited page. While the summary may be too long to be seen in the input box without scrolling, it will be displayed in its entirety on the history page.

Pressing Enter in the edit summary box has the same effect as pressing "Publish changes". Be careful not to do this by accident while typing the edit summary, because the unfinished edit summary may not make sense and cannot be changed. A subsequent dummy edit such as adding an extra space somewhere which does not change the rendered page, gives the opportunity to supply a correct edit summary for the previous edit.

Linking to a section

An anchor name enclosed between /* and */ produces a right arrow linking to a specified anchor on the page, followed by the anchor name with CSS class "autocomment": Anchor text. It is similar to the wikitext "<span class="autocomment">[[#Anchor name|→]] Anchor text</span>"".

Separators are automatically provided when needed (i.e. between /* */ syntax and text in either order). For example, the edit summary:

/* Foo */ test /* Bar */ test

is rendered as:

→Foo: test →Bar: test

For more flexibility these special anchor links can be replaced by ordinary links to pages redirecting to the desired anchors; see also below.

Section editing

When editing an existing section, the section title is inserted at the beginning of the edit summary, enclosed with /* and */ marks, for example /* External links */.

If the section name is changed it is useful to change it in the edit summary accordingly, so that the section link still works as such (until the name of the section is changed again, as the links do not change retroactively).

If you create a new section before or after an existing section by clicking a section "edit" link, change or delete the text between /* and */ marks, to avoid confusion.

Details of the edit should be added after this text. In the case that you provide a long summary yourself you can consider deleting the section title in order to stay within the limit of 800 characters, depending on what is more important.

Internal and interwiki links in edit summaries

In edit summaries internal links, including existence detection, and interwiki links work. Piping of these links works also.

In the case of using the pipe trick, the pipe is ignored (but the link works).

The links can be checked in the preview of the edit summary.

What links here does not list links in edit summaries.

Percent codes

If a link target contains a %-sign followed by two hexadecimal digits the link does not work, and the link label shows up as plain text without brackets; in the case of a piped link the info what the link target is, is lost.

Thus, while in the wikitext of the page itself [[w:Wikipedia:Village_pump_%28technical%29#Abc]] and [[w:Wikipedia:Village pump (technical)#Abc]] are equivalent, giving w:Wikipedia:Village_pump_(technical)#Abc and w:Wikipedia:Village pump (technical)#Abc, only the latter works in an edit summary.

In a URL, all characters other than [[-:/.]], the digits 0-9, and the plain letters A-Z, a-z, are coded with once or twice a %-sign followed by two hexadecimal digits (follow the link to confirm that these four characters are not affected).

The codes occur in practice when a page name contains special characters (characters other than those mentioned), and a link to a section of that page is made by copying part of the URL to that section, which in turn is produced by a TOC link. This is not the case if only the section name contains special characters, because in a URL they are coded with a point followed by the hexadecimal digits. So the anchor itself does not give problems, the fact that there is an anchor makes it convenient to use the URL, which gives this problem.

Workarounds to get a working link in the edit summary include:

  • use the URL, but replace the codes by the characters concerned by hand (this is not convenient in languages where many characters are coded)
  • apply a redirect to arrive at the page, e.g. w:WP:VPT,
  • apply the TOC link, get the part of the URL from the page name, if applicable add the interwiki prefix again, and use the result as link target in the page as well as in the edit summary
  • assemble the combination pagename, #, section name oneself; the page name can be copied from the page header, or, if it has a short redirect, the pagename can also easily be typed: we get w:WP:VPT#Abc where the anchor is typically easier to copy (being longer than here), but the rest is just typed.

Flexibility

Since edit summaries cannot be edited after saving the page, moving the contents of a link target can be a problem, and this frequently happens: the move to an archive is often even predictable.

  • In the case of a page move a redirect is created; however, when the old name is needed for a new page, the link is not targeted correctly anymore.
  • In the case of a link to a section, when the name of the section is changed, an anchor can be made with the old name of the section.
  • In the case of a link to a section, if content is moved to another section, the link will still target the old section.
  • In the case of a link to an explicitly put anchor, the anchor can be moved with the content, provided that other links to the anchor need to target the other position too.

Anticipating these problems one can do the following:

  • make a link to a page with a name that accurately and unambiguously describes the required target
  • if this page does not exist, create a redirect to the desired page, possibly with an anchor.

While the edit summary remains the same indefinitely, the redirect can be changed whenever needed.

This method is also useful for replacing the automatic section link: It provides flexibility with regard to renaming of sections.

"Post a comment" feature

When starting a new thread on a Talk page or page with __NEWSECTIONLINK__, the "Post a comment" feature can be used. Click the plus sign next to the Edit link (MonoBook skin). A box labelled "Subject/headline" appears before the main editing box and the "Edit Summary" text box will not appear. Text typed into the subject field becomes both the edit summary and a new heading (which is added to the end of the page), and text entered into the main edit box is inserted below this heading.

See also help about adding a section at the end.

Automatic summaries

Shortcut:
WM:AES

In certain circumstances, an automatic summary is generated when an edit is saved without one. This is slightly different from the summary added when editing a section, as that can be modified by the user before saving.

Situation Page Text
Large scale edits to pages
Removing all text from a page MediaWiki:Autosumm-blank Blanked the page
Removing most of the text from a page, or editing a short page
('$1' is replaced with the page text)
MediaWiki:Autosumm-replace Replaced content with "$1"
Creation of pages
Creating a new page ($1 is replaced with the page text) MediaWiki:Autosumm-new Created page with "$1"
Creating a new page without content MediaWiki:Autosumm-newblank Created blank page
Changes to redirects
Creating or replacing a page with a redirect
('$1' is replaced with the target of the redirect)
MediaWiki:Autoredircomment Redirected page to [[$1]]
Changing the target of a redirect
('$1' is replaced with the previous target of the redirect;
'$2' is replaced with the new target of the redirect)
MediaWiki:Autosumm-changed-redirect-target Changed redirect target from [[$1]] to [[$2]]
Removing a redirect
('$1' is replaced with the target of the redirect)
MediaWiki:Autosumm-removed-redirect Removed redirect to [[$1]]

With the exception of the automatic summary when creating a redirect, which usually says all that needs to be said, these are not a substitute for a proper edit summary – you should always leave a meaningful summary, even in the above cases. They are, however, useful in providing some context for edits made by inexperienced users who are not aware of the importance of edit summaries, and for spotting vandalism.

Multilingual edit summaries

Some software features, especially Wikidata-related ones, use multilingual automatic summaries via the autocomment functionality of MediaWiki. These appear in the language of the user looking at the wiki. In tools that display the raw edit summary, they usually look like an i18n message key inside a comment, such as /* wbsetsitelink-add:1|frwiki */.

Automatic tags

For some kind of edits, the software adds a special tag, like "Mobile edit" or "Manual revert".

Places where the edit summary appears

The edit summary appears in black italics in the following places:

Permanently:

  • Page history - list of edits of a specified page; also shows the size of the wikitext in bytes, for edits from 19 April 2007 (for Wikimedia wikis).
  • User contributions - list of edits by a specified user

Temporarily (see MediaWiki manual about $wgRCMaxAge):

  • Watchlist - list of recent changes to watched pages (logged-in users only); also shows the change in size of the wikitext in bytes; use the enhanced watchlist to see all recent changes in the watched pages, not just the last change in each page
  • diff page - shows the difference between two edits
  • Recent changes / enhanced recent changes - list of all recent edits; also shows the change in size of the wikitext in bytes
  • Wikipedia IRC channels - real time list of all edits
  • Related changes - list of recent changes to pages linked to a specified page; also shows the change in size of the wikitext in bytes
  • List of new pages - shows the edit summary of the creation; also shows the current size of the wikitext in bytes

The edit summary also appears in the e-mail received in the case of e-mail notification.

See also help about change tracking.

File upload summary

When uploading an image one can supply an upload summary. This serves multiple purposes:

  • as the second part of the automatically created edit summary of the upload log (the first part giving the file name)
  • as text in the entry of the image history
  • in the case that the file name of the image is new:
    • as the edit summary for the creation of the image page
    • as wikitext for the editable part of the image page, which includes the following possibilities:
      • briefly describe the image
      • provide internal or external links
      • call templates
      • specify one or more categories the image is in

The capacity of the upload summary is one line of 250 characters; In the upload log the last part may fall off, because this can contain 255 characters, including "uploaded "filename"".

Note that there is no preview function to check the code for the links, template calls and category tags, but of course, if needed one can edit the image page after uploading, to correct errors and also to extend the text.

See also help about image page.

Changing an edit summary

Changing an edit summary is cumbersome and requires importing (hence this has to be enabled on the wiki and the user needs to have that user right): export the page with history, delete the page, make the change in the xml file, and import it again. To change the edit summary of the current revision one can also export the page without history, delete the page, restore it except the last revision, make the change in the xml file, and import it again.

The import log shows the import of the page, with user name, date, time, and number of revisions. The deletion log shows the deletion and, if applicable, restoration, with user name, date, and time. The "View and restore deleted pages" feature shows deleted revisions. There is no easy way (like a diff) to see what changes were made. In the case of multiple deletions and imports or restorations it is not recorded which revisions existed when in the regular page history, so it is not possible at all to know what was changed in the last delete/import operation.

Searching

The Wikimedia search function cannot search edit summaries, and they are not indexed by external search engines.

There is an unofficial external tool at Wikimedia Labs: edit summary search. Also, hashtags (like #tag) can be searched at https://hashtags.wmflabs.org.

Recommendations

Always fill in the summary field. This is considered an important guideline. Even a short summary is better than no summary. An edit summary is even more important if you delete any text; otherwise, people may question your motives for the edit. Also, mentioning one change but not another can be misleading to someone who finds the other one more important; add "and misc." to cover the other change(s).

Accurate summaries help people decide whether it is worthwhile for them to check a change. We've found that summaries often pique the interest of contributors with expertise in the area. This may not be as necessary for minor edits, but "fixed spelling" would be nice even then.

In the case of a small addition to an article, it is recommended to copy the first one or two sentences of this addition to the summary field, giving a maximum of information with a minimum of effort. Put ft in front, as an abbreviation of "full text" (see the Abbreviations section for other abbreviations). This way, readers of the summary will be unlikely to check the page itself as they already know the extent of the edit. It also makes it easy for color-blind or visually impaired readers to see punctuation and other tiny changes that may be difficult to discern (this was especially true before the new diff view in MediaWiki 1.20). It also helps users to check recent changes, page history and user contributions (see below) very efficiently, and reduces the load on the servers.

For longer additions, you should write a short summary of the changes you have introduced into the article. For an addition of, say, 800 characters you can also save time by simply copying that into the summary field.

Unfortunately you can copy only one line of text from the edit box into the edit summary box. The contents of further lines can be pasted at the end of the line. Thus, for example, a bulleted "see also" list is cumbersome to put in the edit summary box. One possible workaround for a new list is putting the list on one line, separated by the asterisks for the bullets, copying it to the edit summary box, and then, in the main edit box, inserting line breaks before the asterisks.

In addition to a summary of the change itself, the summary field may also contain an explanation of the change; note that if the reason for an edit is not clear, it is more likely to be reverted, especially if you have deleted some text. To give a longer explanation, use the Talk page and put in the edit summary "see Talk".

After saving the page, the summary cannot be edited — another reason to avoid spelling errors.

In the case of important omissions or errors in the edit summary, you can make a dummy edit just to put the correction in the edit summary.

Abbreviations

Experienced users, especially those with many edits to make, will often use abbreviations in edit summaries (as well as log entries), in order to save time; for example, "rv" for "revert". These should be used with care, as they can be confusing for inexperienced users, but they are generally fine for small edits such as formatting and grammar changes. See Edit summary legend for a list of commonly used abbreviations in edit summaries.

Action summary

Protection or move actions also generate entries in page the history. This entry is also limited to 1000 octets, and consists of action descriptions and user provided comments.

Action descriptions, such as "moved XX to YY", is created from current system messages in site language. As a result, it is not localized by changing user interface language.

User comments, if long enough, can be truncated by the system. Then its longer version, which doesn't have to share 1000 octets with action summary, can be found in protection/move logs.

References

See also

External links

Links to other help pages

Help contents
Meta · Wikinews · Wikipedia · Wikiquote · Wiktionary · Commons: · Wikidata · MediaWiki · Wikibooks · Wikisource · MediaWiki: Manual · Google
Versions of this help page (for other languages see further)
What links here on Meta or from Meta · Wikipedia · MediaWiki
Reading
Go · Search · Namespace · Page name · Section · Backlinks · Redirect · Category · Image page · Special pages · Printable version
Tracking changes
Recent changes (enhanced) | Related changes · Watching pages · Diff · Page history · Edit summary · User contributions · Minor edit · Patrolled edit
Logging in and preferences
Logging in · Preferences
Editing
Starting a new page · Advanced editing · Editing FAQ · Export · Import · Shortcuts · Edit conflict · Page size
Referencing
Links · URL · Interwiki linking · Footnotes
Style and formatting
Wikitext examples · CSS · Reference card · HTML in wikitext · Formula · Lists · Table · Sorting · Colors · Images and file uploads
Fixing mistakes
Show preview · Reverting edits
Advanced functioning
Expansion · Template · Advanced templates · Parser function · Parameter default · Magic words · System message · Substitution · Array · Calculation · Transclusion
Others
Special characters · Renaming (moving) a page · Preparing a page for translation · Talk page · Signatures · Sandbox · Legal issues for editors