Wikipedia:Lua articles
This is an essay. It contains the advice or opinions of one or more Wikipedia contributors. This page is not an encyclopedia article, nor is it one of Wikipedia's policies or guidelines, as it has not been thoroughly vetted by the community. Some essays represent widespread norms; others only represent minority viewpoints. |
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
[edit]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.
See also
[edit]- wp:Lua
- Help:Lua debugging - how to detect and fix errors in Lua modules