User:Mathglot/sandbox/Templates/Sbds

{{Documentation|content= Companion to {{tl|Excerpt}}, for shortening parenthetical birth-death strings to just years. Typical usage addresses excerpting the lead of a biographical article in which the lead sentence contains such a parenthetical expression.

Parameters
There is one required positional parameter, consisting of a string which contains a parenthetical expression with a birth and death year separated by a dash, with optional text before and after it. I.e., of the form: "Socrates (pronunciation; Month day, YYYY – Month day YYYY) was a man."

Examples

 * Note: (No match; returns original string.)
 * Note: Pattern bug! Couldn't find it, so returns original string.
 * }}
 * Note: (No match; returns original string.)
 * Note: Pattern bug! Couldn't find it, so returns original string.
 * }}
 * Note: Pattern bug! Couldn't find it, so returns original string.
 * }}
 * }}