< Layout Variables | Variables | Other Variables >
admins (advanced)
$EnableLinkPageRelative
$EnableLinkPlusTitlespaced
[[Name|+]]
will display the "Spaced Title". Default is to display the "Title" of the page. See the page PageVariables for {$Title}
and {$Titlespaced}
.
$PagePathFmt
array('{$Group}.$1', '$1.$1', '$1.{$DefaultName}')
$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:Same as $LinkPageCreateFmt, but used when the link text has a space in it.
$LinkPageSelfFmt
<a class='selflink' href='\$LinkUrl'>\$LinkText</a>
$LinkCategoryFmt
<a class='categorylink' href='\$LinkUrl'>\$LinkText</a>
$UrlLinkFmt
<a class='urllink' href='\$LinkUrl' title='\$LinkAlt' rel='nofollow'>\$LinkText</a>
$IMapLinkFmt
$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['obfuscate-mailto:']
$IMapLinkFmt['obfuscate-mailto:'] = "<span class='_pmXmail' title=\"\$LinkAlt\"><span class='_t'>\$LinkText</span><span class='_m'>\$LinkUrl</span></span>";
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.
$AddLinkCSS['othergroup'] = "''crossgroup''"; # add "''crossgroup''" class to wikilinks to other wikigroups @@
%hlt php%@@$AddLinkCSS['samedomain'] = "currentsite"; # add "currentsite" class to URL or Path links to resources on the same domain.
$InterMapFiles
$MakePageNameFunction
MakePageName()
, which converts strings into valid page names.
[[free link]]
into a page name. Currently the default sequence is"/'/" => '', # strip single-quotes "/[^$PageNameChars]+/" => ' ', # convert to spaces characters not allowed in pagenames '/((^|[^-\\w])\\w)/' => 'cb_toupper', # capitalize 1st letter of words '/ /' => '' # remove spaces
: :Note that if you change $MakePageNamePatterns, the documentation links may break. This can be fixed by re-setting $MakePageNamePatterns to the default in local/PmWiki.php
.
$MakePageNameSplitPattern
$WikiWordCountMax
$WikiWordCountMax
= 0; # disable WikiWord links
$WikiWordCountMax
= 1; # convert only first WikiWord
:$WikiWordCount:An array that allows the number of WikiWord conversions to be set on a per-WikiWord basis. The default is to use $WikiWordCountMax unless a value is set in this array. By default PmWiki sets
to limit the number of conversions of "PmWiki".
$WikiWordCount
['PmWiki']=1
$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;
$EnableRedirectQuiet
quiet=1
parameter for the redirect directive. On publicly edited wikis it is advisable not to enable quiet redirects.
$EnableRedirectQuiet
= 0; # disable quiet redirects (default)
$EnableRedirectQuiet
= 1; # enable quiet redirects with quiet=1
$EnableRedirectQuiet
= 2; # enable quiet redirects unless quiet=0
$QualifyPatterns
Qualify()
. The two default patterns rewrite links like [[Page]]
into [[Group/Page]]
, and page (text) variables like {$Title}
into {Group.Page$Title}
so that they work the same way in the source page and in the including page.
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.