Template:align
Appearance
{{{2}}}
- The following documentation is located at Template:align/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template aligns its contents to the left, to the right, or centered.
If the alignment is set to center it is implemented using {{center}}, but otherwise it is implemented using a <div> with CSS float: left; or float: right;.
Parameters
[edit]|1=(optional)- The alignment. The valid values are left, right, and center. Defaults to center if not specified. While this parameter is optional,
|2=is required. (Use{{align||foo}}to omit|1=.)
|2=(required)- The content to be aligned.
|style=(optional)
Ignored unless the alignment is set to center, in which case any value given is sent directly to {{center}}'s |style= parameter.