Template:Names

From Pittsburgh Streets
The {{names}} template formats a list of zero or more names.

See also {{name}}.

Full syntax

Template with all parameters Parameter Description
{{names
 |before=
 |prefix1=
 |first1=
 |last1=
 |suffix1=
 |note1=
 |prefix2=
 |first2=
 |last2=
 |suffix2=
 |note2=
 |prefix3=
 |first3=
 |last3=
 |suffix3=
 |note3=
 |prefix4=
 |first4=
 |last4=
 |suffix4=
 |note4=
 |add-punc=
 |tag=
 |tag-plural=
 |after=
}}
before A string to put before the list if the list is nonempty.
prefix1 First person's prefix (e.g., Mrs.). Do not use this for honorary prefixes like "Dr." or "Prof." See {{name}}. If {{names}} is being called with only one name, prefix can be used as a synonym.
first1 First person's first (given) name. If {{names}} is being called with only one name, first can be used as a synonym.
last1 First person's last (family) name, or the whole name of the first entity when that entity has a single name (such as an organization). If {{names}} is being called with only one name, last can be used as a synonym.
suffix1 First person's suffix (e.g., Jr.). See {{name}}. If {{names}} is being called with only one name, suffix can be used as a synonym.
note1 Note to follow the first person's name (e.g., [pseudonym]). See {{name}}. If {{names}} is being called with only one name, note can be used as a synonym.
prefix2 Additional names.
first2
last2
suffix2
note2
prefix3
first3
last3
suffix3
note3
prefix4
first4
last4
suffix4
note4
add-punc A punctuation character to be appended to the end of the list of names (if it does not conflict with punctuation already there). See {{add-punc}}.
tag An explanatory item to be appended to the end of the list of names if the list contains exactly one name (e.g., ed. for a list of editors).
tag-plural An explanatory item to be appended to the end of the list of names if the list contains more than one name (e.g., eds. for a list of editors). If tag is specified but tag-plural is not, then tag will also be used when the list contains more than one name.
after A string to put after the list if the list is nonempty.

Usage examples

Single name

{{names
 |first=Annie Clark
 |last=Miller
}}

Annie Clark Miller

{{names
 |last=Allegheny City Society
}}

Allegheny City Society

{{names
 |prefix=Mrs.
 |first=Elvert M.
 |last=Davis
}}

Mrs. Elvert M. Davis

{{names
 |first=Henry W.
 |last=Oliver
 |suffix=Jr.
}}

Henry W. Oliver, Jr.

Multiple names

{{names
 |first1=Dan
 |last1=Rooney
 |first2=Carol
 |last2=Peterson
}}

Dan Rooney and Carol Peterson

{{names
 |last1=Sidney & Neff
 |first2=S.
 |last2=McRea
}}

Sidney & Neff and S. McRea

Using add-punc

{{names
 |first1=Joann
 |last1=Cantrell
 |first2=James
 |last2=Wudarczyk
 |add-punc=.
}}

Joann Cantrell and James Wudarczyk.

{{names
 |first1=Robert D.
 |last1=Ilisevich
 |first2=Carl K.
 |last2=Burkett
 |suffix2=Jr.
 |add-punc=.
}}

Robert D. Ilisevich and Carl K. Burkett, Jr.

Using before, after, and tag

{{names
 |before=(
 |first=Helen
 |last=Wilson
 |tag=ed.
 |tag-plural=eds.
 |after=)
}}

(Helen Wilson, ed.)

{{names
 |before=(
 |first1=William Allan
 |last1=Neilson
 |first2=Thomas A.
 |last2=Knott
 |first3=Paul W.
 |last3=Carhart
 |tag=ed.
 |tag-plural=eds.
 |after=)
}}

(William Allan Neilson, Thomas A. Knott, and Paul W. Carhart, eds.)

Empty list

{{names}}


{{names
 |before=(
 |tag=ed.
 |tag-plural=eds.
 |after=)
}}