PmWiki: InterMap

The InterMap is a system for defining links between WikiWikiWeb sites that was first developed by UseMod:UseModWiki and Meatball:MeatballWiki. InterMap links have the form HostPrefix:Page, 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 includes the following InterMap entries:
    
    PmWiki          http://www.pmichaud.com/wiki/PmWiki/
    Wiki            http://c2.com/cgi/wiki?
    Meatball        http://www.usemod.com/cgi-bin/mb.pl?
    UseMod          http://www.usemod.com/cgi-bin/wiki.pl?
    ISBN            http://www.amazon.com/exec/obidos/tg/detail/-/
    Wikipedia       http://www.wikipedia.com/wiki/
    Cookbook        http://www.pmwiki.org/wiki/Cookbook/$1

Thus, PmWiki:Variables becomes 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.

InterMap links can be used to link to non-wiki pages: ISBN:020171499X is a link to Amazon.com's entry for The Wiki Way by Bo Leuf and Ward Cunningham (an excellent book about WikiWikiWebs in general).

In addition, PmWiki provides four special InterMap links called ThisPage, ThisGroup, ThisWiki, and ThisSite. These provide URI-shortcuts to the current (wiki) page, WikiGroup, wiki site, or site root URI respectively. Some examples of each:

  ThisPage:?action=edit                  edits the current page
  ThisGroup:GroupAttributes?action=attr  link to set group passwords
  ThisWiki:?action=crypt                 builds an encrypted password
  ThisSite:/index.php                    link to /index.php on the current site

The actual set of InterMap links at any site is defined by the site administrator; for more details, see PmWiki.CustomInterMaps.

<< AdvancedTables | PmWiki.DocumentationIndex | SpecialMarkups >>

本頁更新於 2004 年 06 月 22 日,12:46 AM