version=pmwiki-2.0.beta55 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 author=Pm host=24.1.26.255 name=PmWiki.CustomInterMap rev=13 targets=PmWiki.WikiAdministrator,PmWiki.InterMap,PmWiki.PmWiki,PmWiki.Upgrades,PmWiki.MailPosts,PmWiki.DocumentationIndex,PmWiki.CustomMarkup text=(:title Custom InterMap:)%0a!!Introduction%0a%0aThis page describes how a [[wiki administrator]] can create additional [[InterMap]] links.%0a%0aThe file ''intermap.txt'' in the ''scripts/'' directory specifies the default InterMap links that are distributed with PmWiki. Each line of ''intermap.txt'' has the following format:%0a%0a->[@MapPrefix http://www.somehost.com/partial/url/@]%0a%0aFor example, @@intermap.txt@@ has the following entries:%0a%0a-> [@%0aISBN http://www.amazon.com/exec/obidos/ASIN/%0aIMDB http://www.imdb.com/find?q=%0aMeatball http://www.usemod.com/cgi-bin/mb.pl?%0aPmWiki http://www.pmichaud.com/wiki/PmWiki/%0aUseMod http://www.usemod.com/cgi-bin/wiki.pl?%0aWiki http://c2.com/cgi/wiki?%0aWikipedia http://www.wikipedia.com/wiki/%0a@]%0a%0aTo create your own InterMap links, ''do not edit the ''intermap.txt'' file directly!'' You'll lose your changes when you do a PmWiki.[[Upgrade(s)]]. Instead, create a file called ''localmap.txt'' in the ''local/'' subdirectory containing your InterMap links in the format described above. PmWiki will automatically read your links after loading the ''intermap.txt'' entries.%0a%0aYou can also define InterMap entries where the text of the entry is substituted into the middle of the URL. Just include '$1' in the URL where you want the substitution to take place. For example:%0a%0a->[@Jargon http://www.catb.org/~esr/jargon/html/$1.html@]%0a%0awould cause [@Jargon:F/feature-creep@] to be converted to [@http://www.catb.org/~esr/jargon/html/F/feature-creep.html@]. %0a%0a%0a!! Variables and [=InterMap=] Links%0a%0aIt is possible to use variables together with the `URLs in the InterMap%0aentries. For instance, you can add something like this to your ''local/localmap.txt'' file, creating [@ThisWiki:@] and [@ThisPage:@] shortcuts:%0a%0a-> [@%0aThisWiki $ScriptUrl%0aThisPage $PageUrl%0a@]%0a%0a%0a!! [=InterMap=] Links in a Farm%0a%0aNote that if you want to use InterMap links in a farm. The file to put into the Farm local directory is ''farmmap.txt'', and not ''localmap.txt''%0a%0a%25trail%25%3c%3c|[[DocumentationIndex]]|>> time=1125517767 title=Custom InterMap