Template:Directory/doc

From Pittsburgh Streets

The {{directory}} template is used to make a citation for a city directory or street guide. Sources that use the {{directory}} template are added to Category:City directory and street guide sources.

Full syntax

Template with all parameters Parameter Description
{{directory
 |first1=
 |last1=
 |first2=
 |last2=
 |title=
 |subtitle1=
 |subtitle2=
 |subtitle3=
 |subtitle4=
 |issue=
 |publisher=
 |city=
 |year=
 |donslist=
 |gbooks=
 |hathi=
 |histpgh=
 |archive=
 |lccn=
 |url=
 |note=
 |page={{{page|}}}
 |is-subref={{{is-subref|}}}
 |source-name={{subst:PAGENAME}}
}}
first1 First author's first name. For a directory with only one author, first can be used as a synonym.
last1 First author's last name, or the whole name of the first author when that author has a single name (such as an organization). For a directory with only one author, last can be used as a synonym.
first2 Second author's name.
last2
title Directory title. This should be in title case.
subtitle1 First subtitle. This should be in sentence case. For a directory with only one subtitle, subtitle can be used as a synonym.
subtitle2 Additional subtitles.
subtitle3
subtitle4
issue The issue of the directory. This should be a complete phrase, e.g., twenty-eighth annual issue.
publisher The name of the publisher.
city The city where the directory was published.
year The year of publication.
donslist One or more DonsList.net IDs, separated by spaces.
gbooks One or more Google Books IDs, separated by spaces.
hathi One or more HathiTrust IDs, separated by spaces.
histpgh One or more Historic Pittsburgh IDs, separated by spaces.
archive One or more Internet Archive IDs, separated by spaces.
lccn One or more LCCNs (Library of Congress Control Numbers), separated by spaces.
url One or more URLs, separated by spaces.
note A note to be appended to the end of the citation.
page A specific page or page range being cited. Normally this should not be provided for the source itself (i.e., in the "Source" namespace), but rather passed as an argument when the source is cited on a page. When providing a value for page, if the cited pages are not actually numbered, surround the value with square brackets: [...]. (See {{page}}.)
is-subref Set this parameter to true when citing this directory inside the definition of another source in the "Source" namespace. This changes some punctuation and suppresses the categorization of the source in Category:City directory and street guide sources.
source-name The page name of this source (in the "Source" namespace). This is used to provide a link to the source page.

Usage examples

{{directory
 |first=James M.
 |last=Riddle
 |title=The Pittsburgh Directory for 1815
 |subtitle=Containing the names, professions and residence of the heads of families and persons in business, in the borough of Pittsburgh, with an appendix containing a variety of useful information
 |publisher=James M. Riddle
 |city=Pittsburgh
 |year=1815
 |archive=pittsburghdirect00ridd
 |note=Republished by the Colonial Trust Co., Pittsburgh, 1905 ({{gbooks|9ihRAAAAYAAJ}}; {{histpgh|00ach3238m}}); and by Duquesne Smelting Corporation, Pittsburgh, 1940 ({{archive|pittsburghdirect00repu}}).
 |page={{{page|}}}
 |is-subref={{{is-subref|}}}
 |source-name=Riddle
}}

James M. Riddle. The Pittsburgh Directory for 1815: Containing the names, professions and residence of the heads of families and persons in business, in the borough of Pittsburgh, with an appendix containing a variety of useful information. James M. Riddle, Pittsburgh, 1815. Internet Archive pittsburghdirect00ridd. Republished by the Colonial Trust Co., Pittsburgh, 1905 (Google Books 9ihRAAAAYAAJ; Historic Pittsburgh 00ach3238m); and by Duquesne Smelting Corporation, Pittsburgh, 1940 (Internet Archive pittsburghdirect00repu). [view source]riddle