Template:Issue banner/doc

From Wikisource
Jump to navigation Jump to search

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
}}

No. 1

}

12 September 1912

{

Price 2d.
By post, 3d.

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;
}}

Ed. A. Einstein.

Vol. 1

12 September 1912

No. 15.

{

Price 2d.
By post, 3d.

See also[edit]