[pmwiki-users] I need a bookmarklet ...
H. Fox
haganfox at users.sourceforge.net
Wed May 31 19:32:48 CDT 2006
On 5/30/06, H. Fox <haganfox at users.sourceforge.net> wrote:
> How close is this?
>
> http://www.pmwiki.org/pmwiki/uploads/Cookbook/cmsb-addlink.php
Now updated.
The new version does browser sniffing and produces only one
appropriate bookmarklet link (because there are three ways to get the
selected text). The script cab produce a bookmarklet that works in
Opera now. For unrecognized browsers, the selected-text parameter is
simply omitted.
> I use it all the time (but up until just now without the selected-text
> feature). It creates links with markup like this:
>
> :[[http://www.pmwiki.org/wiki/PmWiki/PmWiki|PmWiki | PmWiki /
> PmWiki]]: PmWiki is a wiki-based system for collaborative creation and
> maintenance of websites.
>
> (A definition, where the web page's title is the link text for the
> definition term and the selected text is the definition.)
Now also available (via $EnableAddLinkHeadingStyle) is Neil's favored
format, so the same example produces this markup:
!!!PmWiki | PmWiki / PmWiki
http://www.pmwiki.org/wiki
PmWiki is a wiki-based system for collaborative creation and
maintenance of websites.
Hagan
More information about the pmwiki-users
mailing list