跳转到内容

维基百科:编辑提示

本页使用了标题或全文手工转换
维基百科,自由的百科全书

编辑提示是在编辑页面的时候编辑框上方的提示信息。所有用户都可以在他们的用户页和用户讨论页使用自己的提示信息。而在其他命名空间的编辑提示则只能由自动确认用户创建和编辑。

在了解和使用编辑提示之前,您应当对命名空间的概念有所了解。

有一些提示信息并非编辑提示,而是系统界面的信息。

编辑提示链接

当您编辑一个页面时,您会看到编辑框上方有或红或蓝的链接,比如:

或者这样:

这些链接指向这个页面的编辑提示。因为管理员可以创建它们,因此即使它们都不存在,管理员也总能看到这两个链接。同样地,一般的用户只能在他们自己的用户页和用户讨论页看到红色的“Page notice”。如果这个页面有对应的编辑提示,那么所有用户都可以看到它的蓝色链接,并可以查看它的源代码。不过普通用户不能对编辑提示做出修改——除了自己的用户页、用户讨论页以外。

参见下方的章节:隐藏红字链接

编辑提示

当创建编辑提示时,模版 {{editnotice}} 可用於格式化;可以看它的模版页面了解如何使用它。请看Category:编辑提示模板

用戶和用戶討論頁

任何人都可以在用户页或用户对话页创建一个编辑提示模板。(但在用户子页面创建编辑提示只能由自动确认用户进行。)用户页编辑提示名称采取这些格式之一:

User:Example/Editnotice
User talk:Example/Editnotice

您可以在您的用户页或用户对话页,使用这些链接用预装的 {{editnotice}} 模板创建一个编辑提示:

其他命名空間

其他命名空间的编辑提示只能由自动确认用户创建或编写。

维基百科共有三种编辑提示:

命名空间编辑提示
在命名空间内的所有页面中显示
组编辑提示
在一个页面及所有子页面显示
页面编辑提示
只在当前页面显示


编辑提示名称可使用以下格式之一:

命名空间提示 – 见下文。
组提示 – Template:Editnotices/Group/<完整页面名称的顶级页>
页面提示 – Template:Editnotices/Page/<完整页面名称>

建立編輯提示

要编辑一个命名空间的编辑提示,点击下面相应的链接. 要创建一个页面的编辑提示,在文本框內输入页面的名称,然后点击"创建"按钮. 要创建您自己的用户页和用户讨论页的编辑提示,您不需要输入任何东西,直接点击"创建您的用户页编辑提示"或"创建您的用户页编辑提示"即可。

网页名称是区分大小写的— 如果页面显示时首字母是大写的,那么在这里输入时它必须也是大写的。

数字 命名空间 命名空间编辑提示 创建某页面的编辑提示
-1 Special:EmailUser MediaWiki:Emailpagetext
0 Main: (条目页) Template:Editnotices/Namespace/Main
1 Talk: (讨论页) Template:Editnotices/Namespace/Talk
2 User: (用户页)[user 1] Template:Editnotices/Namespace/User
3 User talk: (用户讨论页)[user 2] Template:Editnotices/Namespace/User talk
4 Wikipedia: (项目页) Template:Editnotices/Namespace/Wikipedia
5 Wikipedia talk: (项目讨论页) Template:Editnotices/Namespace/Wikipedia talk
6 File: (文件页) Template:Editnotices/Namespace/File
7 File talk: (文件讨论页) Template:Editnotices/Namespace/File talk
8 MediaWiki: (界面页) Template:Editnotices/Namespace/MediaWiki
9 MediaWiki talk: (界面讨论页) Template:Editnotices/Namespace/MediaWiki talk
10 Template: (Template页) Template:Editnotices/Namespace/Template
11 Template talk: (模板讨论页) Template:Editnotices/Namespace/Template talk
12 Help: (帮助页) Template:Editnotices/Namespace/Help
13 Help talk: (帮助讨论页) Template:Editnotices/Namespace/Help talk
14 Category: (分类页) Template:Editnotices/Namespace/Category
15 Category talk: (分类讨论页) Template:Editnotices/Namespace/Category talk
100 Portal: (主题页) Template:Editnotices/Namespace/Portal
101 Portal talk: (主题讨论页) Template:Editnotices/Namespace/Portal talk
102 WikiProject: (维基专题页) Template:Editnotices/Namespace/WikiProject
103 WikiProject talk: (维基专题讨论页) Template:Editnotices/Namespace/WikiProject talk
118 Draft: (Draft页) Template:Editnotices/Namespace/Draft
119 Draft talk: (草稿讨论页) Template:Editnotices/Namespace/Draft talk
710 TimedText: (TimedText页) Template:Editnotices/Namespace/TimedText
711 TimedText talk: (字幕讨论页) Template:Editnotices/Namespace/TimedText talk
828 Module: (模块页) Template:Editnotices/Namespace/Module
829 Module talk: (模块讨论页) Template:Editnotices/Namespace/Module talk

注意:如想查看其他用户的用户页或用户对话页的编辑提示,可在用户页或用户对话页后增加“/Editnotice”。但是請尊重對方,不要修改。

如果您不是自动确认用户,但想要请求创建一个编辑提示:

  • 打开您想要创建编辑提示的页面的编辑页面。
  • 在页面上放置以下代码:{{editnotice talkpagename}}
  • 预览页面,然后
  • 在编辑提示讨论页,编写您想要创建的编辑提示的准确的代码,然后在上方放置 {{editprotected}} 请求。

