ಟೆಂಪ್ಲೇಟು:Center/doc

ವಿಕಿಸೋರ್ಸ್ದಿಂದ

Usage[ಸಂಪಾದಿಸಿ]

This template center-aligns text. For example,

Example

{{center|'''Example text'''}}

Example text

Other parameters[ಸಂಪಾದಿಸಿ]

style[ಸಂಪಾದಿಸಿ]

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.

Option 1

{{center|style=font-family:serif;|
Title of the work

by

Author of the work
}}

yields

Title of the work

by

Author of the work

Option 2 (block template)

{{center|{{serif block|
<!--or {{serif block|{{center| -->
Title of the work

by

Author of the work
}}}}

yields

Title of the work

by

Author of the work

Option 3 (if block template not available)

{{center|
{{serif|Title of the work}}

{{serif|by}}

{{serif|Author of the work}}
}}

yields

Title of the work

by

Author of the work

Redirects[ಸಂಪಾದಿಸಿ]

  • {{c}}

Tracking categories[ಸಂಪಾದಿಸಿ]

See also[ಸಂಪಾದಿಸಿ]

Template data[ಸಂಪಾದಿಸಿ]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Center

Align text to the center

Template parameters

This template prefers inline formatting of parameters.

ಪರಿಮಿತಿವಿವರನಮೂನೆಸ್ಥಾನಮಾನ
stylestyle

Additional CSS styles to apply to the block

Contentಐಚ್ಛಿಕ
texttext 1

The text to center, this can be more than one paragraph.

Contentrequired
nomarginnomargin

no description

Suggested values
yes, no
Stringಐಚ್ಛಿಕ
nocatnocat

no description

Unknownಐಚ್ಛಿಕ