Erweiterung:PageNotice
![]() Freigabestatus: stabil |
|
---|---|
Einbindung | Benachrichtigung |
Beschreibung | Lets you define a fixed header or footer message for each page or namespace |
Autor(en) | Daniel Kinzler (DuesentriebDiskussion) |
MediaWiki | 1.29+ |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | |
|
|
Quarterly downloads | 45 (Ranked 133rd) |
Übersetze die PageNotice-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
The PageNotice extension provides a way to create a fixed notice messages on the top or the bottom of
- a page (by individual page name), or
- entire namespaces (by Handbuch:Namensraum number).
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:
Verwendung
- 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)
Beispiele
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
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
PageNotice
im Ordnerextensions/
ablegen. - Folgenden Code am Ende der
LocalSettings.php
einfügen:wfLoadExtension( 'PageNotice' );
- Konfiguriere nach Bedarf.
Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Für Benutzer, die MediaWiki in der Version 1.33 und früher betreiben:
Die oben stehenden Anweisungen beschreiben die neue Installationsanweisung für diese Erweiterung unter der Verwendung von wfLoadExtension()
.
Wird diese Erweiterung in einer dieser früheren Versionen (MediaWiki 1.33 und früher) – an Stelle von wfLoadExtension( 'PageNotice' );
– installiert, benutze:
require_once "$IP/extensions/PageNotice/PageNotice.php";
Konfiguration
$wgPageNoticeDisablePerPageNotices
- If set to
true
, notices on the per-page level are disabled; only namespace level notices will appear. Der Standardwert istfalse
.
Siehe auch
- Erweiterung:Header Footer - Provides per-namespace or per-page header & footer inclusion without depending on any other extension.
- Handbuch:Schnittstelle/Seitenhinweis - The sitewide header notice, a standard MediaWiki feature.
![]() | Diese Erweiterung ist in den folgenden Paketen und/oder WikiFarmen beinhalten: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |