Extension:DismissableSiteNotice/pl
Appearance
From mediawiki.org
This page is a translated version of the page Extension:DismissableSiteNotice and the translation is 14% complete.
Status wydania: stabilne |
|
|---|---|
| Realizacja | Skórka , MyWiki |
| Opis | Allows users to close the site notice |
| Autor(zy) | Brooke Vibber dyskusja |
| Ostatnia wersja | continuous updates |
| Polityka zgodności | Snapshots releases along with MediaWiki. Master nie jest kompatybilny wstecznie. |
| Zmiany w bazie danych | Nie |
|
|
| Licence | 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:cdextensions/ gitclonehttps://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:Versionna 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.
Categories:
- Stable extensions/pl
- Skin extensions/pl
- Personalization extensions/pl
- SiteNoticeAfter extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/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 Weird Gloop/pl
- Extensions included in wiki.gg/pl