[pmwiki-users] Re: "Wrapping" a markup rule

chr at home.se chr at home.se
Mon Apr 18 07:54:42 CDT 2005


On Sun, 17 Apr 2005, Joachim Durchholz wrote:

> Patrick R. Michaud wrote:
> > LinkFunctions($pagename, $imap, $path, $title, $txt, $fmt)
> > 
> >    $pagename -- the name fo the current page being rendered
> >    $imap -- the particular prefix that trigged this call (e.g., 'mailto:')
> >    $path -- everything that follows the colon
> >    $title -- any optional title=attribute (primarily for images)
> >    $txt -- the text of the link
> >    $fmt -- a format string to be used instead of the markup's default
> >            (primarily for images)
> > 
> > By the time you've reached this point, PmWiki has already handled things
> > like parens in [[(Wiki)Sandbox]], extracting the target/text from
> > [[target | text]] and [[text -> target]], finding any image alt-text,
> > etc.
> 
> Documented in Cookbook/Functions.

Great! (I'd saved Patrick's mail in order to do just something like that:)

/C

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list