Inter Map


[-edit SideBar-]

Inter Map

%define=trail bgcolor=#eee block%%define=note font-style=italic color=green%%define=important block bgcolor=#fcc border='1px solid black' padding=5px%%define=audience class='frame rfloat' font-size:smaller bgcolor=#ffffcc%
%audience% author (intermediate)
The InterMap is a system for defining links between WikiWikiWeb sites that was first developed by UseMod:UseModWiki and Meatball:MeatballWiki. The method is to use a word that stands for a path that is defined. InterMap links have the form MapPrefix:PagePath, where the host prefix is converted to a partial URL based on entries in the site's intermap.txt and localmap.txt files.

The default intermap.txt distributed with PmWiki (in the scripts/ directory) includes the following InterMap entries:

Cookbook: http:
UseMod: http:
Wikipedia: http:

Thus, "PmWiki:Variables" becomes "" + "Variables," a link to the PmWiki.Variables page on the official PmWiki web site, Wiki:FrontPage is a link to the front page of the first WikiWikiWeb, and Wikipedia:Stonehenge takes you to the Wikipedia article about the famous megaliths in England.

Like other links, you can use the double-bracket syntax to get different link text:

If you want to link just to what the intermap says (e.g. for Wikipedia), then do [[Wikipedia:. | Wikipedia's main page]], which produces Wikipedia's main page. Note the . (period) after the Map: reference.

The special Path: InterMap entry can be used to create "relative urls" in links.

The actual set of InterMap links at any site is defined by the site administrator via the Site.InterMap* page and the local/localmap.txt file; for more details, see PmWiki.CustomInterMaps.

%trail%<< | DocumentationIndex | >>

Recent Changes (All) | Edit SideBar Page last modified on July 30, 2006, at 02:38 AM Edit Page | Page History
Powered by TechnoloWiki