پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:Gaps/توضیحات
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
{{Documentation subpage}} '''Template:Gaps''' outputs its unnamed arguments in order, applying the <code>margin-left: 0.25em</code> [[برگههای سبک آبشاری]] rule to all but the first, so that there will be gaps of 0.25em between the arguments. The whole output has the <code>white-space: nowrap</code> rule so that it will not be broken across several lines. It supports up to twenty unnamed arguments. In addition, it supports the '''<code>base</code>''' and '''<code>e</code>''' arguments which can be used for numbers in [[نماد علمی]]. The base will be assumed to be 10 unless otherwise specified; a [[hyphen-minus]] "-" in the exponent will be automatically substituted by a [[minus sign]] "−". It also supports the arguments '''<code>lhs</code>''' and '''<code>u</code>''' for putting left-hand sides and units within the non-breaking span (see examples below). See [[Wikipedia:Manual of Style (dates and numbers)#Large numbers]] and [[Wikipedia:Manual of Style (dates and numbers)#Decimal points]] for information about where to put the gaps in numbers. === Usage === {| class="wikitable" ! Input !! Output |- |<code><nowiki>{{gaps|−2.002|319|304|3622(15)}}</nowiki></code> |{{gaps|−2.002|319|304|3622(15)}} |- |<code><nowiki>{{gaps|299|792|458|u=m/s}}</nowiki></code> |{{gaps|299|792|458|u=m/s}} |- |<code><nowiki>{{gaps|lhs=π|3.14159|26535|89793|23846|26433|83279|...}}</nowiki></code> |{{gaps|lhs=π|3.14159|26535|89793|23846|26433|83279|...}} |- |<code><nowiki>{{gaps|P.|A.|M.}} Dirac</nowiki></code> |{{gaps|P.|A.|M.}} Dirac |- |<code><nowiki>{{nowrap|1={{gaps|sin|2''φ''}} = 2 {{gaps|sin|''φ''}} {{gaps|cos|''φ''}}}}</nowiki></code> |{{nowrap|1={{gaps|sin|2''φ''}} = 2 {{gaps|sin|''φ''}} {{gaps|cos|''φ''}}}} |- |<code><nowiki>"She disputed his statement that 'Voltaire never said "I disapprove of what you say, but I will defend to the death your right to say {{gaps|it."|'|"}}</nowiki></code> |"She disputed his statement that 'Voltaire never said "I disapprove of what you say, but I will defend to the death your right to say {{gaps|it."|'|"}} |- |<code><nowiki>{{gaps|1.602|176|487(40)|e=-19|u=C}}</nowiki></code> |{{gaps|1.602|176|487(40)|e=-19|u=C}} |- |<code><nowiki>64 MB ({{gaps|64|base=2|e=20}} bytes)</nowiki></code> |64 MB ({{gaps|64|base=2|e=20}} bytes) |} ===Performance impact=== Template:Gaps allows up to 20 parameters, and displays the gaps by setting the left-margin space of each group. The gaps are not actual spaces, so a copy/paste of the text is treated as connected, consecutive text. Template:Gaps is coded with minimal wikitext [[markup]], so equivalent hand-coded markup could not be much shorter. Counting the length of the span-tags, there can be 15,800 instances of 2-part {gaps}, or 9,500 uses of 3-part gaps, or 6,800 with 4-part gaps (etc.), per page. The template uses a minimal [[m:HELP:Expansion depth|expansion depth]] of only 2 levels (of the if-else nesting limit, such as 40 maximum), and if those 2 levels are exceeded, only the first portion will be shown. Although the text, as displayed, is consecutive as on-screen text, {gaps} for a number cannot be used in a calculation because the internal markup contains the invisible <span> tags which would be invalid text in typical numeric processing. === See also === * {{tl|gapnum}} - format a number to show 3-digit gaps, with decimal gaps of 3 or 4 digits * {{tl|Val/delimitnum}} - format a number to show commas, but decimal gaps of 3 or 4 digits * {{t|convert/gaps}} - convert an amount to show 3-digit gaps, with decimal gaps * {{tl|Space}} - to create alignment between adjacent text lines, or to space out titles, etc. <includeonly> [[رده:String manipulation templates|Gaps]] [[رده:الگو:فاصلهگذاری درونخطی]] [[رده:الگو:مبتنی بر لوآ رشته]] </includeonly>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ایرانپدیا ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ایرانپدیا:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
پیشنمایش صفحه با این الگو
الگوهای بهکاررفته در این صفحه:
الگو:Documentation subpage
(
ویرایش
)
الگو:Gaps
(
ویرایش
)
الگو:Mbox
(
ویرایش
)
الگو:Nowrap
(
ویرایش
)
الگو:T
(
ویرایش
)
الگو:Tl
(
ویرایش
)
الگو:الگو
(
ویرایش
)
الگو:زیرصفحه توضیحات
(
ویرایش
)
پودمان:Arguments
(
ویرایش
)
پودمان:Gaps
(
ویرایش
)
پودمان:Message box
(
ویرایش
)
پودمان:Message box/configuration
(
ویرایش
)
پودمان:Message box/ombox.css
(
ویرایش
)
پودمان:Yesno
(
ویرایش
)
جستجو
جستجو
در حال ویرایش
الگو:Gaps/توضیحات
افزودن مبحث