Template:Numbered para 2/doc
This is a documentation subpage for Template:Numbered para 2. It contains usage information, categories and other content that is not part of the original template page. |
Adds a left margin to a paragraph (or paragraphs) and places a number in that margin.
Parameters
[edit]- 1 (optional). Number to place in margin. Can be any text. If larger than margin, will flow into text block and push text (see example below).
- 2 (required). Paragraph text.
- depth or d (optional). Depth of penetration into left margin, default 3em.
- align or a (optional). Text alignment within the span, default to "left". If set, the width is fixed, to allow alignment. Otherwise, width is unset, and extended as far to the right as needed.
- padding or p (optional). The space on the right of the text, default 0.2em.
- width or w (optional). Width of left-aligned text block, add this parameter for a multi-line block.
- style or s (optional). Custom CSS styling for all content (applies to both the margin number and the paragraph text).
Examples
[edit]Example 1: simple usage
[edit]{{np2|123|{{lorem ipsum}}}}
Example 2: compound usage
[edit]{{np2|123| {{lorem ipsum}}
{{lorem ipsum}}}}
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.
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.
Example 3: nested usage
[edit]{{np2|123.| {{lorem ipsum}}
{{np2|abc.| {{lorem ipsum}}}}}}
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.
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.
Example 4: modified parameters
[edit]{{np2|d=200px|a=right}}
Example 5: overflow
[edit]{{np2|123,456,789.0|{{lorem ipsum}}}}