<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3ACode%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA</id>
	<title>الگو:Code/توضیحات - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3ACode%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA"/>
	<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Code/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;action=history"/>
	<updated>2026-05-04T22:54:23Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Code/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=790&amp;oldid=prev</id>
		<title>محمد در ۲۴ ژانویهٔ ۲۰۲۵، ساعت ۱۳:۲۲</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Code/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=790&amp;oldid=prev"/>
		<updated>2025-01-24T13:22:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ۲۴ ژانویهٔ ۲۰۲۵، ساعت ۱۵:۲۲&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;خط ۵۸:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;خط ۵۸:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:کمک‌تایپ برنامه‌نویسی|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:کمک‌تایپ برنامه‌نویسی|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:نشانه‌گذاری معنایی|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:نشانه‌گذاری معنایی|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ویکی‌پدیا &lt;/del&gt;جایگزین برچسب اکس‌اچ‌تی‌ام‌ال|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[رده:الگو:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ویکی‌هزاره &lt;/ins&gt;جایگزین برچسب اکس‌اچ‌تی‌ام‌ال|{{subst:PAGENAME}}]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Code/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=55&amp;oldid=prev</id>
		<title>محمد: صفحه‌ای تازه حاوی «{{زیرصفحه توضیحات}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&gt;  == استفاده == یک متن کوتاه را در برچسب &lt;code&gt;&lt;nowiki&gt;&lt;code&gt;&lt;/nowiki&gt;&lt;/code&gt; می‌پیچاند (بروید به mw:Extension:SyntaxHighlight). این الگو برای نمونه‌های کوتاه کاربردی است و برای نمونه‌های طولانی‌تر از  {{برچسب|pre}}...» ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Code/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=55&amp;oldid=prev"/>
		<updated>2025-01-22T17:34:31Z</updated>

		<summary type="html">&lt;p&gt;صفحه‌ای تازه حاوی «{{زیرصفحه توضیحات}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;  == استفاده == یک متن کوتاه را در برچسب &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; می‌پیچاند (بروید به &lt;a href=&quot;https://www.mediawiki.org/wiki/Extension:SyntaxHighlight&quot; class=&quot;extiw&quot; title=&quot;mw:Extension:SyntaxHighlight&quot;&gt;mw:Extension:SyntaxHighlight&lt;/a&gt;). این الگو برای نمونه‌های کوتاه کاربردی است و برای نمونه‌های طولانی‌تر از  {{برچسب|pre}}...» ایجاد کرد&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{زیرصفحه توضیحات}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== استفاده ==&lt;br /&gt;
یک متن کوتاه را در برچسب &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; می‌پیچاند (بروید به [[mw:Extension:SyntaxHighlight]]). این الگو برای نمونه‌های کوتاه کاربردی است و برای نمونه‌های طولانی‌تر از  {{برچسب|pre}} یا {{برچسب|syntaxhighlight}} استفاده کرد. برای توضیح در مورد آنچه برچسب های مختلف انجام می دهد، به [[راهنما: نشانه‌گذاری ویکی]] مراجعه کنید.&lt;br /&gt;
&lt;br /&gt;
If the content includes an equals sign (=), you must specify the parameter explicitly: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|1=date=30 Feb 2010}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The template uses the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tag with the attribute &amp;lt;code&amp;gt;enclose=&amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;. This works like the combination of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags, applied to the expanded wikitext. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|some &amp;#039;&amp;#039;&amp;#039;wiki&amp;#039;&amp;#039;&amp;#039; text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; render the word &amp;quot;wiki&amp;quot; in bold, and will render the tripled-single-quotes:&lt;br /&gt;
&lt;br /&gt;
:{{code|some &amp;#039;&amp;#039;&amp;#039;wiki&amp;#039;&amp;#039;&amp;#039; text}}&lt;br /&gt;
&lt;br /&gt;
However, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|a {{الگوی}} call}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will still invoke the template:&lt;br /&gt;
&lt;br /&gt;
:{{code|a {{الگوی}} call}}&lt;br /&gt;
&lt;br /&gt;
Use {{tag|nowiki}} around the template name to avoid this problem:&lt;br /&gt;
&lt;br /&gt;
:{{code|a &amp;lt;nowiki&amp;gt;{{الگوی}}&amp;lt;/nowiki&amp;gt; call}}&lt;br /&gt;
&lt;br /&gt;
When used inline with regular text, {{tnull|code}} generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:&lt;br /&gt;
:{{code|foo &amp;amp;nbsp;&amp;lt;nowiki&amp;gt;{{code|bar baz}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp; quux.}}&lt;br /&gt;
is well spaced:&lt;br /&gt;
:foo &amp;amp;nbsp;{{code|bar baz}}&amp;amp;nbsp; quux.&lt;br /&gt;
versus:&lt;br /&gt;
:{{code|foo &amp;lt;nowiki&amp;gt;{{code|bar baz}}&amp;lt;/nowiki&amp;gt; quux.}}&lt;br /&gt;
which is going to be visually confusing for many:&lt;br /&gt;
:foo {{code|bar baz}} quux.&lt;br /&gt;
because &amp;quot;foo&amp;quot; and &amp;quot;{{code|bar}}&amp;quot; will seem more closely associated than &amp;quot;{{code|bar}}&amp;quot; and &amp;quot;{{code|baz}}&amp;quot;; the width of the space character in a monospaced font is almost always larger than in a proportional font.&lt;br /&gt;
&lt;br /&gt;
Use parameter {{{2}}} (unnamed, as {{پارا|2}}, or more explicitly as {{پارا|lang}}) to specify a language for Extension:SyntaxHighlight GeSHi. This option defaults to plain-text, i.e. no highlighting.  There is no highlighting option for wikitext as a markup language, though {{code|html4strict}} and {{code|html5}} are valid values, as are {{code|php}}, {{code|perl}}, {{code|css}}, {{code|javascript}}, {{code|mysql}} and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.&lt;br /&gt;
&lt;br /&gt;
This template does not need to be [[Wikipedia:Template substitution|substituted]].&lt;br /&gt;
&lt;br /&gt;
Finally, embedded templates do not function inside {{tnull|code}}; for longer, free-form blocks of code, which can contain templates such as {{الگوب|var}} and {{الگوب|samp}}, use {{tag|code}} as a wrapper instead of this template.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width:50%;&amp;quot; | input&lt;br /&gt;
! style=&amp;quot;width:50%;&amp;quot; | output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;Lorem {{code|ipsum &amp;#039;&amp;#039;&amp;#039;dolor&amp;#039;&amp;#039;&amp;#039;}} sit amet&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Lorem {{code|ipsum &amp;#039;&amp;#039;&amp;#039;dolor&amp;#039;&amp;#039;&amp;#039;}} sit amet&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;The declaration {{code |lang=cpp |int foo(const std::string&amp;amp; bar, const std::vector&amp;lt;long double*&amp;gt;&amp;amp; baz);}} is the prototype for a function defined later.&amp;lt;/pre&amp;gt; &lt;br /&gt;
| The declaration {{code |lang=cpp |int foo(const std::string&amp;amp; bar, const std::vector&amp;lt;long double*&amp;gt;&amp;amp; baz);}} is the prototype for a function defined later.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(&amp;quot;img&amp;quot;);}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&amp;lt;/pre&amp;gt; &lt;br /&gt;
| If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(&amp;quot;img&amp;quot;);}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Var/seealso}}&lt;br /&gt;
* [[Help:Wiki markup]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
[[رده:الگو:کمک‌تایپ برنامه‌نویسی|{{subst:PAGENAME}}]]&lt;br /&gt;
[[رده:الگو:نشانه‌گذاری معنایی|{{subst:PAGENAME}}]]&lt;br /&gt;
[[رده:الگو:ویکی‌پدیا جایگزین برچسب اکس‌اچ‌تی‌ام‌ال|{{subst:PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
</feed>