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 or a Wikipedia policy, as it has not been reviewed by the community. |
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.
See also
- wp:Lua
- Help:Lua debugging - how to detect and fix errors in Lua modules
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.