Link macro creates a link to a page with optional html attributes. The main usage of this macro is to add accesskeys support for page links in your FrontPage.

(!) In moin 1.6.1, it will be possible to use [[target|label|accesskey=1]] to define "1" as access key to jump to target.

See also MoinMoinExtensions/HotKeys.

Example usage:

[[Link(Frequently Asked Questions, accesskey="5")]]

This will create the link Frequently Asked Questions, but with accesskey 5, so users with disabilities can will get your FAQ page when they use the shortcut Alt+5 (Control+5 on Mac), as they expect.

If a localized version page exists on your wiki, for example, for Hebrew users שאלות שכיחות, then the link will point to the localized name for Hebrew users, and to Frequently Asked Questions for English users or for users that does not have a localized version of the page. When you define an accesskey with the link, it will be localized too - disabled users will get the localized page.

See UK Government accesskeys standard for common accesskeys usage.

Download

Link.py

MoinMoin: MacroMarket/Link (last edited 2008-01-24 21:31:27 by ThomasWaldmann)