قالب:كود

من ويكيبيديا، الموسوعة الحرة
اذهب إلى: تصفح، ‏ ابحث

{{{1}}}

Symbol redirect vote2.svg
تحويلات:

استعمال[عدل]

{{كود
| code = 
| 1 = 
| lang = 
| 2 = 
}}

مثال[عدل]

توصيف يظهر
{{كود|لو:{{{س}}}}}
 
لو:{{{س}}}
توصيف يظهر
Lorem {{code|ipsum '''dolor'''}} sit amet 
Lorem ipsum '''dolor''' 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 int foo(const std::string& bar, const std::vector<long double*>& baz); is the prototype for a function defined later.
If the code contains an [[equals sign]], 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 equals sign, such as var img = document.getElementsByTagName("img");, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also bugzilla:5138.


داخل القوالب[عدل]

توصيف يظهر
{{code|
{{cite web |title=Title |url=http://example.org}}
}} 
<span class="citation web">[http://example.org "Title"].</span><span title="ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Far.wikipedia.org%3A%D9%82%D8%A7%D9%84%D8%A8%3A%D9%83%D9%88%D8%AF&rft.btitle=Title&rft.genre=book&rft_id=http%3A%2F%2Fexample.org&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook" class="Z3988"><span style="display:none;">&nbsp;</span></span>