Template:Align/documentation

From The Languages of David J. Peterson
Jump to navigation Jump to search
Documentation for Template:Align. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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.