Template:Subhead

From Pittsburgh Streets
Subhead

The {{subhead}} template is used to mark up a subhead when a newspaper article is transcribed. A subhead is a heading of a subsection of a newspaper article.

Parameters

Parameter Default Description
align center Horizontal alignment. Allowed values are center and left (case-insensitive).
all-small false Controls whether the subhead is rendered in all small caps. This parameter is parsed by {{boolean}}, so any value understood by that template can be used. If this is true, bold and italic will be set to false by default.
big false Controls whether the subhead is rendered in a larger font. As above, this parameter is parsed by {{boolean}}.
bold true Controls whether the subhead is rendered in bold. As above, this parameter is parsed by {{boolean}}.
dash true Controls whether a centered three-em dash is produced afterward (via CSS generated content). As above, this parameter is parsed by {{boolean}}.
italic true Controls whether the subhead is rendered in italics. As above, this parameter is parsed by {{boolean}}.
overdash false Controls whether a centered three-em dash is produced before (via CSS generated content). As above, this parameter is parsed by {{boolean}}.
style Additional CSS to add in the style attribute.

Usage examples and test cases

{{subhead|The First Glass House.}}
The First Glass House.
{{subhead|CHANGES APPROVED.|italic=no}}
CHANGES APPROVED.
{{subhead|NAMING THE STREETS.|bold=off|italic=off}}
NAMING THE STREETS.
{{subhead|OLD STREET NAMES.|all-small=true}}
OLD STREET NAMES.
{{subhead|COUNCIL MEMBER|align=left|italic=false}}
COUNCIL MEMBER
{{subhead|When Fifth Was a Cow Pasture.|align=left|big=yes|italic=no}}
When Fifth Was a Cow Pasture.
{{subhead|Aspinwall|big=yes|italic=no|style=border: 2px solid black; margin: 0 auto; width: 16em;}}
Aspinwall
{{subhead|James M. Giles.|overdash=yes}}
James M. Giles.
{{subhead|SENATE.|italic=no|dash=yes}}
SENATE.

See also