قالب:Code
(بالتحويل من قالب:كود)
{{{1}}}
استعمال
عدل{{كود | code = | 1 = | lang = | 2 = }}
مثال
عدلتوصيف | يظهر |
---|---|
{{كود|لو:{{{س}}}}} |
|
توصيف | يظهر |
---|---|
Lorem {{code|ipsum '''dolor'''}} sit amet |
Lorem sit amet |
The declaration {{code |lang=cpp |int foo(const std::string& bar, const std::vector<long double*>& baz);}} is the prototype for a function defined later. |
The declaration is the prototype for a function defined later. |
If the code contains an [[علامة التساوي]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]]. |
If the code contains an علامة التساوي, such as , you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also bugzilla:5138.
|
داخل القوالب
عدلتوصيف | يظهر |
---|---|
{{code| {{cite web |title=Title |url=http://example.org}} }} |
|