Wikipedia:Lua articles

A Lua article is a page written to be displayed entirely by running Lua script functions, rather than markup language. In terms of execution speed, the entire article could be reformatted extremely quickly, while also running some complex Lua-coded algorithms as direct Lua functions called inside the text. A major drawback, to Lua articles, would be the lack of markup-language directives such as hypertext wikilinks, or asterisk '*' to indent bullets or '#' to auto-number each line. Also, there would be the need for some of the article's editors to learn many technical features of Lua (programming language). In essence, the article editors would be acting as computer programmers, and Lua articles could be considered computer software, as no longer limited to typical text formatting in a simpler hypertext-format markup language.

Structure
A Lua article could be segmented as a set of functions to display each portion of the page, where the top-level Lua function would resemble a "table of contents" which invoked each function named as a entry in that list of contents.