Editnotices are message boxes shown before the edit window when a user edits a page in desktop mode (Editnotices are not visible to those editing with the mobile or app version of Wikipedia). All users can create editnotices for their user space, but in other namespaces only administrators, page movers and template editors can create editnotices.
To use editnotices, you should have a basic understanding of the concept of Wikipedia namespaces; that is a set of Wikipedia pages whose names begin with a prefix recognized by the MediaWiki software, followed by a colon, or, in the case of the main namespace, with no prefix.
Some of the message boxes you see when editing a page (or viewing the source of a protected page) are not editnotices; instead, they are MediaWiki interface messages.
When a page is edited, red or blue links are often displayed at the top right of the page looking like this:
They are links to the group and page editnotices of the page. Users with administrator, template editor, or page mover permissions always see both links, even if the notices have not yet been created, since they can create and edit the editnotices. Other users only see the red "Page notice" link on their own user and user talk basepage, since they can create and edit such notices. They also see blue links to group and page notices if they already have been created, so they can find and view the source of the notice. But they still can't edit those notices, except the ones in userspace.
This appears on top of the editing box screen when people would like to edit your page. The ExampleUser part will automatically change to your username.
Anyone can create an editnotice for a user or user talk page. (But editnotices for user sub-pages can only be created by admins, template editors, and page movers.) User page editnotice names take one of these forms:
Editnotices for other namespaces and for user subpages can be created and edited only by admins, template editors, and page movers. There are three main types of editnotices:
If you need to display a batch of identical editnotices, please create a single template which you then transclude in each editnotice, to allow easier modification and maintenance. You can place such templates in Category:Editnotice templates.
Editnotices are displayed when editing a page, but because their content can also be useful when just viewing a page, they are also displayed in these cases:
When the editnotices are shown in "view mode" the loading system feeds them "
notice action = view". This can be used inside the editnotices like this:
If you don't want to see any of the "Group notice" and "Page notice" links, then use this markup instead:
When an editnotice is used on an article, people creating editnotices are advised to leave a message on the article's talk page for further discussion of the editnotice on the article.
Anything put on the pages MediaWiki:Editnotice-0 through MediaWiki:Editnotice-15 (or Editnotice-100 through Editnotice-109) will appear as an editnotice for every page in an entire namespace. Editnotice-0 is for mainspace pages, Editnotice-1 for the talk space pages, Editnotice-2 for user space pages, etcetera. See WP:Namespace for the meaning of all of the numbers.
The editnotice load system uses two methods of storing the editnotices:
Although all of the namespaces could initially store editnotices directly as MediaWiki messages, this was found to cause performance issues as the MediaWiki namespace grew. The display of MediaWiki editnotices for namespaces that have the MediaWiki subpage feature has been disabled; even though an editnotice can be created as a MediaWiki message for these namespaces, it will not show. For consistency, and to keep the MediaWiki namespace clean, all editnotices are now stored as subpages of Template:Editnotices. This means we again can create editnotices for all namespaces.
Group notices stored as
Template:Editnotices/Group/... can be created for pages in all namespaces except for the main (article), File (image), and MediaWiki namespaces. The reason is that those namespaces don't have the MediaWiki subpage feature, thus group notices would not be meaningful in those namespaces. The talk spaces of those namespaces understand subpages and can use group notices, although group notices are usually not meaningful there either.
A feature request at T85372 asks for per-category editnotices to make it much easier to add and maintain this kind of notice.
Emailnotices allow registered users with a confirmed email to display a custom message at Special:EmailUser for their username. Emailnotices are located at Special:MyPage/Emailnotice (). The system was implemented in MediaWiki:Emailpagetext after this discussion.
Editnotices were introduced in r39120, 11 August 2008, MediaWiki 1.14.
This page may not be complete. Here are some links to more information:
An alternative to an editnotice, not requiring any special privileges, is to insert one or more HTML comments into a page. This will be visible when a user is editing the page, but not in the page itself. The comment must be preceded by the characters
<!-- and followed by
To edit a namespace-wide editnotice, click on the corresponding link below. To create an editnotice for a page, enter the page name and click "Create". For your own User: and User talk: pages, you don't need to type anything, just click "Create".
Page names are case sensitive—if the page shows the first character as capitalized, then it must be capitalized when entered here.