Extension:PageNotice/pl

From mediawiki.org
This page is a translated version of the page Extension:PageNotice and the translation is 4% complete.
Podręcznik rozszerzeń MediaWiki
PageNotice
Status wydania: stabilne
Realizacja Powiadomienia
Opis Lets you define a fixed header or footer message for each page or namespace
Autor(zy) Daniel Kinzler (Duesentriebdyskusja)
MediaWiki 1.29+
Licencja GNU General Public License 2.0 or later
Pobieranie
  • $wgPageNoticeDisablePerPageNotices
Quarterly downloads 44 (Ranked 130th)
Przetłumacz rozszerzenie PageNotice jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

The PageNotice extension provides a way to create a fixed notice messages on the top or the bottom of

You can define new fixed MediaWiki messages by creating new pages following a special page-naming pattern to hold that message, and then creating your desired message as the contents of that new page:

Usage

  • top notice for page XXX goes in [[MediaWiki:top-notice-XXX]]
  • bottom notice for page XXX goes in [[MediaWiki:bottom-notice-XXX]]
  • top notice for pages in namespace NNN goes in [[MediaWiki:top-notice-ns-NNN]] (where NNN is the numeric namespace ID)
  • bottom notice for pages in namespace NNN goes in [[MediaWiki:bottom-notice-ns-NNN]] (where NNN is the numeric namespace ID)

Examples

This will put the phrase: "Welcome to this wiki - you can edit every page!" at the top of every page in the main namespace:

Create New Page, name:
[[mediawiki:top-notice-ns-0]]
Create new page contents:
Welcome to this wiki - you can edit every page!

This will put a blue banner saying "Welcome to this wiki - you can edit every page!" at the bottom of every page:

Create New Page, name:
[[mediawiki:bottom-notice-ns-0]]
Create new page contents:
{| cellspacing="5" cellpadding="0" style="margin: 0em 0em 1em 0em; border: 1px solid #1DA0E7;  background: #B3DDF4; width: 100%"
| '''''Welcome to this wiki - you can edit every page!'''''
|}
Result looks like this:
Welcome to this wiki - you can edit every page!

Installation

  • Pobierz i umieść plik(i) w katalogu o nazwie PageNotice w folderze extensions/.
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'PageNotice' );
    
  • Configure as required.
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Do użytkowników używających wersji MediaWiki 1.33 lub wcześniejszej:

Powyższe instrukcje opisują nowy sposób instalowania tego rozszerzenia z wykorzystaniem wfLoadExtension(). Jeżeli chcesz zainstalować to rozszerzenie we wcześniejszych wersjach (MediaWiki 1.33 i wcześniejsze), zamiast wfLoadExtension( 'PageNotice' ); użyj:

require_once "$IP/extensions/PageNotice/PageNotice.php";

Configuration

$wgPageNoticeDisablePerPageNotices
If set to true, notices on the per-page level are disabled; only namespace level notices will appear. The default value is false.

Zobacz też