跳至內容

維基百科:編輯提示

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

編輯提示是在編輯頁面的時候編輯框上方的提示資訊。所有使用者都可以在他們的使用者頁面和使用者討論頁使用自己的提示資訊。而在其他命名空間的編輯提示則只能由自動確認使用者建立和編輯。

在了解和使用編輯提示之前,您應當對命名空間的概念有所了解。

有一些提示資訊並非編輯提示,而是系統介面的資訊。

編輯提示連結

當您編輯一個頁面時,您會看到編輯框上方有或紅或藍的連結,比如:

或者這樣:

這些連結指向這個頁面的編輯提示。因為管理員可以建立它們,因此即使它們都不存在,管理員也總能看到這兩個連結。同樣地,一般的使用者只能在他們自己的使用者頁面和使用者討論頁看到紅色的「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: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: (草稿頁) Template:Editnotices/Namespace/Draft
119 Draft talk: (草稿討論頁) Template:Editnotices/Namespace/Draft talk
710 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}}.