Template:Block indent/doc#Technical issues with block templates

{{Documentation subpage}}

{{used in system}}

{{tsh|bi}}

{{Uses TemplateStyles|Template:Block indent/styles.css}}

Usage

{{tl|block indent}} adds a block of indented text to a page.

:{{block indent|1={{var|The material to be indented here. May include markup, paragraph breaks, etc.}}}}

=Example=

{{tlx|block indent|1{{=}}{{tl|Lorem ipsum}}}}

produces:

{{block indent|1={{Lorem ipsum}}}}

=Parameters=

{{para|1}} a.k.a. {{para|text}} The material to be indented. {{strong|1=It is always safest to explicitly define this with 1=, not as an unnamed parameter}}, because any occurrence (e.g. in a URL, template, etc.) of the = character will break the template without it.

{{para|left}} a.k.a. {{para|em}} the value (e.g. 0.1 or 7) in em units by which to indent the material from the left; defaults to 3

{{para|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)

{{para|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.

{{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|Blockquote}} (block quotation)=

class="wikitable"
scope="col"|{{{{BASEPAGENAME}}}}

! scope="col"|{{tl|Blockquote}}

width="50%"| {{Lorem ipsum}}{{block indent|1={{Lorem ipsum}}{{Lorem ipsum}}}}{{Lorem ipsum}}

| width="50%"| {{Lorem ipsum}}{{Blockquote|1={{Lorem ipsum}}{{Lorem ipsum}}}}{{Lorem ipsum}}

{{Lorem ipsum}}{{block indent|1={{Lorem ipsum}}{{Lorem ipsum}}}}{{Lorem ipsum}}

| {{Lorem ipsum}}{{Blockquote|1={{Lorem ipsum}}{{Lorem ipsum}}}}{{Lorem ipsum}}

=Technical issues with block templates=

{{Block bug documentation}}

See also

  • {{tl|indent}}, which indents a single line, after a newline, using a mixture of en- and em-sized spaces
  • {{tl|spaces}}, which indents a single line (or content inline in one) uses non-breaking spaces
  • {{tl|in5}}, which indents a single line (or content inline in one), skipping up to fifty equal en-sized spaces
  • {{tl|hanging indent}}, the block hanging indent template
  • {{tl|Blockquote}}, the block quotation template, which is only for quotations

{{semantic markup templates}}

{{Sandbox other||

Category:Inline spacing templates

Category:Typing-aid templates

Category:Semantic markup templates

}}