Visit Mozilla.org

MDC:Rozšíření MediaWiki

Z MDC

Tato stránka není ještě zcela přeložena. Pomozte nám ji prosím dopřeložit.

Obsah
Jak pomoci
Návody
Jak začít
Průvodce překladatele
Názvy stránek
Autorská práva
Příručky
Příručka Wiki
Vlastní CSS třídy
Vlastní šablony
Rozšíření MediaWiki
Externí přesměrování


This page lists what MediaWiki extensions we have installed as part of the MDC wiki, and describes how to use them where required.

Obsah

[editovat] 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>

[editovat] Notes

  1. 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.
  2. The breadcrumb extension currently has one bug:
    1. 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.

[editovat] 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.

[editovat] 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.

[editovat] RSS Feed Extension

MagpieRSS PHP extension and the Mafs/RSS MediaWiki extension have been installed.

[editovat] Usage

charset=
The charset used by the feed. iconv is 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.

[editovat] Examples

TBD

[editovat] 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).

[editovat] Example

The W3C have standardized HTML, the DOM, SVG and many other web targetted technologies to date.