Thread:Extension talk:Scribunto/Environment/reply (2)

You could do this by having a separate module to store settings data for each page that you want to format. Load your data module with mw.loadData, and have the main module format the page according to its entry in the data table. You could try and do it all on the same page by having the module search wikitext found with title:getContent, but that is awkward - you have a risk of false positives, and it won't work properly with page preview if you change something, as title:getContent always loads the latest revision.