Template:Align: Difference between revisions
Template page
More actions
+none |
m $$$$$%%% |
||
| Line 1: | Line 1: | ||
{{#switch: {{lc:{{{1|center}}}}} | [[]]{{#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>>>> | ||
Revision as of 10:37, 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! >>>
|
>>>