Howdy, Stranger!

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

No space bewteen links.

Hi,
I would like to know if there is a possibility to have no space between the links?
My story use a lot of conditions, like that :
<<if option 1>>[[Passage 1]]<</if>>
<<if option 2>>[[Passage 2]]<</if>>
<<if option 3>>[[Passage 3]]<</if>>

During the testing, if Passage 1 and 2 aren't shown, Passage 3 isn't on top, the first both <<if>> making a space.

Thx for answers.

Comments

  • FIFFIF
    edited January 2017
    <<nobr>> XXX<</nobr>>
    Works well for me. I'd also add that you might want to use else if. Here's an example...
    <<nobr>><<if $job is "A">>XXXX
    <<elseif $job is "B">>XXXX
    <<elseif $job is "C">>XXXX
    <<elseif $job is "C">>XXXX
    <<elseif $job is "D">>XXXX
    <<elseif $job is "E">>XXXX
    <</if>><</nobr>>
    

    Now that I look closer at your question, this works for statements and might work for links as well. There may be a better way. Let's see if someone less NOOB can chime in.
  • edited January 2017
    Hi, thx for the answer,

    That not what I'm looking for, that put link horizontally.
    Working on it. If I found, I will post an answer.

    BB.
  • You need to move the line-breaks inside of each <<if>>, so they're only printed when the associated conditional is true. For example:

    Using no whitespace controlling markup:
    <<if option1>>[[Passage 1]]
    <</if>><<if option2>>[[Passage 2]]
    <</if>><<if option3>>[[Passage 3]]
    <</if>>
    


    Using line continuations:
    <<if option1>>[[Passage 1]]
    <</if>>
    \<<if option2>>[[Passage 2]]
    <</if>>
    \<<if option3>>[[Passage 3]]
    <</if>>
    


    Using line continuations with <br>:
    <<if option1>>[[Passage 1]]<br><</if>>
    \<<if option2>>[[Passage 2]]<br><</if>>
    \<<if option3>>[[Passage 3]]<br><</if>>
    


    There are additional ways you could do that as well, but I think the current examples should suffice.
  • Hi,

    ok it's works. Thx.
    Mr FIF, I think you were right and I don't understand what you mean. So my apologies.

    Have a good day.
Sign In or Register to comment.