Template:MarginNote
Usage
[edit]Example 1
[edit]{{marginNote|margin=left|margin-width=300|text=Example 1}}{{lorem ipsum}}
Example 1Lorem 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.
Example 2
[edit]{{marginNote|margin=right|margin-width=300|text=Example 2|downrule=yes}}{{lorem ipsum}}
Example 2Lorem 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.
Example 3
[edit]{{center block| {{marginNote|margin=left|margin-width=300|text=Example 3<br>Example 3<br>Example 3|text-align=left|downrule=yes|rule-style=groove|rule-width=thick}} {{marginNote|margin=right|margin-width=300|text=Example 3|font-size=larger}} lorem ipsum<br>lorem ipsum<br>lorem ipsum }}
Example 3
Example 3
Example 3
Example 3
lorem ipsum
lorem ipsum
lorem ipsum
Required parameters
[edit]- margin: which margin to use for the note ("left" or "right")
- margin-width: width of margin; units are specified by x-unit
- text: the text in the margin note
Other parameters
[edit]- alley-width: space between note and text; units are specified by x-unit (default: 14)
- anchor: specify an HTML anchor if desired
- downrule: add a vertical line between note and text; style is specified by rule-color, rule-style, and rule-width ("yes" or "no"; default: "no")
- font-size: set the font size of the note (any valid CSS font-size; default: "smaller")
- line-height: set the line-height (default:110%)
- rule-color: set the colour of the vertical line; must have downrule set to "yes" for this to have an effect (any valid CSS border-color; default: inherit)
- rule-style: set the style of the vertical line; must have downrule set to "yes" for this to have an effect (any valid CSS border-style; default: solid)
- rule-width: set the width of the vertical line; must have downrule set to "yes" for this to have an effect (any valid CSS border-width; default: thin)
- spacing: set the spacing between notes; units are specified by y-unit (1)
- text-align: text alignment of note ("left" or "right"; default is opposite of margin)
- x-unit: set the unit used for horizontal distances (any valid CSS unit; default:"pt")
- y-unit: set the unit used for vertical distances (any valid CSS unit; default:"ex")
Limitations
[edit]Text parameter cannot include a block level element.