MDC:MediaWiki Extensions
From MDC
- How to help: contents
- Lists
- Documentation wishlist
- Editing/review to do list
- Migration list
- Guides
- Getting started
- Writer's guide
- Writing interface reference documentation
- Page naming guide
- Disambiguation pages
- Localizing MDC
- Copyrights and licensing
- References
- Wiki markup reference
- Custom CSS classes
- Custom templates
- MediaWiki extensions
- External redirects
- Needs redirect
This page lists MediaWiki extensions that we have installed as part of the MDC wiki, and describes how to use them where required.
Contents |
[edit] Breadcrumb Navigation Extension
The MDC wikis have a custom extension that allows for the automatic generation of a breadcrumb navigation string on a page. To use it, simply add the following element (both open and close parts) to your wiki page:
<breadcrumbs></breadcrumbs>
[edit] Notes
- The breadcrumb extension does not work when added as a single empty element (ex:
<breadcrumbs/>). Both open and close parts of the element are necessary. - The breadcrumb extension currently has one bug:
- It does not work on pages that have no "subpage" part, so while it will work on a page named "JavaScript:Articles:Foobar", it will not work on a page where the title is just "JavaScript". We have encountered a new problem with this, and the fixes we thought were made need to be revisited.
[edit] Title Override Extension
The Title Override extension (courtesy of shaver) has been installed. This extension allows us to display page titles with underscores (which is not possible in the default MediaWiki setup).
As yet, this extension only changes the page title as displayed as part of the Breadcrumb navigation inserted by the Breadcrumbs extension. We will be working on modifying the wiki skin to enable full page titles to display underscores via this extension, but that functionality has not yet been added.
To use the title override, simply add the title as it should be displayed to the wiki page enclosed in "title-override" tags, as follows:
<title-override>MAX_VALUE</title-override>
The title-override value replaces the normal title displayed for the page, and is not processed to normalize case or remove special characters (like _).
You can see this extension in use on the MAX_VALUE page, for example.
[edit] Notes
- Due to technical limitations with the upgrade to MediaWiki1.5, this extension was changed from
<title>to<title-override>; Should you encounter a page with the old version of this extension, feel free to update it to this version.
[edit] RSS Feed Extension
MagpieRSS PHP extension and the Mafs/RSS MediaWiki extension have been installed.
[edit] Usage
- charset=
- The charset used by the feed.
iconvis used to convert this. - short
- Do not show the description/summary text for each item. ("long" is default).
- max=X
- Shows X most recent headlines.
- highlight= term1 term2
- The terms separated by a space are highlighted on display.
- filter= term1 term2
- Shows only RSS items containing at least one of the specified terms.
- reverse
- Displays the RSS items in reverse order.
[edit] Examples
TBD
[edit] Abbr Element Extension
The MDC has implemented an extension to allow the use of the <abbr>...</abbr> element in its pages. It should be used just like the standard HTML abbr Element, to define when a string of text is an abbreviation, and what it means. Many common HTML attributes are available here, (though not all). (title, id, class, lang, dir).
[edit] Example
The W3C have standardized HTML, the DOM, SVG and many other web-targeted technologies to date.