साँचा:Center/doc
| This is a documentation subpage for साँचा:Center. It contains usage information, categories, and other content that is not part of the original साँचा page. |
| This template uses TemplateStyles: |
यह साँचा ब्लॉक तत्वों का प्रयोग करता है, जैसे कि अधिक जानकारी के लिए अंग्रेज़ी में en:H:DIVSPAN देखें। |
प्रयोगविधि
[सम्पादित करें]This template center-aligns text. For example,
Example
{{center|'''Example text'''}}
Example text
अन्य प्राचल
[सम्पादित करें]स्टाइल
[सम्पादित करें]Where there is a need to specify the style of text for the whole <div>...</div> item, an optional style parameter can be used.
This can be useful when the body of the template is not a single inline item but a multi-paragraph structure. If the formatting in question has a "block" template, you can also nest that inside or outside the {{center}} template:
The following solutions are then applicable.
पुनर्प्रेषण
[सम्पादित करें]- {{c}}
निगरानी श्रेणियाँ
[सम्पादित करें]- Category:Pages using center with no text argument—Pages where the template is called with no text or first argument, typically because the content contains an = or otherwise confuses the parser
यह भी देखें
[सम्पादित करें]- साँचा:Block center
- साँचा:Center block
- साँचा:Center inline (span-based version)
Template data
[सम्पादित करें]Align text to the center
| पैरामीटर | विवरण | प्रकार | स्थिति | |
|---|---|---|---|---|
| style | style | Additional CSS styles to apply to the block | सामग्री | वैकल्पिक |
| text | text 1 | The text to center, this can be more than one paragraph. | सामग्री | आवश्यक |
| nomargin | nomargin | कोई विवरण नहीं
| स्ट्रिंग | वैकल्पिक |
| nocat | nocat | कोई विवरण नहीं | अज्ञात | वैकल्पिक |