Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Image as link when image is external/hosted elsewhere?

edited August 2016 in Help! with 2.0
Pretty simple question here... (I hope)

Using Twine2/Sugarcube1, I want to make the image be a link. I get that what I'd typically use is this:
[img[images/example.png][Passage]]
...But what do I do if it's an external image hosted elsewhere? Typically would use <img src=""> to place the picture in the Twine story. Can't find a way to make it work as a link yet.

Comments

  • Gridelin wrote: »
    ...But what do I do if it's an external image hosted elsewhere? Typically would use <img src=""> to place the picture in the Twine story. Can't find a way to make it work as a link yet.
    Nothing changes just because the resource is external. For example:
    /* Using wiki image markup. */
    [img[URL_TO_EXTERNAL_IMAGE][PASSAGE_NAME]]
    
    /* Using HTML image & anchor markup. */
    <a data-passage="PASSAGE_NAME"><img src="URL_TO_EXTERNAL_IMAGE"></a>
    
  • Ah, thank you. That shows me what I was doing wrong.
Sign In or Register to comment.