Board Thread:Lua Help/@comment-24473195-20150527141750/@comment-24473195-20150527195316

Dinoguy1000 wrote: I don't see how that would be the problem; Wikipedia's documentation template is just a very fancy wrapper around transcluded /doc subpages. There are a few examples of centralized documentation (e.g. the hatnote templates), or documentation that's not on a /doc subpage (though I don't know any off-hand and therefore can't speak to the reasoning behind that, though I can't see any arguments for it myself), but both of these are relatively simple to handle and I added the functionality for them to the Templates Wiki documentation system quite a while back. If I'm misunderstanding what you're getting at, though, please let me know. =) Basically, fixing the functionality and making sure that all pages that depended on it work as intended. Currently it creates too many links to non-existent pages.

The overhead problem is a non-issue if few very powerful modules are created which do most common tasks. Like an all-in-one printer.

You'll have to explain yourself a bit more clearly here; if I understand what you're saying correctly, you claim that checking if a page exists (via  #ifexist ) doesn't add it to the wanted pages reports, but this isn't correct. #ifexist  counts as a page link, and therefore has all the same effects server-side that an ordinary page link does. And there is no other way to check a page's existence from within a template.

Hmm, I didn't consider that. But you're right, even the lua-based version of it would generally have the same problem. The only possible way to eliminate this issue is to use a javascript that gets all the pages through the API and the lua simply parses the results.