OpenWetWare:Software/Projects/Content Page Header: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
→Content of the header: color background on banner |
→Content of the header: ligther blue |
||
| Line 18: | Line 18: | ||
Content: | Content: | ||
<div style="background-color: # | <div style="background-color: #95e0ff"> | ||
[[Image:Check.gif]] Click [http://oww.wufoo.com/forms/openwetware-user-survey/ here] to take the OWW user survey and help improve OpenWetWare! | [[Image:Check.gif]] Click [http://oww.wufoo.com/forms/openwetware-user-survey/ here] to take the OWW user survey and help improve OpenWetWare! | ||
</div> | </div> | ||
Revision as of 00:14, 20 November 2007
Content Page Header
The header is to be displayed when specific pages or pages from specifis namespaces are displayed.
Status
wjf 10:33, 19 November 2007 (CST) Ready to be enabled
Content of the header
Julius has provided the notice:
From: Julius B. Luck's Talk Page
Content:
Click here to take the OWW user survey and help improve OpenWetWare!
Extension to Display Header
The extension to display a header uses the following:
http://www.mediawiki.org/wiki/Extension:PageNotice
The extension is currently loaded on OWW. It works as follows:
- If a specific header is available for a page to be displayed, it will use it.
- If no page header is present, the extensions checks for a global header for all pages within a namespace.
- I've also changed the code to only display a single header.
- If no header is displayed for other pages.
- I've disabled display of footers, also supported, in the extension.
Configuring Notices
To enable the extension, an entry is created for each page or namespace.
The namespace is identified via the MediaWiki numerical constant for it (see the table below for details):
- MediaWiki:top-notice-ns-0: set a notice for the (main) namespace.
- MediaWiki:top-notice-ns-2: set a notice for the User namespace.
- MediaWiki:top-notice-Main_Page: set a notice for the Main Page.
Namespace Name/Numbers
To use this function with other namespaces, the following is the list
| Name | Number |
|---|---|
| Main (default namespace) | 0 |
| Talk | 1 |
| User | 2 |
| User talk | 3 |
| Image | 6 |
| Image talk | 7 |
| MediaWiki | 8 |
| MediaWiki talk | 9 |
| Template | 10 |
| Template talk | 11 |
| Help | 12 |
| Help talk | 13 |
| Category | 14 |
| Category talk | 15 |
| Portal (OpenWetWare) | 100 |
| Portal talk (OpenWetWare Talk) | 101 |