User:PerfektesChaos/js/prettyPageHeading

JavaScript gadget – nicer presentation of page headlines, in particular on subpages: Copy&paste won’t be influenced; page name may be copied as usual.
 * Insertion of visual gaps around slashes  and after namespace   separator.
 * Namespace names on user interfaces other than English get a tooltip with translation.
 * Subpage components may be linked in every mode.
 * Within main namespace (articles) the title remains unchanged.
 * On pages with sophisticated DISPLAYTITLE the genuine format is kept.

Usage

 * If your project has registered this as a gadget, just activate on your Preferences page.
 * Otherwise include the following lines into your common.js, global.js etc.:

Linked components
On page view of a page with subpages the components are linked at a small line on top of the content area. In other modes, like source code editing, page history or info, no such links are provided by system.

With the  option in JavaScript components are linked, if not in main space, and the small bar on page view will vanish.

User options
has to be defined in JavaScript.

The default width of the spacing is  (25 % letter width or line height) and may be configured in two ways.

CSS
The following lines may be inserted into your common.css, global.css or skin dependant CSS. Any attribute value may be applied.

JavaScript
Another approach is to influence code generation directly as follows: It should appear on your common.js, global.js or skin dependant JS best before an  call as described in “Usage” section.

Other languages
This gadget is prepared for multilingual support.

Codes
de:User:PerfektesChaos/js/prettyPageHeading