Template:Center: Difference between revisions
From Ymirheim Wiki
(Created page with "<div style="text-align: center;">{{{1}}}</div>") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="text-align: center;">{{{1}}}</div> | <includeonly><div style="text-align: center;">{{{1}}}</div></includeonly><noinclude> | ||
A template used to align a content within its block in the center. | |||
It produces a <code>div</code> with <code>text-align: center</code> style. | |||
== Examples == | |||
<pre><nowiki>{{Center|A centered text}}</nowiki></pre> | |||
{{Center|A centered text}} | |||
<pre><nowiki>{{Center| | |||
Multiple<br/>Lines | |||
Of | |||
Text | |||
}}</nowiki></pre> | |||
{{Center| | |||
Multiple<br/>Lines | |||
Of | |||
Text | |||
}} | |||
<pre><nowiki>{{Center|[[File:Shelphy Adriana.png|250px|A centered image]]}}</nowiki></pre> | |||
{{Center|[[File:Shelphy Adriana.png|250px|A centered image]]}} | |||
[[Category:Formatting Templates{{#translation:}}]] | |||
</noinclude> |