Template:lua/documentation

Hello, you have come here looking for the meaning of the word Template:lua/documentation. In DICTIOUS you will not only get to know all the dictionary meanings for the word Template:lua/documentation, but we will also tell you about its etymology, its characteristics and you will know how to say Template:lua/documentation in singular and plural. Everything you need to know about the word Template:lua/documentation you have here. The definition of the word Template:lua/documentation will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofTemplate:lua/documentation, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
Documentation for Template:lua. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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