Template:Align
{{{2}}}
- The following documentation is located at Template:Align/documentation. [edit]
- Useful links: subpage list • transclusions • redirects • 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
|1=
- 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=
- The content to be aligned.
|style=
Ignored unless the alignment is set to center, in which case any value given is sent directly to {{center}}
's |style=
parameter.