[dokuwiki] Re: externallink plugin syntax

Hi

I am the author of this plugin. Basically the format is how your browser wants them. If you look the generated code, you will find that the examples generate code as follows

[[@page|name]]
<a href="page" class="wikilink1" title="page">name</a>
This will guide you to http://somewhere/yourwiki/doku.php/page

[[@/page|name]]
<a href="/page" class="wikilink1" title="/page">name</a>
This will guide you to http://somewhere/page

[[@?do=recent|name]]
<a href="?do=recent" class="wikilink1" title="?do=recent">name</a>
This will guide you to http://somewhere/yourwiki/doku.php?do=recent

So this plugin is just following this same syntax.. sort of...


brgds Otto



Metz, Bobby wrote:
Hi all,
        Somewhat related to the "DMS: organize external material"
thread.  Being interested in that solution I took my first look at the
externallink plugin that was mentioned.  Wondering if anyone else finds
the plugin syntax puzzling:

[[@page|name]] links to http://localhost:88/dokuwiki/doku.php/page
[[@/page|name]] links to http://localhost:88/page
[[@?do=recent|name]] links to
http://localhost:88/dokuwiki/doku.php/?do=recent

        IMHO the first two syntaxes should be reversed.  Based on the
first & last examples it would appear that "@" represents
"http://localhost:88/dokuwiki/doku.php/";; however, the middle example
seems to defy this.  Since the last url example doesn't need the last
"/" character, I think it would be more logical to have "@" represent
"http://localhost:88/dokuwiki/doku.php";.  Then "@/page" would be used to
append the "page" parameter to the main wiki URL just like using
"@?do=recent" appends the recent page search parameter.  Likewise, the
"@page" syntax would now instruct to move "outside" the wiki to fulfill
the request.  I just think this would be cleaner.

Anyone with experience with the plugin care to share their thoughts on
this?

B


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: