<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://prdmc.ca/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ACenter%2Fdoc</id>
	<title>Template:Center/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://prdmc.ca/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ACenter%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Center/doc&amp;action=history"/>
	<updated>2026-04-14T22:23:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://prdmc.ca/w/index.php?title=Template:Center/doc&amp;diff=1176&amp;oldid=prev</id>
		<title>RandomUser34: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Center/doc&amp;diff=1176&amp;oldid=prev"/>
		<updated>2026-02-15T22:27:40Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:27, 15 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key prd_wiki:diff:1.41:old-1175:rev-1176 --&gt;
&lt;/table&gt;</summary>
		<author><name>RandomUser34</name></author>
	</entry>
	<entry>
		<id>https://prdmc.ca/w/index.php?title=Template:Center/doc&amp;diff=1175&amp;oldid=prev</id>
		<title>wp&gt;JJMC89 bot III: Moving :Category:Wikipedia XHTML tag-replacing templates to :Category:Wikipedia HTML tag-replacing templates per Wikipedia:Categories for discussion/Log/2025 August 28#Category:Wikipedia XHTML tag-replacing templates</title>
		<link rel="alternate" type="text/html" href="https://prdmc.ca/w/index.php?title=Template:Center/doc&amp;diff=1175&amp;oldid=prev"/>
		<updated>2025-09-07T22:26:40Z</updated>

		<summary type="html">&lt;p&gt;Moving &lt;a href=&quot;/w/index.php?title=Category:Wikipedia_XHTML_tag-replacing_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Wikipedia XHTML tag-replacing templates (page does not exist)&quot;&gt;Category:Wikipedia XHTML tag-replacing templates&lt;/a&gt; to &lt;a href=&quot;/w/index.php?title=Category:Wikipedia_HTML_tag-replacing_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Wikipedia HTML tag-replacing templates (page does not exist)&quot;&gt;Category:Wikipedia HTML tag-replacing templates&lt;/a&gt; per &lt;a href=&quot;https://en.wikipedia.org/wiki/Categories_for_discussion/Log/2025_August_28#Category:Wikipedia_XHTML_tag-replacing_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Categories for discussion/Log/2025 August 28&quot;&gt;Wikipedia:Categories for discussion/Log/2025 August 28#Category:Wikipedia XHTML tag-replacing templates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{high use}}&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
It is to center elements on a page. See also [[Template:Align]] for more options and flexibility.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{See also|Span and div}}&lt;br /&gt;
{{markup&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{Center|Hello world!}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| {{Center|Hello world!}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To do this without a template, simply use the following code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;...&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To center a table, see [[Help:TABLECENTER]].&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* If the markup to be centered includes an equals sign, the markup must be preceded by &amp;lt;code&amp;gt;1=&amp;lt;/code&amp;gt;. Example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Center|1=the &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;red&amp;lt;/span&amp;gt; one}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If the markup to be centered includes a displaying pipe, the pipe must be escaped as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;amp;amp;#124;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Tables ===&lt;br /&gt;
Using {{tlc|left}} / {{tlc|center}} / {{tlc|right}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;3&amp;quot; style=&amp;quot;width:300px&amp;quot;| Header text&lt;br /&gt;
|-&lt;br /&gt;
| {{Left|Left}} || {{Center|Center}} || {{Right|Right}}&lt;br /&gt;
|}&lt;br /&gt;
Using {{tlc|align|left}} / {{tlc|align|center}} / {{tlc|align|right}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;3&amp;quot; style=&amp;quot;width:300px&amp;quot;| Header text&lt;br /&gt;
|-&lt;br /&gt;
| {{align|left|Left}} || {{align|center|Center}} || {{align|right|Right}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Tracking categories ==&lt;br /&gt;
*{{clc|Pages using center with no arguments}}&lt;br /&gt;
*{{clc|Pages using center with unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Content&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Content to be centered&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;style&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Custom CSS&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Optional css styling for the centered text&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;A simple template to center-align content in tables and other places. Be aware that the center class is applied to this template, which means every element within the template has its left and right margins set to auto. This may harm some templates.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Center block}}&lt;br /&gt;
* {{tl|align}}&lt;br /&gt;
* {{tl|right}}, {{tl|left}} and {{tl|justify}}&lt;br /&gt;
* {{tl|Image frame}}&lt;br /&gt;
* {{tl|Table alignment}} - to align whole columns in tables.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Positioning templates]]&lt;br /&gt;
[[Category:Typing-aid templates]]&lt;br /&gt;
[[Category:Wikipedia HTML tag-replacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wp&gt;JJMC89 bot III</name></author>
	</entry>
</feed>