Jump to content

ထႅမ်းပလဵတ်ႉ:lua/documentation

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး
ၽိုၼ်လိၵ်ႈၵူႈမိုဝ်း တွၼ်ႈတႃႇထႅမ်းပလဵတ်ႉ:lua[မႄးထတ်း]
တီႈၼႃႈလိၵ်ႈၼႆႉ ၶဝ်ႈပႃးဝႆႉ ၶေႃႈမုၼ်း လၢႆးၸႂ်ႉတိုဝ်းပိူင်ထၢၼ်ႈလွင်ႈၵွင်ႉသိုပ်ႇ ဢိၼ်ႇတႃႇဝီႇၶီႇ လႄႈ ၸိူဝ်းပဵၼ် လွင်ႈၼႄပၼ် ထႅမ်းပလဵၵ်ႉ ၼၼ်ႉယဝ်ႉ။

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.

  • {{uses lua}} – a box for templates that use Lua