සැකිල්ල:code
පෙනුම
(සැකිල්ල:cd වෙතින් යළි-යොමු කරන ලදි)
code
- පහත දැක්වෙන උපදෙස්, සැකිල්ල:code/documentation හි පිහිටා ඇත. සැකිල්ල:code/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • යළි යොමු • transclusions • errors (parser/module) • sandbox (වෙනස)
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=:
textor omitted: Raw text. This simply applies a monospaced font, similarly to surrounding the snipped with<code>...</code>.lua: Lua code.jsorjavascript: JavaScript code.pyorpython: 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.