الگو:تورفتگی بلوک/توضیحات: تفاوت میان نسخهها
صفحهای تازه حاوی «{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see ویکیپدیا:ویکیداده) --> {{tsh|bi}} == 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 semantically abusing the {{tag|blockquote}} element, which is only f...» ایجاد کرد |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[ | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[ویکیهزاره:ویکیداده]]) --> | ||
{{tsh|bi}} | {{tsh|bi}} | ||
== Usage == | == 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 [[ | 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> | <code><nowiki>{{block indent |1=</nowiki>{{var|The material to be indented here. May include markup, paragraph breaks, etc.}}<nowiki>}}</nowiki></code> | ||
نسخهٔ کنونی تا ۳۰ دسامبر ۲۰۲۵، ساعت ۲۲:۴۰
| این زیرصفحهٔ مستندات الگو:تورفتگی بلوک است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
Usage
This template block-indents the value that is supplied to it. This is similar to block quotation, but it uses the HTML <div>...</div> element, instead of semantically abusing the <blockquote>...</blockquote> element, which is only for block quotations. It is also preferred over semantically abusing a colon at the start of the line, which should be used only for ویکیهزاره:شیوهنامه/فهرستها.
{{block indent |1=The material to be indented here. May include markup, paragraph breaks, etc.}}
The default display differs from the block quotation template {{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 <p>...</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
{{block indent|1={{Lorem}}}}
produces:
Parameters
|1= a.k.a. |text= The material to be indented. {{{1}}}, because any occurrence (e.g. in a URL, template, etc.) of the = character will break the template without it.
|left= a.k.a. |em= the value (e.g. 0.1 or 7) in em units by which to indent the material from the left; defaults to 3
|right= the value, also in em, by which to indent the material from the right; defaults to 0 (use 7 to match the default left indentation)
|style= arbitrary CSS declarations, e.g. font-size: 95%;. This parameter should not normally be needed. Note: It already includes overflow: hidden; by default, to avoid collision of the div's background with floating elements.
|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 {{Quote}} (block quotation)
| {{تورفتگی بلوک}} | {{Quote}} |
|---|---|
{{lorem}}{{block indent|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}}
|
{{lorem}}{{quote|1={{lorem}}<p>{{lorem}}</p>}}{{lorem}}
|
| طرحنمانوشتهای بیجهت، جهت آزمایش: این طرحنما میآزماید نگاره و اندازه و شکل را. آیا آن که ما خوانیم ترا برای شایستتان را میگواهد یا خوانشها را مینماید. نمایان کنم بر شمایان خواهان شدن نشدن و نا شدن و که این برگزیدگان ناگزیده از کدامین توان با ناتوانان پرتوان شمارش نموده آیا همچنان خواستار ناشمردنیها بوده و هستند. آیا نیستند و چرا؟ این نوشتار آزمایشی چرا و به چه علت از شمایان برمیشمارد و از کجا و به کدامین نوا برمینگارد و بازنمیایستاندتان؟ خواهشمندی ناشنودگان از پرمایگی نابیوسیدگان برتر نباد و مایه بیمایگی سراسر شایان بادا. باشد تا آزمونها خوش و آزمودهها سرخوش از بوته ناخوشیها سراسر سر بدر آورده با باد همراه روند.طرحنمانوشتهای بیجهت، جهت آزمایش: این طرحنما میآزماید نگاره و اندازه و شکل را. آیا آن که ما خوانیم ترا برای شایستتان را میگواهد یا خوانشها را مینماید. نمایان کنم بر شمایان خواهان شدن نشدن و نا شدن و که این برگزیدگان ناگزیده از کدامین توان با ناتوانان پرتوان شمارش نموده آیا همچنان خواستار ناشمردنیها بوده و هستند. آیا نیستند و چرا؟ این نوشتار آزمایشی چرا و به چه علت از شمایان برمیشمارد و از کجا و به کدامین نوا برمینگارد و بازنمیایستاندتان؟ خواهشمندی ناشنودگان از پرمایگی نابیوسیدگان برتر نباد و مایه بیمایگی سراسر شایان بادا. باشد تا آزمونها خوش و آزمودهها سرخوش از بوته ناخوشیها سراسر سر بدر آورده با باد همراه روند. | طرحنمانوشتهای بیجهت، جهت آزمایش: این طرحنما میآزماید نگاره و اندازه و شکل را. آیا آن که ما خوانیم ترا برای شایستتان را میگواهد یا خوانشها را مینماید. نمایان کنم بر شمایان خواهان شدن نشدن و نا شدن و که این برگزیدگان ناگزیده از کدامین توان با ناتوانان پرتوان شمارش نموده آیا همچنان خواستار ناشمردنیها بوده و هستند. آیا نیستند و چرا؟ این نوشتار آزمایشی چرا و به چه علت از شمایان برمیشمارد و از کجا و به کدامین نوا برمینگارد و بازنمیایستاندتان؟ خواهشمندی ناشنودگان از پرمایگی نابیوسیدگان برتر نباد و مایه بیمایگی سراسر شایان بادا. باشد تا آزمونها خوش و آزمودهها سرخوش از بوته ناخوشیها سراسر سر بدر آورده با باد همراه روند.طرحنمانوشتهای بیجهت، جهت آزمایش: این طرحنما میآزماید نگاره و اندازه و شکل را. آیا آن که ما خوانیم ترا برای شایستتان را میگواهد یا خوانشها را مینماید. نمایان کنم بر شمایان خواهان شدن نشدن و نا شدن و که این برگزیدگان ناگزیده از کدامین توان با ناتوانان پرتوان شمارش نموده آیا همچنان خواستار ناشمردنیها بوده و هستند. آیا نیستند و چرا؟ این نوشتار آزمایشی چرا و به چه علت از شمایان برمیشمارد و از کجا و به کدامین نوا برمینگارد و بازنمیایستاندتان؟ خواهشمندی ناشنودگان از پرمایگی نابیوسیدگان برتر نباد و مایه بیمایگی سراسر شایان بادا. باشد تا آزمونها خوش و آزمودهها سرخوش از بوته ناخوشیها سراسر سر بدر آورده با باد همراه روند. |
Technical issues with block templates
See also
- {{indent}}, which indents a single line, after a newline, using a mixture of en- and em-dash sized spaces.
- {{spaces}}, which indents a single line (or content inline in one) uses non-breaking spaces.
- {{in5}}, which indents a single line (or content inline in one), skipping up to fifty equal en-sized spaces.
- {{quote}}, the block quotation template
- {{hanging indent}}, the block hanging indent template