For faster navigation, this Iframe is preloading the Wikiwand page for الگو:الگو.

الگو:الگو

(([[الگو:(({1))}|(({1))}]]))

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

الگوی پیوند به الگو یک الگوی کلان‌دستور است که برای نشان دادن نام الگو به عنوان پیوند و احاطه شده با براکت "(())" استفاده می‌شود تا نشان دهد که نام الگو چگونه در کد، استفاده می‌شود. استفاده اصلی آن در راهنمایی و مستندسازی است. نمونه ساده آن:

((الگو|Example))
می‌دهد:
((Example))

الگو، نام یک الگو را به پیونده به آن، به همراه براکت (()) نشان می‌دهد تا نشان دهد که نام الگو چگونه در کد، استفاده می‌شود. استفاده اصلی آن در راهنمایی و مستندسازی است.

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
نام الگو1

نام الگو بدون استفاده از پیشوند فضای نام “الگو:” که به صورت خودکار افزوده می‌شود

رشتهضروری

برای الگوهای پیچیده‌تر، پایین را ببینید.

نمونه

کد نتیجه توضیح
((الگو|Void)) ((Void)) استفاده استاندارد
((tls|Void)) ((subst:Example)) برای الگوهایی که باید جانشانی شوند.
((tl2|X1)) ((X1)) این الگو، پیوند را فرمت می‌کند که نشان دهد چگونه در کد، دیده می‌شود.
((tl2|SISTER=M:|3x)) ((3x)) مانند بالا برای الگوها در دیگر پروژه‌های ویکی‌مدیا (مانند فراویکی)
((tl2|SISTER=wikibooks|LANG=de:|WP)) (([hcodep://de.wikibooks.org/wiki/Vorlage:WP WP])) برای الگوها در دیگر پروژه‌های زباتی
((الگو|1==))) ((=))) اگر الگو از الگوهای کارکتری مانند ((صورتک)) یا ((!)) استفاده می‌کند از ((الگو|1=templatename)) استفاده کنید.

الگوهای مرتبط

قالب‌بندی به‌کارگیری عمومی

مقایسهٔ الگوهای پیونددهی به الگو مطابق با سبک متن و پیوند تولیدشده
سبک متن ↓ گزینه‌های ((الگوع))[نکته ۱]
برای دستیابی به سبک متن
سبک پیوند
با پیوند بدون پیوند با پیوند و جانشانی با پیوند شامل براکت‌ها با پیوند و متن جایگزین
گزینه‌های ((الگوع))[نکته ۱]
برای دستیابی به سبک پیوند
پیش‌فرض nolink=yes subst=yes braceinside=yes alttext=فلان
2=فلان
معمولی پیش‌فرض ((الگوع))[نکته ۱]
((الگو))
((الگوپ|۱|۲|...))[نکته ۲]
((الگو:الگوف))[نکته ۳]
((الگوخ))[نکته ۲]
<پیوند الگو>
((جا:الگوج))
((جا:الگو:الگوفج))[نکته ۳]
{{الگون}} ((الگوم))
کد code=yes ((الگو۲))
((الگوب))
((الگو:الگوفگ))۳[نکته ۳]
((الگوک))[نکته ۲]
<پیوند الگو>
((الگوخالی))
<پیوند الگو>
((جا:الگوگج))
تک‌فاصله plaincode=yes[نکته ۴] ((جا:الگوعج))[نکته ۵]
kbd kbd=yes[نکته ۵]
پررنگ bold=yes ((الگوپر))
پررنگ+کد bold=yes|code=yes ((الگوگپ))
کج+کد italic=yes|code=yes ((الگوگک))
  1. ۱٫۰ ۱٫۱ ۱٫۲ ((الگوع)) عمومی‌ترین الگو است که امکان انتخاب گزینه‌هایی برای هرگونه ترکیب سبک متن و/یا سبم پیوند را فراهم می‌کند.
  2. ۲٫۰ ۲٫۱ ۲٫۲ با قرار دادن متن در میان برچسب‌های <span class="nowrap">...</span> از شکسته‌شدن آن جلوگیری می‌کند.
  3. ۳٫۰ ۳٫۱ ۳٫۲ امکان پیونددهی به الگوها در هر فضای نامی را فراهم می‌کند.
  4. ((الگوع|plaincode=yes)) از <code style="border:none; background-color:transparent;">...</code> استفاده می‌کند.
  5. ۵٫۰ ۵٫۱ با استفاده از <span style="font-family:monospace;">...</span> قلم تک‌فاصله را نمایش می‌دهد.

سایر الگوهای قالب‌بندی

الگوهای تولیدکنندهٔ اثرهای قالب‌بندی اختصاصی برای الگوها، پودمان یا پارامترهای مشخص‌شده
نمونه کد اثر توضیح
((الگو۲|Hatnote|lang=fr)) ((Hatnote)) از پیوند به پروژه‌های خواهد پشتیبانی می‌کند (مثلاً fr:Hatnote)
((الگوف|کاربر:Jeeputer/شمار ویرایش‌ها)) ((کاربر:Jeeputer/شمار ویرایش‌ها)) از پیونددهی به هر فضای نامی پشتیبانی می‌کند
((دمو|<nowiki>((سرنویس|lang=fa|کمی متن))</nowiki>))
((سرنویس|lang=fa|کمی متن))

کد و نمونه‌اش را نمایش می‌دهد
((دمگ|سرنویس|کمی متن برای سرنویس)) "((سرنویس|کمی متن برای سرنویس))" می‌دهد "" [۱] کد، نمونه و پیوندی برای بسط کد الگو را نمایش می‌دهد
((tln|Hatnote)) الگو:Tln Produces a normal link to the template
((elc|Template:Hatnote))
((elc|Template:Hatnote|Hatnote))
الگو:Elc
الگو:Elc
Formats wikilink, with optional piped link text and blended suffix
((ml|Example|hello)) پودمان:Example (بحث · ویرایش · تاریخچه · پیوندها · توضیحات · زیرصفحه‌ها · آزمایش (نتایج)) Counterpart to ((tl)) for linking to Lua modules
((mlx|Example|hello)) ((#invoke:Example|hello)) Counterpart to ((tlx)) for linking to Lua modules
((para|title|<var>book title</var>)) |title=book title Formats template parameters for display, with or without values
((sclx|LASTING)) [[WP:LASTING]] Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
((tag|ref))
((xtag|templatedata))
<ref>...</ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
((dtl|Ping project)) الگو:Dtl Wikidata counterpart to ((tl))
((pf|if))
((pf|if|(({1))}|true|false))
((#if))
((#if:(({1))}|true|false))
Parser function equivalent to ((tl))
((magic word|uc:)) الگو:Magic word Magic word links
Templates producing utility links for a given template (Hatnote used here as example)
Code example Effect
((lt|Hatnote)) الگو:Hatnote (ویرایش|بحث|تاریخچه|پیوندها|پی‌گیری|سیاهه‌ها)
((lts|Hatnote)) الگو:Hatnote(ویرایش بحث پیوندها تاریخچه)
((t links|Hatnote)) Hatnote&#x20;(edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox&nbsp;diff · /test · Module:hatnote)
((tfd links|Hatnote)) Template:Hatnote&nbsp;(edit⧼tpt-languages-separator⧽talk⧼tpt-languages-separator⧽history⧼tpt-languages-separator⧽links⧼tpt-languages-separator⧽logs⧼tpt-languages-separator⧽subpages⧼tpt-languages-separator⧽delete)
((tetl|Hatnote)) ((&#160;Hatnote&#160;))
links&#160;talk&#160;view
((tsetl|Hatnote)) ((&#160;subst:Hatnote&#160;))
&#160;links&#160;talk&#160;view
((ti|Hatnote)) الگو:Hatnote (بحث، پیوندها، ویرایش)
((tic|Hatnote)) Template:Hatnote (talk, links, edit)
((tim|Hatnote)) m:Template:Hatnote (talk, backlinks, edit)
((tiw|Hatnote)) الگو:Hatnote (backlinks, edit)
((tlt|Hatnote)) ((Hatnote)) (بحث)
((ttl|Hatnote)) &#123;{Hatnote))&nbsp;(t/l)
((twlh|Hatnote)) الگو:Hatnote (پیوندها، بحث)

((Sandbox other||

{{bottomLinkPreText}} {{bottomLinkText}}
الگو:الگو
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?