{{{1}}}
توثيق القالب[عرض] [عدل] [تاريخ] [مسح الكاش] [استخدامات]

استعمال تعديل

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

مثال تعديل

توصيف يظهر
{{كود|لو:{{{س}}}}}
لو:{{{س}}}
Markup Renders as
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 [[علامة التساوي]], 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 var img = document.getElementsByTagName("img");, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also bugzilla:5138.


داخل القوالب تعديل

Markup Renders as
{{code|
{{cite web |title=Title |url=http://example.org}}
}}

'"`UNIQ--templatestyles-00000011-QINU`"'<cite class="citation web cs1">[http://example.org "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=http%3A%2F%2Fexample.org&rfr_id=info%3Asid%2Farz.wikipedia.org%3A%D9%82%D8%A7%D9%84%D8%A8%3A%D9%83%D9%88%D8%AF" class="Z3988"></span>