Template:Both margins/doc
This is a documentation subpage for Template:Both margins. It contains usage information, categories 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, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
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, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
See also
[edit]- {{left margin}}