Template:Align: Difference between revisions
en>XDanielx doc |
en>XDanielx m +cat |
||
| Line 4: | Line 4: | ||
|center = <div align="center">{{{1}}}</div> | |center = <div align="center">{{{1}}}</div> | ||
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid. | |#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid. | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:Formatting templates]] | |||
</noinclude> | |||
Revision as of 02:57, 7 December 2007
This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:
{{align|position|content}}
Examples
{{align|left|'''Hello world!'''}} produces this:
Hello world!
|
{{align|right|'''Hello world!'''}} produces this:
Hello world!
|
{{align|center|'''Hello world!'''}} produces this:
center
|