« Layout Variables | PmWiki.Variables | Notify » admins (advanced)
$WikiWordCountMax
$WikiWordCountMax
= 0; # disable Wiki Word links
$WikiWordCountMax
= 1; # convert only first Wiki Word
$WikiWordCount
$WikiWordCountMax
unless a value is set in this array. By default PmWiki sets $WikiWordCount
[‘PmWiki’]=1
to limit the number of conversions of “PmWiki”.
$WikiWordCount
['PhD']=0; # Don't convert "PhD"
$WikiWordCount
[‘Wiki Word’]=5; # Convert Wiki Word 5 times
# the following lines keep a page from linking to itself
$title = FmtPageName(‘$Title_’,$pagename);
$WikiWordCount
[$title]=0;
$PagePathFmt
$LinkPageExistsFmt
<a class=‘wikilink’ href=‘\$LinkUrl’>\$LinkText</a>
$LinkPageCreateFmt
<a class=‘createlinktext’ href=‘\$PageUrl?action=edit’>\$LinkText</a> <a class=‘createlink’ href=‘\$PageUrl?action=edit’>?</a>
$LinkPageCreateSpaceFmt
$LinkPageCreateFmt
, but used when the link text has a space in it.
$LinkPageSelfFmt
<a class=‘selflink’ href=‘\$LinkUrl’>\$LinkText</a>
$UrlLinkFmt
<a class=‘urllink’ href=‘\$LinkUrl’>\$LinkText</a>
$IMapLinkFmt[‘http:’] = “<a class=‘httplink urllink’ href=‘\$LinkUrl’>\$LinkText</a>”;
$IMapLinkFmt[‘https:’] = “<a class=‘httpslink urllink’ href=‘\$LinkUrl’>\$LinkText</a>”;
$IMapLinkFmt[‘PmWiki:’] = “<a class=‘pmwikilink urllink’ href=‘\$LinkUrl’>\$LinkText</a>”;
$IMapLinkFmt[‘Cookbook:’] = “<a class=‘cookbooklink urllink’ href=‘\$LinkUrl’>\$LinkText</a>”;
$MakePageNameFunction
[[free link]]
into a page name. Currently the default sequence is: "/'/" => '', # strip single-quotes "/[^$PageNameChars]+/" => ' ', # convert non-alnums to spaces "/((^|[^-\\w])\\w)/e" => "strtoupper('$1')", # initial caps after spaces "/ /" => '' # strip spaces