Template:Align: Difference between revisions
Template page
More actions
m $$$$$%%% |
|||
| Line 1: | Line 1: | ||
{{#switch: {{lc:{{{1|center}}}}} | |||
|left = <div style="float: left;">{{{2}}}</div> | |left = <div style="float: left;">{{{2}}}</div> | ||
|right = <div style="float: right;">{{{2}}}</div> | |right = <div style="float: right;">{{{2}}}</div> | ||
| Line 7: | Line 7: | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{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!
|