≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1428

Feature request #1428: Image markup ({{}}) inside a link markup ([]), for linking from thumbnail to larger version of image

Kind feature request
Product wikitext
When Created 2009-10-29T18:17:43Z, updated 2009-11-01T07:43:24Z
Status open
Reporter Bruno Michel
Tags no tags

Description

Hi,

I have a new feature request for wikitext. I would like to have a image that can also be a link. My use case is an image too large to put it directly in a page. So I put a thumbnail of this image in the page, and I'd like that clicking on this thumbnail shows the full image.

Something like

 [http://my.site/images/full.png {{thumbnail.png}}]

that generates

 <a href="http://my.site/images/full.png"><img src="/images/thumbnail.png" alt="thumbnail.png" /></a>

Possible ?

Comments

  1. Bruno Michel 2009-11-01T07:18:59Z

    By th way, it doesn't seem possible to include an image from an external site.

     {{http://my.site/images/foobar.png}}

    is not replaced by an <img> tag. Is it correct?

  2. Greg Hurrell 2009-11-01T07:34:48Z

    That's right, Bruno. Originally this decision was made for security reasons, given that basically untrusted third-parties can use wikitext markup in their comments and other submissions to sites like this one. Basically, by not allowing people to insert images from other servers it's impossible for them to insert offensive images.

    If you actually trust your users not to abuse this, then you'd want an option to allow absolute URLs inside image markup ({{}}), but I think that should be a separate ticket from this one.

  3. Greg Hurrell 2009-11-01T07:38:03Z

    Ok, just made a separate ticket, ticket #1429, to keep this second feature request separate.

  4. Greg Hurrell 2009-11-01T07:40:47Z

    Now to reply to your initial feature request, about syntax like this:

    [http://my.site/images/full.png {{thumbnail.png}}]

    Yes, I think it's a good idea. Should probably also accept "relative" URLs as well:

    [/images/full.png {{thumbnail.png}}]

    Which would obviously also allow linking to non-image resources:

    [/comments/new {{thumbnail.png}}]

    So I'll look into this and see if it would be feasible.

  5. Greg Hurrell 2009-11-01T07:43:24Z

    Summary changed:

    • From: Image in a link
    • To: Image markup ({{}}) inside a link markup ([]), for linking from thumbnail to larger version of image
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets