Jump to content

Template:Center/doc: Difference between revisions

From the Vrienden Universe, a fictional wiki
Remove unsupported imported template links from documentation
Remove unused wanted-page links from documentation and Ukraine infobox
 
Line 36: Line 36:
| {{align|left|Left}} || {{align|center|Center}} || {{align|right|Right}}
| {{align|left|Left}} || {{align|center|Center}} || {{align|right|Right}}
|}
|}
== Tracking categories ==
*{{clc|Pages using center with no arguments}}
*{{clc|Pages using center with unknown parameters}}


== See also ==
== See also ==

Latest revision as of 12:46, 21 October 2026

Description

[edit source]

It is to center elements on a page. See also Template:Align for more options and flexibility.

Markup Renders as
{{Center|Hello world!}}
Hello world!

To do this without a template, simply use the following code: <syntaxhighlight lang="HTML">

...

</syntaxhighlight> To center a table, see Help:TABLECENTER.

Notes:

  • If the markup to be centered includes an equals sign, the markup must be preceded by 1=. Example: {{Center|1=the <span style="color:red">red</span> one}}.
  • If the markup to be centered includes a displaying pipe, the pipe must be escaped as {{!}} or &#124;.

Tables

[edit source]

Using {{left}} / {{center}} / {{right}}

Header text
Left
Center
Right

Using {{align|left}} / {{align|center}} / {{align|right}}

Header text
Left
Center
Right

See also

[edit source]
  • Template:Center block
  • {{align}}
  • {{right}}, {{left}} and Template:Justify
  • Template:Image frame
  • Template:Table alignment - to align whole columns in tables.