<< Layout Variables | PmWiki.Variables | Notify >>
admins (advanced)


The maximum number of times to convert each WikiWord encountered on a page.  Defaults to 1,000,000.  Common settings for this variable are zero (disable WikiWord links) and one (convert only the first occurrence of each WikiWord).

        $WikiWordCountMax = 0;     # disable WikiWord links
        $WikiWordCountMax = 1;     # convert only first WikiWord


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 $WikiWordCount(:cell PQA(PSS('PmWiki'):)=1 to limit the number of conversions of "PmWiki".

        $WikiWordCount['PhD']=0; # Don't convert "PhD"
        $WikiWordCount(:cell PQA(PSS('WikiWord'):)=5;  # Convert WikiWord 5 times
        # the following lines keep a page from linking to itself
        $title = FmtPageName('$Title_',$pagename);
        $WikiWordCount(:cell PQA(PSS($title):)=0;    



DocumentationToDo.  But look at Cookbook:PagePaths for some ideas.


The (HTML) string to output for links to already existing wiki pages.  Defaults to

        <a class='wikilink' href='\$LinkUrl'>\$LinkText</a>


The (HTML) string to output for links to non-existent wiki pages.  The default is to add a '?' after the link text with a link to the page edit/create form.  Defaults to

        <a class='createlinktext' href='\$PageUrl?action=edit'>\$LinkText</a>
        <a class='createlink' href='\$PageUrl?action=edit'>?</a>


Same as $LinkPageCreateFmt, but used when the link text has a space in it.


The (HTML) string to output for self-referencing links (i.e. links to the page itself).  Defaults to

        <a class='selflink' href='\$LinkUrl'>\$LinkText</a>


The (HTML) string to output for URL-links that begin with 'http:', 'ftp:', etc.  Defaults to

        <a class='urllink' href='\$LinkUrl'>\$LinkText</a>


an array of link formats for various link "schemes". Not set as default.
Examples of custom formats to allow different styling via classes:
Links to http: standard url links:

         $IMapLinkFmt(:cell PQA(PSS('http:'):) = "<a class='httplink urllink' href='\$LinkUrl'>\$LinkText</a>";  

Links to https: secure pages:

         $IMapLinkFmt(:cell PQA(PSS('https:'):) = "<a class='httpslink urllink' href='\$LinkUrl'>\$LinkText</a>";   

Links to PmWiki: InterMap shortcut:

         $IMapLinkFmt(:cell PQA(PSS('PmWiki:'):) = "<a class='pmwikilink urllink' href='\$LinkUrl'>\$LinkText</a>";

Links to Cookbook: InterMap shortcut

         $IMapLinkFmt(:cell PQA(PSS('Cookbook:'):) = "<a class='cookbooklink urllink' href='\$LinkUrl'>\$LinkText</a>";


An array consisting a list of files and pages containing InterMap entries to be loaded (see CustomInterMap).


Name of a custom function to replace MakePageName(), which converts strings into valid page names.


$MakePageNamePatterns is an array of regular expression replacements that is used to map the page link in a free link such as [[free link]] into a page name. Currently the default sequence is:
    "/'/" => '',                           # strip single-quotes
    "/[^$PageNameChars]+/" => ' ',         # convert non-alnums to spaces
      => "strtoupper('$1')",               # initial caps after spaces
    "/ /" => ''                            # strip spaces


Page last modified on May 06, 2006, at 03:50 AM