Jump to content

Manual:Antara muka/Notis tapak

From mediawiki.org
This page is a translated version of the page Manual:Interface/Sitenotice and the translation is 17% complete.
Outdated translations are marked like this.

MediaWiki:Sitenotice terpapar di atas tajuk laman untuk semua pengguna, melainkan ia digantikan oleh pemberitahuan lain.

Mesej dipaparkan jika ia ditakrifkan. 'Ditakrifkan' bermaksud notis tapak mempunyai kandungan lebih daripada satu aksara tunggal '-'.

Which notice is displayed for a user is decided in this order:

  1. If the CentralNotice extension is enabled, it may add a banner before the sitenotice. CentralNotice banners do not replace the sitenotice, read more below.
  2. If the user is not logged-in with an account, MediaWiki:Anonnotice is displayed (if enabled).
  3. Otherwise, MediaWiki:Sitenotice is displayed (if enabled).
  4. Otherwise, the message configured in $wgSiteNotice is displayed (if enabled).
  5. If MediaWiki:Namespacenotice-* is enabled (where * is the namespace number of the current page), then the namespace notice will be added after the site notice.
  6. Otherwise, no notice is displayed.

Menolak

If Extension:DismissableSiteNotice is installed, registered users can hide any site notice by clicking [abaikan] on the notice. For an individual user to recover a previously dismissed site notice, they should delete the cookie dismissSiteNotice for www.mediawiki.org in their browser.

To show the site notice again, even for those who have dismissed it, sysops should increment the number in MediaWiki:Sitenotice id (this redisplays the notice for everyone regardless of whether the actual notice has been edited or not).

CentralNotice (Notis pusat)

Sambungan CentralNotice (Notis pusat) menggantikan atau mengambil alih kesemua notis yang lain. Mesejnya disunting melalui suatu antara muka pada wiki "perumah", contohnya meta:Special:CentralNotice. The banners are edited from a central wiki, for example, meta:Special:CentralNotice.

Mobile

The MinervaNeue skin (used by the MobileFrontend extension) only shows site notices when $wgMinervaEnableSiteNotice is set to true (which is now the default since MediaWiki 1.36). Individual notices can be selectively hidden on mobile using the nomobile class.

Hooks

The site notice can be modified by extensions/skins via the SiteNoticeBefore and SiteNoticeAfter hooks.

Lihat juga