On Mon, Oct 6, 2008 at 3:34 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
On Mon, Oct 6, 2008 at 12:41 PM, Vincent Massol
<vincent(a)massol.net> wrote:
Hi devs,
Sorry for the numerous mails on this topic. I've been struggling a bit
in choosing the best solution with the caveats brought by wikimodel.
So here's my latest proposal that replaces all previous ones on the
link topic:
1) General link syntax: [[label>>reference]] or [[label||reference]]
Note1: I've removed the need for parameters, see below.
Note2: I'm suggesting double character separators since if we allow
wiki syntax in link labels we need to easily differentiate the
separator from a character typed in the label. Same reason why we
doubled [[ ]], **, //, etc. characters. We could still use single
characters (open question, I'm not sure about double chars) since
people are not meant to write tons of text in link labels. OTOH it's
consistent with our usage of double chars everywhere else (but it
breaks current habits of the single char for links).
+0 i don't think ">" or "|" is used a lot in pages names
"labels" and not "pages names" of course
2) Links with parameters:
(% param1=value1 paramN=valueN %)[[label>>reference]]
+1 always better to have same way to define parameters IMO
3) Links with wiki syntax for the label:
[[**bold** link>>reference]]
[[{{velocity}}...{{/velocity}}>>reference]]
[[{{image:...}}>>reference]] <-- image link
++1
<OT>
Note: For the image link we'll still need to decide if we want a macro
for inserting an image or use wiki syntax but that's a topic that is
now dissociated from the link topic:
[[{{image:my.png}}>>reference]]
or
[[image:my.png>>reference
</OT>
Last for those wondering, I've found a solution to make this work with
wikimodel and I've discovered Doxia supported wiki syntax in link
labels, hence why I'm resurrecting the idea of having wiki syntax in
links which is a way superior solution.
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
--
Thomas Mortagne