Jump to content

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

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

This is a convenience template, which formats a short inline snippet of code with syntax highlighting of a given language. The language is specified in |1= (the first positional parameter), while |2= (the second positional parameter) is the snippet to format. If the snippet contains an equal sign, precede it with =.

Typical values for |1=:

  • text or omitted: Raw text. This simply applies a monospaced font, similarly to surrounding the snipped with <code>...</code>.
  • lua: Lua code.
  • js or javascript: JavaScript code.
  • py or python: Python code.

The possible values are those understood by the <syntaxhighlight> tag.

It is similar to Wikipedia's w:Template:code, but the argument order is opposite.

တူဝ်ယၢင်ႇ

[မႄးထတ်း]
  • {{code||foo("bar")}} renders as foo("bar").
  • {{code|js|=(65535).toString(16) === 'ffff'}} renders as (65535).toString(16) === 'ffff'.

တူၺ်းပႃး

[မႄးထတ်း]