विकिपीडिया:लुआ: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
छो MZMcBride moved page Wikipedia:Lua in Wikipedia to Wikipedia:Lua over redirect: shorter title seems more appropriate
better
लाइन 1:
{{essayinfo page|WP:LUA|WP:Lua}}
 
This essay, '''wp:Lua in Wikipedia''', explains issues about using [[Lua script]] on Wikipedia, rather than wikitext [[markup language]]. To run Lua script, the Lua [[source code]] is stored in pages called "modules" then invoked (by "<code>#invoke</code>") from a "[[wp:template|template]]" which contains markup instead. The interface in the [[MediaWiki]] software to run Lua script is called Scribunto. Lua was installed on enwiki in February 2013, after testing on test2.wikipedia.org.
[[Lua (programming language)|Lua]] is a programming language that's now available, via the [[mw:Extension:Scribunto|Scribunto]] MediaWiki extension, on the English Wikipedia. Lua code can now be embedded into wiki templates by employing the "<nowiki>{{#invoke:}}</nowiki>" functionality of the Scribunto MediaWiki extension.
 
The Lua [[source code]] is stored in pages called modules (e.g., [[Module:Bananas]]). These individual modules are then invoked (by "<nowiki>{{#invoke:}}</nowiki>") on template pages (e.g., [[Module talk:Bananas]] uses the code <nowiki>{{#invoke:Bananas|hello}}</nowiki> to print the text "Hello, world!").
 
== History ==
Sordid history. qif, ParserFunctions, [[mw:Extension:Lua]], wiki scripting language debated (JavaScript v. Lua), [[mw:Extension:WikiScripts]], Tim writes Scribunto with initial support for Lua.
 
Although discussedDiscussed for years, Lua was installed in 2012 for testing on test2.wikipedia.org, with open invitation to all editors to experiment with developing Lua modules. ALua centralwas pageinstalled wason developedthe English Wikipedia in February 2013, after testing on meta:mediawiki.org and Wikimedia test wikis.
 
== About Lua ==
Line 18 ⟶ 26:
A sample of Lua is highlighted by tag "&lt;syntaxhighlight lang="lua">...&lt;/syntaxhighlight>" placed around the Lua source code. To view some more complex examples of Lua, see article: "[[Lua (programming language)]]".
 
== HistorySee on Wikipediaalso ==
* [[m:Lua]] &ndash; "central" page at Meta-Wiki
Although discussed for years, Lua was installed in 2012 for testing on test2.wikipedia.org, with open invitation to all editors to experiment with developing Lua modules. A central page was developed on meta:
* [[mw:Lua]] &ndash; index at mediawiki.org
:* http://meta.wikimedia.org/wiki/Lua
Tracking of Lua modules can be done by PrefixIndex:
:* [[Special:PrefixIndex/Module:]]
Groups of Lua-based templates can be seen in categories:
:* [[:Category:Lua-based templates]]
As more is available about Lua, then this essay will be edited to provide additional information.
 
::: [ ''This essay is a rough draft to be expanded later...'' ]
 
; English Wikipedia-specific resources
[[Category:Wikipedia essays|Lua In Wikipedia]]
* [[Special:PrefixIndex/Module:]] &ndash; tracking of Lua modules can be done by using [[Special:PrefixIndex]]
:* [[:Category:Lua-based templates]] &ndash; groups of Lua-based templates