另一种找到编辑提示的链接的方法是:

  • 打开您想要创建编辑提示的页面的编辑页面。
  • 将以下代码放置在页面上: [[{{editnotice pagename}}]]
  • 预览页面,然后跟随到编辑提示页的链接。
注釋:
  1. ^ 建在Template:Editnotices/Page/User:<用戶名>是行不通的,只有在Template:Editnotices/Page/User:<用戶名>/<子頁面>時才能這樣用
  2. ^ 建在Template:Editnotices/Page/User talk:<用戶名>是行不通的,只有在Template:Editnotices/Page/User talk:<用戶名>/<子頁面>時才能這樣用

何時顯示

编辑提示会在编辑页面时显示,但是只查看页面时,它们的内容也可能是有用的。因此,它们也会在以下情况时显示:

  • 页面提示会在 MediaWiki 命名空间的 .css 和 .js 页面的顶端显示。比如,您可以查看在 MediaWiki:Common.css 顶端的提示(以 "注意:您可能需要清除浏览器的缓存才能看到所作出的改变。" 开始)。命名空间的提示没有被显示,而且 MediaWiki 命名空间也没有组提示。
  • 在任何命名空间,当一个非管理员的用户在被保护的页面上 "查看源代码",或者一个 IP 用户查看了半保护页面的源代码。这时,组提示和页面提示被显示,但命名空间提示不会显示。

当编辑提示在 "显示模式" 显示的时候,加载系统会增加 "notice action = view" 这个参数。

这可以被用在编辑提示中,就像这样:

{{#ifeq: {{{notice action|}}} | view
| <!--非管理员正在查看页面的源代码-->
| <!--有充足权限的用户正在编辑页面-->
}}

隐藏红字链接

如果您不想看见红色的“组提示”和“页面提示”链接,那么您可以在您自己的 /common.css 中添加以下代码,然后刷新缓存

/* 隐藏红色的“组提示”和“页面提示”链接 */
.editnotice-area .editnotice-redlink { 
  display: none !important;
}

如果您不想看见任何“组提示”和“页面提示”链接,那么使用以下的代码:

/* 隐藏所有“组提示”和“页面提示”链接 */
.editnotice-area .editnotice-link { 
  display: none !important;
}

注意事項

如果编辑提示用于条目,建议您在讨论页留下信息,以便进一步讨论。

模板 {{active editnotice}} 可以用来指示一个非用户页拥有一个活动的(非空的)编辑提示。使用模板后,条目会被加入 Category:Articles with editnotices 分类,而非条目会被加入到 Category:Pages with editnotices 分类。

編輯提示清單

技術細節

已隱藏部分未翻譯内容,歡迎參與翻譯

Anything put on the pages MediaWiki:Editnotice-0 through MediaWiki:Editnotice-15 (or Editnotice-100 through Editnotice-109) will appear as a 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 template {{editnotice load}} has been put on each of those MediaWiki namespace pages. The template causes each article to use a subpage specific to it as its editnotice rather than using a namespace-wide editnotice.

The editnotice load system uses two methods of storing the editnotices:

  • For User and User talk space the editnotice is stored as a subpage of the user or talk page named /Editnotice. This method allows users to edit these notices.
  • For all other namespaces and for user sub-pages the editnotice is stored as a subpage of Template:Editnotices. Template:Editnotices and its subpages are protected by the MediaWiki:Titleblacklist so that only admins and accountcreators can create and edit them.

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 main (article), File (image), MediaWiki, and Category. 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.

編輯導言

编辑导言与编辑提示类似,但使用不同的设计:

目前编辑导言只会在编辑整个页面或末段时才显示,编辑其他段落时则不会。

電郵提示

电邮提示允许已确认邮箱的注册用户自定义其在Special:电邮联系内显示的信息。该提示位于Special:我的用户页/Emailnotice下(使用范例)。在此次讨论过后,MediaWiki:Emailpagetext下的文字成为了默认提示信息。

撤除及各分類編輯提示

已隱藏部分未翻譯内容,歡迎參與翻譯

As of now, editnotices cannot be easily dismissed, there is a request (bug 15102) to allow this using cookie IDs, similarly to what is done with mediawiki:watchlist-details.

Per-category editnotices could be used to replace the edit intros for biographies of living people and disambiguation pages, which cannot be easily hidden and does not work for section editing. The resolution of bug 18596 should allow the use per-category editnotices.

歷史

由于是新系统[已过时],本页内容尚不全面。下面这些链接提供了更多相关信息:

相關模板

  • {{active editnotice}}
  • {{editnotice}} – 一個用於編寫編輯提示的模板。
  • {{editnotice pagename}} – 返回當前頁面名以用於編輯提示。
  • {{editnotice talkpagename}} – 返回當前討論頁面名以用於編輯提示。
  • {{editnotice explanation}} - 用於編輯提示的討論頁。說明編輯提示為何受到保護,並選擇性顯示一個CSS參數。
  • {{editnotice load}} – The template that is doing most of the editnotice loading and also displays the small "Group notice" and "Page notice" links.
  • {{editnotice loader}} – The old suggested extension to make the editnotice system user-friendly. Many of its features have over time been added to {{editnotice load}}.