"వికీపీడియా:Lua" కూర్పుల మధ్య తేడాలు

→‎About Lua: Remove "(PDF)" from the displayed text for the link. Displaying that implies that the direct link is a PDF and can be saved directly from the link. It is really link to a [[File:]] page.
imported>Iantresman
imported>Makyen
(→‎About Lua: Remove "(PDF)" from the displayed text for the link. Displaying that implies that the direct link is a PDF and can be saved directly from the link. It is really link to a [[File:]] page.)
 
== About Lua ==
:''See also [[:File:WMF Tech Talk 2013-02-28 slides - Scribunto presentation.pdf|Brad Jorsch's short presentation for a basic example of how to convert a wikitext template into a Lua module (PDF).]]''
Lua is a [[scripting language]] which can be used to analyze data, calculate expressions, and format results using functions or [[object-oriented programming]]. Although some Lua scripts can be kept simple, for easy understanding, Lua allows complex structures including tables, dynamic functions, and [[associative array]]s where index [[subscript]]s can be words as well as index numbers. Lua also supports [[recursion]] of re-nested functions, so care should be taken to avoid excessive complexity where other users would not understand how to maintain a Lua module. The following is an example of Lua [[source code]] for a [[hello world]] function contained in [[Module:HelloWorld]]:
<syntaxhighlight lang="lua">
Anonymous user
"https://te.wikipedia.org/wiki/ప్రత్యేక:MobileDiff/1387564" నుండి వెలికితీశారు