Howdy, Stranger!

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

External Links

I'm using Twine for an entirely different purpose than it was designed for, but I think it will serve my purposes well. I'm wanting to utilize it for a call flow process to help troubleshoot software/account issues. I've got almost nil html experience, so that might be what I'm running into. I'm nto sure.

I'm trying to link externally to a particular webpage. https://www.logos.com/install. For some reason when I try to link to that page (specifically with https://) when I hover over the link int the "story" it gives me a "do not enter" sign where the mouse was.

When I leave off the "https://"; it just links me to a new blank passage.

I can't tell what I'm doing wrong from the documentation I've looked at in the wiki.

Thanks for your help!

Comments

  • This is what it looks like when I hover over the link.
  • edited October 2015
    What story format are you using?
    If you're using Harlowe then in order to link to an external page then you need to use the (link:) and (gotourl:) macros rather than the normal link syntax.

    (link: "install")[(gotourl: "https://www.logos.com/install";)]

    On an unrelated note when I tried to put that line in a code section, it kept inserting a semicolon after the fourth set of quotes. I've never had that happen before.
  • Harlowe. That was exactly what I needed. Thank you.

    Is there an area ofthe wiki where the syntax is broken down by format?
  • The wiki basically covers how to use the Twine application, each of the Story Formats have their own documentation sites.

    Harlowe: documentation and overview
    Snowman 2: overview
    SugarCube 1: documentation
    SugarCube 2: documentation
  • Thanks, greyelf! I'm using Harlowe because it works in Chrome and most of the people that will be using this use Chrome.

    I can't find sytnax for underlining text. I found bold, and italics. I even found superscript, but no underline in the documentation you linked me to. Did I miss it or has it not be created?
  • edited October 2015
    Oldcastle wrote: »
    I'm using Harlowe because it works in Chrome...
    A small clarification, both of the latest versions of SugarCube 1 and 2 work in Chrome.

    SC 1 displays a dialog at the start explaining that some functionality may not be available due to limitations of the web-browser, this message occurs for recent versions of Chrome/Opera and some older versions of other brands.

    SC2 works just fine because TheMadExile rewrote portions of it to make it so.
    Oldcastle wrote: »
    I can't find sytnax for underlining text. I found bold, and italics. I even found superscript, but no underline in the documentation you linked me to. Did I miss it or has it not be created?
    I would of expected wrapping the text in double underscores __ to of worked but it seems not and Bitbucket is currently off-line so I can't check the Harlowe source code.

    You can used (text-style: "underline") to do what you want though:
    (text-style: "underline")[This text should be undelined]
    
  • Thank you, greyelf. I'll try that underline method. Are there potential pitfalls with mixing styling? I could have used html style underlining I suppose, but I'm not sure if that would make things messy for me later one if I started learning and implementing more complicated features.

    My comment regarding Sugarcube not working in cube is because when I tried to open the html file I created from Twine I got this error

    http://stackoverflow.com/questions/32453806/uncaught-securityerror-failed-to-execute-replacestate-on-history-cannot-be.

    Perhaps I should create a new thread? I Don't know what kind of protocol you have here regarding covered issues to a thread. I did prefer the font of the other story format, but I assume each format has its own markdown styling. Though that page you linked me to does not specify a story format system that it works with.



    Thanks again.
  • Oldcastle wrote: »
    My comment regarding Sugarcube not working in cubeChrome is because when I tried to open the html file I created from Twine I got this error
    That is because you are using an old version of SugarCube. (SC1 pre v1.0.31 is my guess).
    The current web-based version of Twine 2 (v2.0.8) comes with SugarCube v1.0.31, which displays the warning message I spoke of earlier.

    Oldcastle wrote: »
    Are there potential pitfalls with mixing styling? I could have used html style underlining I suppose, but I'm not sure if that would make things messy for me later one if I started learning and implementing more complicated features.
    I don't know.

    The documentation states that the markup based styling uses HTML style elements like b, em, strong, etc...

    Where as the (text-style:) macro styling produces tw-hook elements containing an in-line style attribute.
    (text-style: "bold")[Text Style Bold]
    
    produced:
    <tw-hook style="font-weight: bold;">Text Style Bold</tw-hook>
    
  • Ressurecting the topic, anyone knows how to make a external link in Snowman? If I try putting a simple a html tag the link is broken in the "//" part and "<a href="http:" is displayed as text. If I use "\/\/" instead of "//" the I get a link but for "http:\/\/example.com".
  • Placing the following into a passage works for me:
  • This is strange. On the online editor the externa link works, but on my offline copy (2.0.8-linux64) not.
  • I have tested the example I gave using both the Windows 32bit and 64bit releases of the installable version of Twine 2, and both of them opened my default web-browser and displayed Google.
Sign In or Register to comment.