So, you want a form in which user will select a namespace, indicate a pagename and the form is expected to create in the said namespace a new page, based on a template file that depends on the selected namespace. Is that it ?
given this structure :
.
├── page-with-form.txt
├── allosaurus
│ └── _template.txt
└── diplodocus
└── _template.txt
The form will look like this :
<form>
action template _ "@@Namespace@@:@@page@@"
fieldset "Create New Page"
select "Namespace" "allosaurus|diplodocus"
textbox "page"
textbox "Page Title"
submit
</form>
in the action line, _
means "use the namespace template of the created page". This is the only way to specify a different source file based on the destination namespace.
file diplodocus/_template.txt
could contain something like this :
====== @@Page Title@@ ======
Page created using ns template in the "@@Namespace@@" namespace.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Here is how @USER@ filled the form in :
^ Page | %%%%@@Page@@%%%% |
^ Page Title | **%%%%@@Page Title@@%%%%** |
^ Namespace | %%%%@@Namespace@@%%%% |
Creation date : @DATE@
CaligulaZei Hm, I think the only way is to manually make a list of all my namespaces...
Correct.