The spaces are the reason why I enclosed the template name in double quotes.
I wouldn't know why you have to do that? But ok!
As it happens I made two templates separately and saved them as .txt files, surface_trip
. My action line code appears to be selecting the appropriate template, depending on the choice made in the first fieldset dropdown "Trip type". So that bit is working ok, and the resulting page is displaying the correct information as entered in all the other relevant fields. Good.
Where it is going wrong is in the destination of the created page; and the actual pagename which, of course, is also the URL.
I want the destination to create two sub-namespaces, triparchives:surface
. Surface and Underground are the 'Trip type's. Instead, however, it is just creating a whole set of nested namespaces - see the screenshot attached. The URL for a created page is also very convoluted, e.g.
whereas I would like it something more like...
This could be I'm using the wrong separator. But more importantly, the destination sub-namespaces surface
are not being created.
Here's my action line code:
Action template "@@Trip type@@ Trip" triparchives:@@Trip type@@: -
I'm probably not far off getting this right! But there is such delicacy and detail in the action line code that one thing wrong and it all goes pearshape!