[dokuwiki] Re: Bug in inserting media / image scaling?

  • From: Anika Henke <a.c.henke@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 25 Mar 2006 16:05:41 +0100

Daniel Mitchell wrote:

Okay, that works, but it seems like its backwards from normal links. The text on the right hand side of the | is the description of the link, the part on the left-hand side is where it points. So I'd expect that {{foo.jpg?400|foo.jpg}} means "link to a 400pixels wide version of foo.jpg, and use foo.jpg to display that link" just like [[http://www.google.com|Google]] means "link to www.google.com and use "Google" to display that link".

It just seems like it would be easier if the insert-image code didn't
put in the extra copy of the filename for the tooltip text, because

I agree on this.
It might be confusing for users if the image location is by default the same string as the image title. And in 99.9% of all cases, it doesn't make much sense to have a title or an alt parameter that reads ":foo:bar.png"!


I propose using {{:foo:bar.png|title}} instead or maybe {{:foo:bar.png|}} (with empty string as title) or even {{:foo:bar.png}} (with no title at all).
* With {{:foo:bar.png|title}} it would be clearer to users what this second string is for and it is more likely that they will change it.
* {{:foo:bar.png|}} would at least prevent nonsense in title/alt, but still contains the needed markup for the title (the pipe). Which probably could confuse users as well.
* {{:foo:bar.png}} would prevent nonsense in title/alt as well.


I would go for either {{:foo:bar.png|title}} or {{:foo:bar.png}}. It depends on how often the title is used (by users who are not sure how to add a title)!?


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

Other related posts: