ထႅမ်းပလဵတ်ႉ:lua
Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
- The following documentation is located at ထႅမ်းပလဵတ်ႉ:lua/documentation. [edit]
- 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
Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
2. A more complex example:
{{lua|1={spec = "gender/number_spec", qualifiers = nil or {"qualifier1", "qualifier2", ...} }}
produces
Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value).
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
[မႄးထတ်း]- Lua error in မေႃႇၵျူး:parameters at line 600: attempt to index local 'param' (a boolean value). – a box for templates that use Lua