Template:Issue banner/sandbox
Jump to navigation
Jump to search
This is the template sandbox page for Template:Issue banner (diff). See also the companion subpage for test cases. |
This template uses TemplateStyles: |
Usage
[edit]A template to create an "issue banner", with a left, right and central component. This is a common construction in newspapers and periodicals.
This template is designed to be used in work-specific template to avoid repeating styling that's common to all issues in a work. Therefore, this template avoids setting too much styling by default.
- left, centre, right: the main contents
- border-top, border-bottom: top and bottom borders
- border: top and bottom borders, used if not specified separately
- style: overall CSS style
- lstyle, cstyle, rstyle: extra styles for each section. Optional, default: blank.
- lbrace, rbrace: add a brace to the left/right of the right-hand cell.
yes
to enable. - lbrace-size, rbrace-size, brace-size: size adjust for the braces, optional. Default:
1.5em
- center-left, center-right: Content on the left/right of the central region (positioned to the central side of the braces, if any). Optional. Styled with cstyle.
A table can be used in any section, but you need to use {{!}} for the pipes.
Examples
[edit]Example
{{Issue banner | left = No. 1 | center = 12 September 1912 | rstyle = font-size:69%; | right = Price 2d.<br/>By post, 3d. | rbrace = yes | lbrace = yes | lbrace-size = 1.2em }}
Example: With center-left/right
{{Issue banner | left = Ed. A. Einstein. | center = 12 September 1912 | rstyle = font-size:69%; line-height: normal; | right = Price 2d.<br/>By post, 3d. | center-left = Vol. 1 | center-right = No. 15. | rbrace = yes | cstyle = color: blue; }}
See also
[edit]- Templates using this template:
- {{Running header}}: a similar construction for the running headers found at the tops of many pages