Extension:DismissableSiteNotice/pl
Appearance
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. |
| Zmiany w bazie danych | Nie |
| Licencja | Licencja GNU General Public License 2.0 lub nowsza |
| Pobieranie | |
|
|
| 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
DismissableSiteNoticew folderzeextensions/.
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.
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.
| To rozszerzenie jest wykorzystywane przez jeden lub więcej projektów Wikimedia. Oznacza to prawdopodobnie, że to rozszerzenie jest stabilne i działa wystarczająco dobrze, aby wykorzystywać je na stronach o dużym natężeniu ruchu. Odnajdź nazwę tego rozszerzenia w plikach konfiguracyjnych Wikimedia CommonSettings.php oraz InitialiseSettings.php, aby zobaczyć gdzie są zainstalowane. Pełną listę rozszerzeń zainstalowanych na określonej wiki można znaleźć na stronie Special:Version na danej wiki. |
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: To nie jest pełna lista. Niektóre farmy/hosty wiki lub pakiety mogą zawierać to rozszerzenie nawet jeśli nie są one tutaj wymienione. Zawsze sprawdzaj swoje farmy/hosty wiki, aby to potwierdzić. |
Categories:
- Stable extensions/pl
- Skin extensions/pl
- Personalization extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/pl
- SiteNoticeAfter extensions/pl
- All extensions/pl
- Extensions used on Wikimedia/pl
- Extensions included in Canasta/pl
- Extensions included in Miraheze/pl
- Extensions included in ProWiki/pl
- Extensions included in ShoutWiki/pl
- Extensions included in Telepedia/pl
- Extensions included in wiki.gg/pl
- Extensions included in WikiForge/pl
