Jump to content

Extension:DismissableSiteNotice/pl

From mediawiki.org
This page is a translated version of the page Extension:DismissableSiteNotice and the translation is 15% complete.
Podręcznik rozszerzeń MediaWiki
DismissableSiteNotice
Status wydania: stabilne
Realizacja Skórka , MyWiki
Opis Allows users to close the site notice
Autor(zy) Brooke Vibberdyskusja
Ostatnia wersja continuous updates
Polityka zgodności Snapshots releases along with MediaWiki. Master nie jest kompatybilny wstecznie.
MediaWiki >= 1.43
Zmiany w bazie danych Nie
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie
  • $wgMajorSiteNoticeID
  • $wgDismissableSiteNoticeForAnons
Quarterly downloads 46 (Ranked 94th)
Public wikis using 2,711 (Ranked 188th)
Przetłumacz rozszerzenie DismissableSiteNotice jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

The DismissableSiteNotice extension allows users to close the site notice, using cookies.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie DismissableSiteNotice w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DismissableSiteNotice
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'DismissableSiteNotice' );
    
  • Configure as required.
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

This extension provides two configuration parameters:

$wgMajorSiteNoticeID
Integer. The value is stored inside a cookie. When a user decides to close the site notice, the current value of $wgMajorSiteNoticeID is saved as well, and the closed notice is not shown again. $wgMajorSiteNoticeID now can be incremented when a new text is set up as site notice. If $wgMajorSiteNoticeID has in-between been incremented, then the site notice is shown again, even if the user closed an older site notice before.
$wgDismissableSiteNoticeForAnons
This allows setting whether or not it should be possible for anonymous visitors of the wiki to dismiss the site notice shown. Defaults to "false". Available for MW 1.25 +

Użycie

When you add a new site notice and want everyone to see it, change the number on the created page "MediaWiki:Sitenotice id" by one (e.g., if it would be 5, you'd replace the page with the number 6 and so on).

The extension behavior is that it will remember the dismissal by the user and only reset after the number in MediaWiki:Sitenotice_id has been raised. This allows a wiki to make minor updates to a notice without causing it to show again for everybody.