Template:Align: Difference between revisions
Template page
More actions
←Created page with '{{#switch: {{lc:{{{1|center}}}}} |left = <div style="float: left;">{{{2}}}</div> |right = <div style="float: right;">{{{2}}}</div> |center = <div align="center">{{...' |
|||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
|right = <div style="float: right;">{{{2}}}</div> | |right = <div style="float: right;">{{{2}}}</div> | ||
|center = <div align="center">{{{2}}}</div> | |center = <div align="center">{{{2}}}</div> | ||
|none = <div style="float: none;">{{{2}}}</div> | |||
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid. | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 12:58, 27 April 2023
{{{2}}}
This documentation is transcluded from Template:Align/doc.
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:
Hello world!
|