Link Variables

« Layout Variables | PmWiki.Variables | Other Variables »

The maximum number of times to convert each Wiki Word encountered on a page. Defaults to 1,000,000. Common settings for this variable are zero (disable Wiki Word links) and one (convert only the first occurrence of each Wiki Word).
        $WikiWordCountMax = 0;     # disable Wiki Word links
        $WikiWordCountMax = 1;     # convert only first Wiki Word

:$WikiWordCount:An array that allows the number of WikiWord conversions to be set on a per-WikiWord basis. The default is to use $Wiki Word Count Max 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);
The (HTML) string to output for links to already existing wiki pages. Defaults to
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

:$LinkPageCreateSpaceFmt:Same as $Link Page Create Fmt, 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
The (HTML) string to output for URL-links that begin with ‘http:’, ‘ftp:’, etc. Defaults to
Name of a custom function to replace Make Page Name, which converts strings into valid page names.

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