Template:Center: Difference between revisions

ArrowHead294 (talk | contribs)
Replacement for deprecated «center» HTML element, so that you don't have to constantly type out the needed «div» elements all the time.
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="text-align: center;"><div style="margin: auto auto auto auto; {{{style|}}}">{{{1}}}</div></div></includeonly><noinclude>
<includeonly><div style{{=}}"text-align: center; {{#if: {{{width|}}}|width: {{{width}}};|}}"><div style{{=}}"margin: {{{both|{{{top|auto}}}}}} auto {{{both|{{{bottom|auto}}}}}} auto;">{{{1}}}</div></div></includeonly><noinclude>
This template is a replacement for the deprecated <code><nowiki><center></nowiki></code> tag in HTML.
 
{{documentation}}
{{documentation}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>