@Micru: I like semi-automated, user-driven procedures much more than bot-automated procedures. I.e.: our it.source Index pages use a tl|Sommario for any ns0 section, with following parameters:
nome= full name of ns0 page
titolo= title for ns0 page (to be displayed only)
from= number of djvu page where ns0 begins
delta= delta between djvu page and book page
These data are almost sufficient (with some ajax) to self-compililing all the needed code when creating a new ns0 subpage, compiling both our header template (tl|IncludiIntestazione) and pages tag. Needed to= parameter of pages tag is calculated (it is simply the number of djvu page of following tl|Sommario -1) and navigation templates are calculated from preceeding and following tl|Sommario. But creation of the page is not fully automated: ns0auto() script is invoked by the user in edit mode, so that the user can verify and test resulting code and fix it if needed.
What I'm thinking about is, to so something similar by a Lua script, reading Modulo:Dati which is aligned with Index: page data (yes, I presume by a #irc bot and I presently working to write the needed code). So, this procedure will be semi-automated, since page creation would be a user-driven procedure.
Alex