Template:Center

(Redirected from Template:C)

{{{1}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template center-aligns text. For example,

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

yields

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 is useful when the body of the template is not a single <span>...</span> item but an articulated structure. In such case, no <span>...</span> inline template should wrap {{c|...}}.

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
{{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}}


See also