diff options
author | release <release@524c5546-5005-0410-9a3e-e25e191bd360> | 2009-03-28 21:54:24 +0000 |
---|---|---|
committer | release <release@524c5546-5005-0410-9a3e-e25e191bd360> | 2009-03-28 21:54:24 +0000 |
commit | c2e75f97c1c6204ec89c3352d68fbcfa89250e7c (patch) | |
tree | ad4fa4a9a9bbd392fbeb9230f4be36f0edf9ab63 /wikilib.d/PmWiki.InterMap | |
parent | b67cc5ae5694e84978815a561513301a6dc0499c (diff) | |
download | pmwiki.svn-c2e75f97c1c6204ec89c3352d68fbcfa89250e7c.tar.bz2 |
git-svn-id: svn://pmwiki.org/pmwiki/trunk@2303 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'wikilib.d/PmWiki.InterMap')
-rw-r--r-- | wikilib.d/PmWiki.InterMap | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wikilib.d/PmWiki.InterMap b/wikilib.d/PmWiki.InterMap index 9a5b49f2..bb960736 100644 --- a/wikilib.d/PmWiki.InterMap +++ b/wikilib.d/PmWiki.InterMap @@ -1,11 +1,11 @@ -version=pmwiki-2.2.0 ordered=1 urlencoded=1 +version=pmwiki-2.2.1 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081216 Ubuntu/8.04 (hardy) Firefox/2.0.0.19 author=Petko charset=ISO-8859-1 -csum=-selflink +csum=fix included site.intermap host=81.65.14.164 name=PmWiki.InterMap -rev=42 +rev=43 targets=PmWiki.WikiWikiWeb,Site.InterMap,PmWiki.CustomInterMap -text=(:Summary: Interwiki links definition and use:)%0a(:Audience: author (intermediate) :)%0a%0aThe InterMap (also called InterWiki in some other wikis) 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%0a[[#custominclude]]%0aThe default ''intermap.txt'' distributed with PmWiki (in the ''scripts/'' directory) includes the following InterMap entries:%0a>>pre%3c%3c%0a PmWiki: http://pmwiki.org/wiki/PmWiki/ %0a Cookbook: http://pmwiki.org/wiki/Cookbook/ %0a Wiki: http://c2.com/cgi/wiki? %0a UseMod: http://usemod.com/cgi-bin/wiki.pl? %0a Meatball: http://usemod.com/cgi-bin/mb.pl? %0a Wikipedia: http://wikipedia.com/wiki/ %0a PITS: http://pmwiki.org/PITS/ %0a Path:%0a>>%3c%3c%0a%0a[[{$SiteGroup}.InterMap]] includes the following entries%0a(:include {$SiteGroup}.InterMap#include#includeend:)%0a[[#customincludeend]]%0a%0aThus, "PmWiki:Variables" becomes "http://pmwiki.org/wiki/PmWiki/" + "Variables," a link to the [[PmWiki.Variables->http://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(:markup class=horiz:)%0a* [[Meatball:StartingPoints | starting points]] over at Meatball%0a* [[starting points -> Meatball:StartingPoints]] over at Meatball%0a(:markupend:)%0a%0aIf you want to link just to what the intermap says (e.g. http://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 -time=1234644783 +text=(:Summary: Interwiki links definition and use:)%0a(:Audience: author (intermediate) :)%0a%0aThe InterMap (also called InterWiki in some other wikis) 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%0a[[#custominclude]]%0aThe default ''intermap.txt'' distributed with PmWiki (in the ''scripts/'' directory) includes the following InterMap entries:%0a>>pre%3c%3c%0a PmWiki: http://pmwiki.org/wiki/PmWiki/ %0a Cookbook: http://pmwiki.org/wiki/Cookbook/ %0a Wiki: http://c2.com/cgi/wiki? %0a UseMod: http://usemod.com/cgi-bin/wiki.pl? %0a Meatball: http://usemod.com/cgi-bin/mb.pl? %0a Wikipedia: http://wikipedia.com/wiki/ %0a PITS: http://pmwiki.org/PITS/ %0a Path:%0a>>%3c%3c%0a%0a(:if exists {$SiteGroup}.InterMap:)%0a[[{$SiteGroup}.InterMap]] includes the following entries:%0a(:include {$SiteGroup}.InterMap#include#includeend:)%0a(:else:)%0aYou can map your own prefixes in your local page [[{$SiteGroup}.InterMap]].%0a(:ifend:)%0a[[#customincludeend]]%0a%0aThus, "PmWiki:Variables" becomes "http://pmwiki.org/wiki/PmWiki/" + "Variables," a link to the [[PmWiki.Variables->http://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(:markup class=horiz:)%0a* [[Meatball:StartingPoints | starting points]] over at Meatball%0a* [[starting points -> Meatball:StartingPoints]] over at Meatball%0a(:markupend:)%0a%0aIf you want to link just to what the intermap says (e.g. http://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 +time=1238272290 |