Template:Center: Difference between revisions

From Ymirheim Wiki
m (Protected "Template:Center" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
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 `div` with `text-align: center` 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]]
</noinclude>

Revision as of 16:10, 8 July 2024

A template used to align a content within its block in the center. It produces a `div` with `text-align: center` style.

Examples

{{Center|A centered text}}
A centered text


{{Center|
Multiple<br/>Lines

Of

Text
}}

Multiple
Lines

Of

Text


{{Center|[[File:Shelphy Adriana.png|250px|A centered image]]}}
A centered image