Hello, you have come here looking for the meaning of the word
Template:lua. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Template:lua, but we will also tell you about its etymology, its characteristics and you will know how to say
Template:lua in singular and plural. Everything you need to know about the word
Template:lua you have here. The definition of the word
Template:lua will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Template:lua, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
code
- The following documentation is located at Template:lua/documentation.
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template is used to wrap and add syntax highlighting to Lua code snippets, for use in documentation pages. Examples:
1. A simple example:
{{lua|"foo bar"}}
produces
"foo bar"
2. A more complex example:
{{lua|1={spec = "gender/number_spec", qualifiers = nil or {"qualifier1", "qualifier2", ...} }}
produces
{spec = "gender/number_spec", qualifiers = nil or {"qualifier1", "qualifier2", ...}
Note in the latter case, the param |1=
needs to be explicitly given to avoid the equal signs in the code snippet from being interpreted as specifying named parameters, and a space is used at the end of the snippet to avoid parser problems with three braces in a row.
See also
{{uses lua}}
– a box for templates that use Lua