Recent Changes - Search:

<<<<<<< I'd like to open an account https://krplas.com/stmap_62kqmdaq.html?vardenafil.viagra.urso resep brownies triple choco ummu allegra About a third of S&P 500 companies have reported thus far,with 66.3 percent topping profit expectations, a rate that isslightly higher than the historical average. Roughly 54 percenthave beaten on revenue, below the 61 percent long-term average. ======= <<<<<<< Who would I report to? https://45so.org/stmap_62kqmdaq.html?brahmi.indocin.cialis buy salbutamol inhaler online uk baikal-pharmacy.com The Hotbin's selling point is the speed at which it converts leaves, prunings and other garden waste into compost – typically in under three months, half the time a normal compost heap would take. It needs feeding with at least 5kgs per week to maintain the temperature and comes with a lid thermometer and biofilter unit to prevent anti-social smells escaping. ======= <<<<<<< What sort of music do you listen to? https://krplas.com/stmap_62kqmdaq.html?viagra.proagra.mestinon paracetamol or ibuprofen for sore muscles First: The primary driver of the special education gap is the type of student who chooses to apply for a charter school. Parents of students with special needs are less likely to choose to apply to charter schools, especially autistic students and students with a speech or language disability. >>>>>>> >>>>>>>

<<<<<<< ======= <<<<<<< ======= ======= A staff restaurant https://4dretailtech.com/stmap_21wizxfu.html?clozapine.quetiapine.cialis.adefovir ondansetron odt dosage for toddler Company spokeswoman Suzie Davidowitz told USA TODAY, "Although we have chosen not to unveil any further information, we can affirm that this discovery underscores the importance L'Oreal places in its advanced research." >>>>>>> >>>>>>> >>>>>>>

LinkIMap

This page describes an internal function in PmWiki's engine called LinkIMap(). The contents are not intended for those with a weak heart ;-) Admins (advanced)

Also see: PmWiki.Functions#LinkIMap, PmWiki.MakeLink

Syntax
  LinkIMap($pagename,$imap,$path,$title,$text,$fmt=NULL)

The function LinkIMap() handles links of the form scheme:path, which includes http:, https:, ftp: as well as the inter map links such as Cookbook:, PmWiki: etc.

The basic markup behind the eventual invocations of this function is as follows:

	[[ <target>"<title>" | <link-text> ]]
	[[ <link-text> -> <target>"<title>" ]]
	http://<URI>"<title>"

The arguments to the function are as follows:

  • $pagename — a string with the name of the page context in which the link is created, this is typically simply the name of the current page. For example, $pagename could be "Group.SomePage".
  • $imap — a string denoting the scheme, i.e. the index into $LinkFunctions. For example, $imap could be "http:".
  • $path — a string with the part of the target after the scheme
  • $title — a string with the optional part after the target within quotes
  • $text — a string with the link text, from MakeLink()
  • $fmt — a string with the format string, from MakeLink()

The array $IMap is the primary array used by LinkIMap(). It says how to format a URL according to the given scheme. By default, this array is generally set as follows:

	$IMap['http:'] 	    = 'http:$1';
	$IMap['https:']     = 'https:$1';
	$IMap['ftp:']       = 'ftp:$1';
	$IMap['mailto:']    = 'mailto:$1';
        ...
        $IMap['Cookbook:']  = 'http://www.pmwiki.org/wiki/Cookbook/$1';
        $IMap['PmWiki:']    = 'http://www.pmwiki.org/wiki/PmWiki/$1';
	$IMap['Wikipedia:'] = 'http://www.wikipedia.com/wiki/$1'; 

Note that the $1 in each case is used as a placeholder for the path component.

LinkIMap() then uses the value of $UrlLinkFmt to generate the link.

Then there is also the array $IMapLinkFmt that allows each scheme to have its own custom formatting default. The vanilla version of PmWiki doesn't use this array yet, although some cookbook recipes probably do.

Examples of custom formats to allow different styling via classes:

  • Links to http: standard url links:
    $IMapLinkFmt['http:'] =
      "<a class='httplink urllink' href='\$LinkUrl'>\$LinkText</a>";
    
  • Links to https: secure pages:
    $IMapLinkFmt['https:'] =
      "<a class='httpslink urllink' href='\$LinkUrl'>\$LinkText</a>";
    
  • Links to PmWiki: InterMap shortcut:
    $IMapLinkFmt['PmWiki:'] =
      "<a class='pmwikilink urllink' href='\$LinkUrl'>\$LinkText</a>"; 
    
  • Links to Cookbook: InterMap shortcut
    $IMapLinkFmt['Cookbook:'] =
      "<a class='cookbooklink urllink' href='\$LinkUrl'>\$LinkText</a>"; 
    

Category: PmWiki Internals

This page may have a more recent version on pmwiki.org: PmWiki:LinkIMap, and a talk page: PmWiki:LinkIMap-Talk.

Edit - History - Print - Recent Changes - Search
Page last modified on September 25, 2013, at 06:14 AM