On Nov 22, 2008, at 10:53 AM, Marius Dumitru
Florea wrote:
Thomas Mortagne wrote:
> On Fri, Nov 21, 2008 at 4:10 PM, Vincent Massol
> <vincent(a)massol.net> wrote:
>> On Nov 21, 2008, at 12:30 PM, Vincent Massol wrote:
>>
>>> On Nov 21, 2008, at 12:06 PM, Vincent Massol wrote:
>>>
>>>> Hi,
>>>>
>>>> We have a decision to take to support image parameters when
>>>> we're
>>>> linking to an image.
>>>>
>>>> Here's what this would mean with the current syntax:
>>>>
>>>> [[[[image:attach.png||height="100"
width="100"]]>>http://
>>>> xwiki.org||
>>>> param=value]]
>>>>
>>>> Is that what we want?
>> After discussing with Thomas we both agreed that we'd prefer to
>> have
>> this syntax above, i.e.
>>
>> [[[[image:attach.png||height="100"
width="100"]]>>http://
>> xwiki.org||
>> param=value]]
>>
>> And the good news is that I think I know how to modify wikimodel
>> to
>> support this.
>>
>> I'll thus try to implement this starting now.
> Ok then no need to answer the previous mail ;)
>
> I will just add something about why I think we need to support the
> current syntax in place of finding one:
>
> This is a more generic problem that just image, how do deal with a
> link in a link should be only a renderer choice and it should not
> break the parser.
>
> If we say that link label is inline wiki syntax then link label is
> inline wiki syntax with no particular case. It's really way easier
> and
> understandable for user and in general more logical to have only
> the
> label of the link in a link (because XHTML renderer decided to
> render
> it that way) than a broken link.
>
> So to conclude if we want to change the image syntaxe it should
> not
> be
> for this image in link problem.
I agree, +1.
We can't have links inside links. It doesn't make sense since none
of
our renderers will support this. I also haven't seen any output
format
supporting this so far (even XPointer doesn't AFAIK). Mikhail (from
wikimodel) is also strongly against it.
What I have implemented is images inside links. So if you have the
following:
[[hello [[nolink]]>>reference]]
it will mean:
A link pointing to the following reference: "hello [[nolink"
followed
by the text: ">>reference]]".