Forum:Linking multiple storylets using Template:GuideFor

From Fallen London Wiki
Forums: Index > Help Desk > Linking multiple storylets using Template:GuideFor

Linking multiple storylets using Template:GuideFor[edit]

With Template:GuideFor, I know I can link several pages using for example "Pages=page 1#page 2#page 3". How can I link multiple storylets? I tried the format "Storylet=page 1#page 2#page 3" but this ended up with none of the linked storylets getting the guide link. Looking at the code for the template, I see that "+sep=#" is included for both.

Context: this is for Outfits (Guide). - Stelio (talk) 09:54, 1 May 2025 (UTC)

I'll take a look at this tonight. There's at least a 50% chance the answer is "actually it does work, but caching means it takes a bit." The internals of GuideFor rely on circular references so sometimes you have to bang on in several times before it finally works.
- PSGarak (talk) 19:30, 1 May 2025 (UTC)
Update: Alright, we got this fixed! Turns out it was the other 50% after all.

Without getting all the way into it, there are different "levels" of the syntax, and the +sep param only works at the outermost level. Other levels have difference syntax, so I just stuck a bunch of calls to #replace everywhere to turn # into || and now the Outfits page seems to work and hopefully nothing else important broke.

If you want the full details: the Pages param is different because it doesn't need an inner query to get the list of relevant pages. Other pages need to run through an #ask query to generate the list of pages. The +sep param affects how the list of pages gets passed from #ask to #set, but it doesn't affect the syntax of the query itself. That still mandates the use of || as a disjunction operator.
- PSGarak (talk) 01:48, 2 May 2025 (UTC)
You star! :-) Thank you very much. Stelio (talk) 17:57, 5 May 2025 (UTC)