Hi everyone and a happy new year!
I'm new on the forum and I have a question that has me stumped, even though it seems to me like it must have a trivial solution... any help would be greatly appreciated!!

I want to link to a passage name from player input. I get as far as reading in a variable with textinput, but I can't seem to be able to put anything like $variablename in a passage link (the [[]]s). Is this by design or am I missing something?
Example usage case: the player enters a number and the story jumps to a passage named after that number. (Like entering a combination for a safe lock.)
I use twee under Linux and would prefer not to use a GUI

I'm also fine with ugly workarounds.
Comments
Thank you everyone for the replies!! It's also good to know there is a solution in Twine 1.4 even if I'm not using it
I used the variable $name and also a pop up text box
<<set $name = [[prompt("What's your name?","Name")]]>>
"What's your name?" is the question on the box, "Name" is default text in the box. To use the name, just use <<print $name>> wherever you need it. This could also work with links. You can tailor it to passages/page numbers:
<<set $pageNumber = [[prompt("What page?","Page Number")]]
Followed by an <<if>> statement.
<<if $pageNumber eq "2">>[[Page 2]]
<<else if $pageNumber eq"7">>[[Page 7]]
<<endif>>
I'm completely new to Twine and basic coding, it took me a bit, but I got this. Idk if this helps you, but its useful for anyone else that may need it, there could be a more efficient way, but this was the easiest way I found without needing to make a Stylesheet passage. Any other type of coding is completely foreign to me, so I tried to find the simplest way. If you even see this, hope it's of use to you
As it turns out, you can just do this: Yes, unbeknownst even to me, macros are permitted to run inside the text of links.