Extension:PageNotice/dtp
Appearance
Release status: stable |
|
|---|---|
| Implementation | Notify |
| Description | Lets you define a fixed header or footer message for each page or namespace |
| Author(s) | Daniel Kinzler (Duesentriebpibarasai) |
| MediaWiki | 1.29+ |
|
|
| License | GNU General Public License 2.0 or later |
| Download | |
| Translate the PageNotice extension if it is available at translatewiki.net | |
| Issues | Open tasks · Report a bug |
The PageNotice extension provides a way to create a fixed notice message on the top or the bottom of either:
- do koinsanai ngaranliwang (do numbul Namespace)
- bolikan sosongulun (miampai ngaran bolikan, nung lolombus nopo nga configurasi do papasaga iri)
Usage
Wiki administrators can define a page notice by creating a new page in MediaWiki namespace following a special page-naming pattern, and then writing the notice in that new page.
- The top notice for pages in namespace NN goes in
[[MediaWiki:top-notice-ns-NN]](where NN is the numeric namespace ID). - The bottom notice for pages in namespace NN goes in
[[MediaWiki:bottom-notice-ns-NN]](where NN is the numeric namespace ID).
If enabled:
- Nutis tasawat kopio do bolikan XXX koongoi id
[[MediaWiki:top-notice-XXX]]. - Saralon nutis montok bolikan XXX koongoi id
[[MediaWiki:bottom-notice-XXX]].
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:
- Wonsoyo ngaran bolikan waguː
- [[mediawiki:top-notice-ns-0]]
- Ruhangan do tonsi bolikanː
'''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 in the main namespace:
- Wonsoyo ngaran bolikan waguː
- [[mediawiki:bottom-notice-ns-0]]
- Ruhangan do tonsi bolikanː
<div style="margin-left: 1em; color: var(--color-base, #202122); background: var(--background-color-content-added, #a3d3ff)">'''''Welcome to this wiki - you can edit every page!'''''</div>
- Result looks like this:
- Welcome to this wiki - you can edit every page!
Installation
- Download om powili'o file(s) dii id direktori kingaran
PageNoticeid suang folderextensions/nu.
Momomoburu om mongunguhup kod minog do papadakat do lolombus from Git suai ko, momoguno:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageNotice
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'PageNotice' );
- Configure as required.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
$wgPageNoticeDisablePerPageNotices- If set to
true, notices on the per-page level are disabled; only namespace level notices will appear. The default value isfalse. - On Wikimedia wikis this is set to
true.
See also
- Extension:Header_Footer - Provides per-namespace or per-page header & footer inclusion without depending on any other extension.
- Manual:Interface/Sitenotice - The sitewide header notice, a standard MediaWiki feature.
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Stable extensions/dtp
- Notification extensions/dtp
- ArticleViewFooter extensions/dtp
- ArticleViewHeader extensions/dtp
- GPL licensed extensions/dtp
- Extensions in Wikimedia version control/dtp
- All extensions/dtp
- Extensions used on Wikimedia/dtp
- Extensions included in Miraheze/dtp
- Headers and footers extensions/dtp
