Template:Center: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
(Created page with "<div class="center">{{{1}}}</div>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto;{{#if: {{{style|}}} | {{{style}}};}}">{{{1}}}</div>{{#if:{{{1|}}}||[[Category:Pages with misused templates]][[Category:Pages with misused templates/Center]]}}</includeonly><noinclude>
<div class="center">{{{1}}}</div>
{{documentation}}
</noinclude>

Latest revision as of 06:05, 19 December 2019

[view | edit | purge]Documentation

Usage[]

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

no description

Contentrequired
Custom CSSstyle

no description

Unknownoptional
[view | edit | purge]The above documentation is transcluded fromTemplate:Center/doc.