Extension:PageNotice/sv
From Linux Web Expert
PageNotice Utgivningsstatus: stabil |
|
---|---|
Genomförande | Underrätta |
Beskrivning | Låter dig definiera en fixerad toppruta eller bottenruta för varje sida eller namnrymd |
Författare | Daniel Kinzler (Duesentriebtalk) |
MediaWiki | 1.29+ |
Licenser | Ingen angiven licens |
Ladda ner | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Översätt tillägget PageNotice om det finns tillgängligt på translatewiki.net | |
Ärenden | Öppna ärenden · Rapportera en bugg |
Tillägget PageNotice möjliggör ett sätt att skapa fixerade notiser längst upp eller ner på
- an entire namespace (by Namespace number)
- an individual page (by page name, if the extension is configured to allow it)
Användning
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:
- The top notice for page XXX goes in
[[MediaWiki:top-notice-XXX]]
. - The bottom notice for page XXX goes in
[[MediaWiki:bottom-notice-XXX]]
.
Exempel
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 a new page named:
- [[mediawiki:top-notice-ns-0]]
- Add the 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 in the main namespace:
- Create a new page named:
- [[mediawiki:bottom-notice-ns-0]]
- Add the page contents:
<div style="margin-left: 1em; border: 1px solid #1DA0E7; background: #B3DDF4;">'''''Welcome to this wiki - you can edit every page!'''''</div>
- Result looks like this:
- Welcome to this wiki - you can edit every page!
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/PageNotice/sv</tvar>|Download]] and move the extracted <tvar name=name>
PageNotice/sv
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageNotice%2Fsv - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'PageNotice/sv' );
- Konfigurera efter behov.
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Konfigurering
$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
.
Se även
- 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.
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
File:OOjs UI icon information-progressive.svg |
This message box is using an invalid "type=notify" parameter and needs fixing.
Categories:
- Pages with script errors
- Pages with syntax highlighting errors
- Pages with broken file links
- Stable extensions/sv
- Notification extensions/sv
- Extensions with manual MediaWiki version
- Extensions with no license specified/sv
- Extensions in Wikimedia version control/sv
- All extensions/sv
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/sv
- Headers and footers extensions/sv