Warning: Undefined array key "LinkedResourceExtras" in /usr/local/www/pmwiki/cookbook/sourceblock.php on line 335 Warning: Trying to access array offset on null in /usr/local/www/pmwiki/cookbook/sourceblock.php on line 335 Deprecated: Function strftime() is deprecated in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 195 Warning: Undefined array key "HTTP_REFERER" in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 394 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 394 Warning: Undefined array key 2 in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 395 Warning: Undefined array key 2 in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 397 Warning: Undefined variable $loc in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 424 Warning: Undefined variable $TotalCounterEnableGeoIP in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 437 Warning: Undefined array key "TotalCounterMaxItems" in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 584
SWUSB.LBX Examples |
PmWiki /
LinkVariables< Layout Variables | Variables | Other Variables > admins (advanced)
array('{$Group}.$1', '$1.$1', '$1.{$DefaultName}')
<a class='wikilink' href='\$LinkUrl'>\$LinkText</a>
<a class='createlinktext' href='\$PageUrl?action=edit'>\$LinkText</a>
<a class='createlink' href='\$PageUrl?action=edit'>?</a>
<a class='selflink' href='\$LinkUrl'>\$LinkText</a>
<a class='categorylink' href='\$LinkUrl'>\$LinkText</a>
<a class='urllink' href='\$LinkUrl' title='\$LinkAlt' rel='nofollow'>\$LinkText</a>
All InterMap links default to $UrlLinkFmt , unless there is a specific $IMapLinkFmt entry.
Examples of custom formats to allow different styling via classes:
Links to http: insecure 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>";
Note that if you have enabled ObfuscateLinkIMap (core function based on DeObMail), the snippet can be customized in:
$IMapLinkFmt['obfuscate-mailto:']
The default (for ObfuscateLinkIMap) is:
$IMapLinkFmt['obfuscate-mailto:'] = "<span class='_pmXmail' title=\"\$LinkAlt\"><span class='_t'>\$LinkText</span><span class='_m'>\$LinkUrl</span></span>";
The ObfuscateLinkIMap logic expects the snippet to have some recognisable properties -- classes, elements, otherwise it may not work. Start with the default snippet, make small modifications, and test if it works.
$WikiWordCount[=['PhD']=0; # Don't convert "PhD"=] $WikiWordCount['WikiWord']=5; # Convert WikiWord 5 times # the following lines keep a page from linking to itself $title = [=FmtPageName=]('$Title_',$pagename); $WikiWordCount[$title]=0;
Categories: PmWiki Developer < Layout Variables | Variables | Other Variables > This page may have a more recent version on pmwiki.org: PmWiki:LinkVariables, and a talk page: PmWiki:LinkVariables-Talk. |