Howdy, Stranger!

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

Newbie here - I keep getting an error when I add an external link. I'm currently using Harlowe.

Newbie here - I keep getting an error when I add an external link. I'm currently using Harlowe.
<img src="http://twinery.org/forum/uploads/Uploader/83/3b6d589a40705abd897f0402015861.png"; />
<img src="http://twinery.org/forum/uploads/Uploader/6a/84c16cb503554eb6f70c6f4ee0bf6b.png"; />

Comments

  • The problem is caused by the semicolon after the last quote marks.
    The line should be
    (link: "*Facebook posts*")[(gotourl: "https://www.facebook.com";)]

    If you based your code on my response to this post - http://twinery.org/forum/discussion/4886/external-links#latest then the message board added that semicolon to my post for some reason. Sorry for the confusion.
  • The problem is caused by the semicolon after the last quote marks.
    The line should be
    (link: "*Facebook posts*")[(gotourl: "https://www.facebook.com";)]

    If you based your code on my response to this post - http://twinery.org/forum/discussion/4886/external-links#latest then the message board added that semicolon to my post for some reason. Sorry for the confusion.

    Is there a way that makes the link open in a new tab instead?

  • edited October 2015
    Not at the moment. There is a (openurl:) macro which looks like it should, but it doesn't work in the current version.

    ETA: I spoke too soon. It is possible using a standard html link

    <a href="https://www.facbook.com"; target="_blank">*Facebook posts*</a>

    It won't look like other links unless you use some css to style the link.
  • <a href="https://www.facbook.com"; target="_blank">*Facebook posts*</a>

    It won't look like other links unless you use some css to style the link.
    you can use the following to style the <a> link to look like Harlowe's:
    tw-passage a {
    	color: #4169E1;
    	font-weight: 700;
    	text-decoration: none;
    }
    tw-passage a:hover {
    	color: #00bfff;
    }
    
  • By the way, if you're willing to add the "enchantment-link" class to each <a> link, you can have your links automatically styled to match Harlowe's.
    <a class="enchantment-link" href="http://twinery.org"; target="_blank">Harlowe-styled link</a>

    The downside is that you have to add the class to each <a> link you create. The upside is that it'll always look like Harlowe's links, even if the styling changes from one version of Harlowe to another.
Sign In or Register to comment.