[pmwiki-users] fmtwikilink function in pmwiki V2
Patrick R. Michaud
pmichaud at pobox.com
Tue Feb 8 14:19:01 CST 2005
On Tue, Feb 08, 2005 at 08:49:12PM +0100, nexyufuli evo wrote:
> hi list
> i try to "convert" a cockbook reciped to pmwiki v2, but get the error
> that fmtwikilink dosent exist as function. Is there a other function
> that does the same job?
Depends on what FmtWikiLink was being used for in the previous
version. In general:
MakePageName($basepage, $string) -
Converts string into a valid pagename (relative to $basepage)
MakeLink($pagename, $tgt, $txt, $suffix, $fmt) -
Creates a link to $tgt (url, intermap link, or page name) using
$txt as the link text according to the string given by $fmt.
If $txt isn't given then it uses $tgt as the link text after
stripping anything in parentheses. If $fmt isn't given then it
uses the default formatting for whatever kind of link $tgt is.
LinkPage($pagename, $imap, $path, $title, $txt, $fmt) -
Creates a link to the page given by $path, using the link
text given by $txt. If $fmt isn't supplied, uses
$LinkPageExistsFmt, $LinkPageCreateFmt, etc. as appropriate.
Pm
More information about the pmwiki-users
mailing list