PmWiki.InterMap 2.6 KB

12345678910
  1. version=pmwiki-2.1.11 ordered=1 urlencoded=1
  2. agent=Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.5) Gecko/20060723 Firefox/1.5.0.5
  3. author=
  4. csum=
  5. host=70.80.46.133
  6. name=PmWiki.InterMap
  7. rev=32
  8. targets=PmWiki.InterMap,PmWiki.WikiWikiWeb,Site.InterMap,PmWiki.CustomInterMap,PmWiki.DocumentationIndex
  9. text=%25audience%25 author (intermediate)%0aThe [[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.%0a%0aThe default ''intermap.txt'' distributed with PmWiki (in the ''scripts/'' directory) includes the following InterMap entries:%0a%0a PmWiki: http://www.pmwiki.org/wiki/PmWiki/ \\%0a Cookbook: http://www.pmwiki.org/wiki/Cookbook/ \\%0a Wiki: http://www.c2.com/cgi/wiki? \\%0a UseMod: http://www.usemod.com/cgi-bin/wiki.pl? \\%0a Meatball: http://www.usemod.com/cgi-bin/mb.pl? \\%0a Wikipedia: http://www.wikipedia.com/wiki/ \\%0a PITS: http://www.pmwiki.org/PITS/ \\%0a Path:%0a %0aThus, "PmWiki:Variables" becomes "http://www.pmwiki.org/wiki/PmWiki/" + "Variables," a link to the [[PmWiki.Variables->http://www.pmwiki.org/wiki/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. %0a%0aLike other links, you can use the double-bracket syntax to get different link text:%0a* [@[[Meatball:StartingPoints | starting points]] over at Meatball@] becomes "[[Meatball:StartingPoints | starting points]] over at Meatball"%0a* [@[[starting points -> Meatball:StartingPoints]] over at Meatball@] becomes "[[starting points -> Meatball:StartingPoints]] over at Meatball"%0a%0aIf you want to link just to what the intermap says (e.g. http://www.wikipedia.com/wiki/ for Wikipedia), then do [@[[Wikipedia:. | Wikipedia's main page]]@], which produces [[Wikipedia:. | Wikipedia's main page]]. Note the . (period) after the Map: reference.%0a%0aThe special [@Path:@] InterMap entry can be used to create "[[Cookbook:RelativeUrls|relative urls]]" in [[Cookbook:RelativeLinks|links]].%0a%0aThe 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.CustomInterMap]]s.%0a%0a%25trail%25%3c%3c|[[DocumentationIndex]]|>>
  10. time=1154219903