Recent Changes
Printable View
Page History
Edit Page
Describe Side Bar here.

<< Layout Variables | Variables | Edit Variables >>

The variables on this page control the formatting of links within wiki pages, such as WikiWords and URL-links. The settings of these variables should be performed in Local Customizations.

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

An array that allows the number of Wiki Word conversions to be set on a per-Wiki Word basis. The default is to use $WikiWordCountMax unless a value is set in this array. By default Pm Wiki 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
        <a class='wikilink' href='$PageUrl$Fragment'>$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
        <span class='createlink'>$LinkText</span><a 
            class='createlink' href='$PageUrl?action=edit'>?</a>

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

The (HTML) string to output for URL-links that begin with 'http:', 'ftp:', etc. Defaults to
        <a class='urllink' href='$Url'>$LinkText</a>

The (HTML) string to output for URL-links that have alternate text specified. Defaults to the same value as $UrlLinkFmt.

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on March 11, 2004, at 08:16 PM by Antony Templier

Creative Commons License
This work is licensed under a Creative Commons License.