پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
ویکیهزاره
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:تورفتگی بلوک/توضیحات
(بخش)
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
== Usage == This template block-indents the value that is supplied to it. This is similar to block quotation, but it uses the HTML {{tag|div}} element, instead of [[Semantic HTML|semantically abusing]] the {{tag|blockquote}} element, which is only for [[block quotation]]s. It is also preferred over semantically abusing a colon at the start of the line, which should be used only for [[ویکیهزاره:شیوهنامه/فهرستها]]. <code><nowiki>{{block indent |1=</nowiki>{{var|The material to be indented here. May include markup, paragraph breaks, etc.}}<nowiki>}}</nowiki></code> The default display differs from the block quotation template {{tl|Quote}} in that it does not: * introduce whitespace margins above or below the indented material (just add a blank line above and/or below manually); nor * indent from the right as well as the left (there is an optional parameter for this); nor * affect the font size of its contents; nor * (on mobile) bookend the block with large quotation marks. * support that other template's attribution parameters (since it isn't for quotations). * support plain blank-line paragraph breaks inside it. Both templates support paragraph breaks using {{tag|p}} around second and subsequent paragraphs, as well as other HTML markup, and it is always safest to explicitly format with HTML rather than rely on MediaWiki's parser to do the right thing, as its behavior may be altered at any time by the developers. ===Example=== {{tlx|block indent |1{{=}}{{tl|Lorem}}}} produces: {{block indent |1={{Lorem}}}} ===Parameters=== {{para|1}} a.k.a. {{para|text}} The material to be indented. {{strong|It is always safest to explicitly define this with <code>1=</code>, not as an unnamed parameter}}, because any occurrence (e.g. in a URL, template, etc.) of the <code>=</code> character will break the template without it. {{para|left}} a.k.a. {{para|em}} the value (e.g. <kbd>0.1</kbd> or <kbd>7</kbd>) in [[Em (typography)|<code>em</code> units]] by which to indent the material from the left; defaults to <code>3</code> {{para|right}} the value, also in <code>em</code>, by which to indent the material from the right; defaults to <code>0</code> (use <kbd>7</kbd> to match the default left indentation) {{para|style}} arbitrary CSS declarations, e.g. <code>font-size: 95%;</code>. This parameter should not normally be needed. Note: It already includes <code>overflow: hidden;</code> by default, to avoid collision of the div's background with floating elements. {{para|class}} any CSS class names (e.g. as defined at [[MediaWiki:Common.css]]), comma-separated if more than one. This parameter should not normally be needed. === Comparison with {{tl|Quote}} (block quotation) === {| class="wikitable" |- ! scope="col"|<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> ! scope="col"|{{tl|Quote}} |- | width="50%"| <code><nowiki>{{lorem}}{{block indent|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}}</nowiki></code> | width="50%"| <code><nowiki>{{lorem}}{{quote|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}}</nowiki></code> |- | {{lorem}}{{block indent|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}} | {{lorem}}{{quote|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}} |} === Technical issues with block templates === {{Block bug documentation}}
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ویکیهزاره ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ویکیهزاره:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
جستجو
جستجو
در حال ویرایش
الگو:تورفتگی بلوک/توضیحات
(بخش)
افزودن مبحث