Search results
Results from the WOW.Com Content Network
"What do converted templates look like?" (slideshow) Help:Lua debugging – a how-to guide about debugging Lua modules; Help:Lua for beginners – basic tutorial and pointers; Wikipedia:Lua string functions – string performance considerations and limits; Wikipedia:Guide to Scribbling – how to write templates that use Scribunto/Lua
An inline source code string. Template parameters [Edit template data] This template prefers inline formatting of parameters. Parameter Description Type Status Code 1 code The code to display. String required Language 2 lang The programming language of the source code. List of valid values is at: [[mw:Extension:SyntaxHighlight#Supported_languages]] Default text String suggested Class class no ...
Lua patterns deliberately lack the most complex regular expression constructs (to avoid bloating the Lua code base), where many other computer languages or libraries use a more complete set. Lua patterns are not even a subset of regular expressions, as there are also discrepancies, like Lua using the escape character % instead of \, , and ...
The language inside templates is the same language as regular wiki markup, but template writers tend to use the more complex available functions such as #if: statements. See Wikipedia's Help:Template and Wikimedia's mw:Help:Template , including all of "advanced functioning" help pages listed toward the bottom of that page .
[[Category:Templates based on the String Lua module]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Templates based on the String Lua module]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
Scribunto Lua reference manual (Manual for the Mediawiki implementation) Programming in Lua (Official book/introduction to Lua) Lua tutorials at lua-users.org; Wiktionary:Lua on English Wiktionary: contains notes on efficiency and on dealing with Unicode and UTF-8
Only document Docbunto code items - exclude article infobox and lede from rendered documentation. Default false: Boolean: optional: Colon: colon: Parses tags with a `:` suffix and without the `@` prefix. This bypasses the "doctag soup" some authors complain of. Default false: Boolean: optional: No Lua Reference: noluaref: Don't link to the Lua ...
See also Brad Jorsch's short presentation for a basic example of how to convert a wikitext template into a Lua module. Lua is a scripting language which can be used to analyze data, calculate expressions, and format results using functions or object-oriented programming.