साँचा:Block center/doc
This is a documentation subpage for साँचा:Block center. It contains usage information, categories and other content that is not part of the original साँचा page. |
उपयोग
सम्पादनयह साँचा एक पाठ खंड को बिना पाठ की सिधाई को प्रभावित किए पृष्ठ के केंद्र में लगा देता है।
- 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 massa. |
- Center
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula eget dolor.
Aenean massa.
Parameters
सम्पादनtitle
सम्पादन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 massa. |
width
सम्पादन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 massa. |
style
सम्पादन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, consectetuer adipiscing elit. Aenean commodo ligula eget dolor; Aenean massa. </poem>}}
Lorem ipsum dolor sit amet, |