This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the फलकम् page itself, see फलकम्:Block center.

This template places a block of text in the center of the page, without affecting the text alignment within that block.

{{bc}} is a shorter form of this template that redirects here.


Comparison of {{Block center}} and {{Center}}

This template retains the current text alignment (usually left), but moves the entire block of text into the center. To change to centred text alignment, use {{Center}} instead.

Block center

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

Aenean massa.

Center

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

Aenean massa.


Where there is a need to give the title of the work, an optional "title" parameter can be used. Sometimes this is will center the title better than a stand-alone line will; other times not - it usually depends on if a fixed width (next example) is forced or not.

{{block center|title=LOREM IPSUM|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/>
Aenean commodo ligula eget dolor.

Aenean massa.}}


Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

Aenean massa.

Where there is a requirement to fix the width of the block, an optional "width" parameter can be used. Sometimes this is required to force a wider width when line wrap occurs.

{{block center|width=300px|Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br/>
Aenean commodo ligula eget dolor.

Aenean massa.}}


Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.

Aenean massa.

Where there is a need to specify the style of the text, an optional "style" parameter can be used. This parameter takes the same style attributes that can be set for any table.

{{block center|style=font-style:italic|<poem>
Lorem ipsum dolor sit amet,
{{gap}}consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
{{gap}}Aenean massa.
</poem>}}


Lorem ipsum dolor sit amet,
 consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
 Aenean massa.

The text alignment within the (overall) centered block may be controlled using this (default: left):

{{block center|align=right|<poem>
Lorem ipsum dolor sit amet,
{{gap}}consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
{{gap}}Aenean massa.
</poem>}}


Lorem ipsum dolor sit amet,
 consectetuer adipiscing elit.
Aenean commodo ligula eget dolor;
 Aenean massa.

If you use many separate block centers you will find that every page has a slightly different alignment, however this template cannot be left "dangling" and closed on another page to create one big block center. If you have a multipage block center, you can use {{block center/s}} and {{block center/e}} to open and close it on each page. Every page must have one of each, one at the start and one at the end. However, you may place one or both of them in the header or footer, so they will not be transcluded to the main namespace. When the pages are all transcluded, you will end up with just one {{block center/s}} and just one {{block center/e}} at the start and end of the section, respectively.

Header

Nothing is required in the header

Body
{{block center/s}}
Start of the block center text.
Contents of the block center goes here.
Footer
{{block center/e}}
Header
{{block center/s}}
Body
Contents of the block center go here; this continues the previous page.
Footer
{{block center/e}}
Header
{{block center/s}}

Body
Contents of the block center go here; this continues the previous page.
Last bit of block center text
{{block center/e}}
Footer

Nothing is required in the footer of the last page.


"https://sa.wikisource.org/w/index.php?title=फलकम्:Block_center/doc&oldid=126959" इत्यस्माद् प्रतिप्राप्तम्