Javasatu:Lua: Perbedaan antara revisi

Loncat ke navigasi Loncat ke pencarian
8 bita ditambahkan ,  1 tahun yang lalu
tidak ada ringkasan suntingan
(Created page with "{{short description|Wikipedia project page for MediaWiki Lua modules}} {{Pp-semi-indef}} {{WikiProject Lua header}} {{Information page}} {{Namespaces}} Lua is a programming language that is available via the Scribunto MediaWiki extension on the English Wikipedia. Since February 2013, Lua code can be embedded into wiki templates by employing the "<nowiki>{{#invoke:}}</nowiki>" functionality of Scribunto. This...")
 
Tidak ada ringkasan suntingan
 
Baris 74: Baris 74:


=== Lua input limitations ===
=== Lua input limitations ===
Lua code in Scribunto is only run when the page is being parsed. Therefore, the only user input that Lua can receive is by ''page editing'' – it cannot create a box that calculates the square root of a number you type in, or recalculate a piece of the Mandelbrot set depending on which part of the parent set you click on. The input Lua can receive includes any transcludeable text page on Wikipedia. This does ''not'' include graphics files (not even [[Wikipedia:SVG help|.SVG]] files, although they are actually text, unless you cut and paste it onto a Wiki text page), the list of pages listed in a [[Help:Category|category]], nor the contents of [[Wikipedia:Transclusion#Special pages|non-transcludeable]] [[Help:Special|special pages]].
Lua code in Scribunto is only run when the page is being parsed. Therefore, the only user input that Lua can receive is by ''page editing'' – it cannot create a box that calculates the square root of a number you type in, or recalculate a piece of the Mandelbrot set depending on which part of the parent set you click on. The input Lua can receive includes any transcludeable text page on Wikipedia. This does ''not'' include graphics files (not even [[Wiki Javasatu:SVG help|.SVG]] files, although they are actually text, unless you cut and paste it onto a Wiki text page), the list of pages listed in a [[Help:Category|category]], nor the contents of [[Wiki Javasatu:Transclusion#Special pages|non-transcludeable]] [[Help:Special|special pages]].


=== Wikitext ===
=== Wikitext ===

Menu navigasi