Template:SimpleLeader/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:SimpleLeader. It contains usage information, categories and other content that is not part of the original template page. |
Description
[edit]- This template generates simple leader lines. It is, at present, much less of a system burden than is dotted TOC page listing; but at the same time it is also less capable of internally handling complex formatting.
- This template is effective only when enclosed by {{SimpleLeader block/s}} and {{SimpleLeader block/e}}, as it relies upon the class/style directives established by these bracketing template calls.
Usage
[edit]{{SimpleLeader block/s}}
{{SimpleLeader|Title|Reference}}
{{SimpleLeader block/e}}
produces:
Parameters
[edit]- left
- Text to be rendered in front of the leader (may be also specified as first unnamed parameter; default: nothing/empty.)
- right
- Text to be rendered after the leader (may be also specified as second unnamed parameter; default: nothing/empty.)
- mright
- Sets value for right margin of left text entry. default: "auto".)
- pmleft
- Sets value for left margin of enclosing paragraph. default: "0.0em".)
- ptxtalign
- Sets text alignment for enclosing paragraph. default: "justify".)
- ptxtindent
- Sets value for first-line text indent of enclosing paragraph. default: "0.0em".)
- slpadleft
- Sets value for left padding of line. default: "0px".)
- fill
- Text fragment to be repeated to represent the leader itself (default: ".".)
- fillsp
- Spacing between repeated text fragments (default: "6px".)
- rwidth
- Sets width of right text entry. default: "auto". Text will be right-aligned within this column.)
- background
- Permit control of background style attributes. default "white".
- lstyle
- Permit entry of arbitrary additional style to "left" text field. default: nothing/empty.
- rstyle
- Permit entry of arbitrary additional style to "right" text. default: nothing/empty.
- pstyle
- Permit entry of arbitrary additional style to paragraph-level container. default: nothing/empty.
Examples
[edit]^^^ There ought not to be any leader dots visible above the indicated region! Nor should the background shift for content at the right!
See also
[edit]- {{SimpleLeader block/s}}
- {{Leader line}}