Template:Both margins/doc
| This is a documentation subpage for Template:Both margins. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
Usage [edit]
This template formats text with an indented Both margins; that is, an indent that applies to all lines.
- Usage
- {{Both margins|size of left margin|size of right margin|text}}
- Example
{{Both margins|5em|10em|{{lorem ipsum}}}}
produces:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
Alternative usages [edit]
You can avoid passing the text content as parameter 3, using the template as a "div begin", then closing the template with a tag </div> at the end of the text.
- Example
{{Both margins|5em|10em}}{{lorem ipsum}}</div>
produces:
The template can be used for right margins only by leaving an empty first parameter
- Example
{{Both margins||10em|{{lorem ipsum}}}}
produces:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.